text
stringlengths 293
1.24k
|
---|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_14598_9 (literate_persons___percentage_ VARCHAR, india_state_ut VARCHAR)
### Question:
What is the percentage of literate people where india is andaman and Nicobar Islands?
### Answer:
SELECT literate_persons___percentage_ FROM table_14598_9 WHERE india_state_ut = "Andaman and Nicobar Islands" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_11 (constructor VARCHAR, driver VARCHAR, grid VARCHAR, laps VARCHAR)
### Question:
Which Constructor has a Grid less than 17, Laps under 52, and Olivier Panis as the Driver?
### Answer:
SELECT constructor FROM table_name_11 WHERE grid < 17 AND laps < 52 AND driver = "olivier panis" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_77 (team_1 VARCHAR, team_2 VARCHAR)
### Question:
What is Team 1 when Team 2 is Jac Port-Gentil?
### Answer:
SELECT team_1 FROM table_name_77 WHERE team_2 = "jac port-gentil" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_73 (date_enacted VARCHAR, ns VARCHAR, normal_total VARCHAR)
### Question:
Name the date enacted for N.S. of 10 and normal total of 104
### Answer:
SELECT date_enacted FROM table_name_73 WHERE ns = "10" AND normal_total = "104" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_96 (active_pixels VARCHAR, model VARCHAR)
### Question:
What are the active pixels of the c-most model camera?
### Answer:
SELECT active_pixels FROM table_name_96 WHERE model = "c-most" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_17289224_1 (poles INTEGER, team_name VARCHAR)
### Question:
How many poles did David Price Racing win?
### Answer:
SELECT MAX(poles) FROM table_17289224_1 WHERE team_name = "David Price Racing" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_2841865_2 (representative VARCHAR, congress VARCHAR)
### Question:
What name is listed under representative for the 112th congress?
### Answer:
SELECT representative FROM table_2841865_2 WHERE congress = "112th" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_17 (rank VARCHAR, club_s_ VARCHAR, u_17_caps VARCHAR)
### Question:
What is the rank of Club Valencia with a U-17 Caps of 20?
### Answer:
SELECT COUNT(rank) FROM table_name_17 WHERE club_s_ = "valencia" AND u_17_caps = 20 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_73 (assist_pass VARCHAR, result VARCHAR)
### Question:
Which Assist/pass has a Result of 6-2?
### Answer:
SELECT assist_pass FROM table_name_73 WHERE result = "6-2" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_2603017_2 (bb___blind_bear VARCHAR, ba___running_bear VARCHAR)
### Question:
what is bb - blind bear where ba - running bear is mf - mountain falcon?
### Answer:
SELECT bb___blind_bear FROM table_2603017_2 WHERE ba___running_bear = "MF - Mountain Falcon" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_86 (surface VARCHAR, opponent VARCHAR)
### Question:
What was the surface for Adrian Ungur as an opponent?
### Answer:
SELECT surface FROM table_name_86 WHERE opponent = "adrian ungur" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_5 (field_stability VARCHAR, agent VARCHAR, effectiveness_as_blood_agent VARCHAR)
### Question:
What is the field stability of Cyanogen Bromide that has an effectiveness of 9?
### Answer:
SELECT COUNT(field_stability) FROM table_name_5 WHERE agent = "cyanogen bromide" AND effectiveness_as_blood_agent > 9 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE orders (customer_id VARCHAR, order_id VARCHAR); CREATE TABLE customers (customer_name VARCHAR, customer_id VARCHAR); CREATE TABLE products (product_id VARCHAR, product_name VARCHAR); CREATE TABLE order_items (product_id VARCHAR, order_item_status VARCHAR, order_id VARCHAR)
### Question:
List the names of customers who have once canceled the purchase of the product "food" (the item status is "Cancel").
### Answer:
SELECT T1.customer_name FROM customers AS T1 JOIN orders AS T2 JOIN order_items AS T3 JOIN products AS T4 ON T1.customer_id = T2.customer_id AND T2.order_id = T3.order_id AND T3.product_id = T4.product_id WHERE T3.order_item_status = "Cancel" AND T4.product_name = "food" GROUP BY T1.customer_id HAVING COUNT(*) >= 1 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_63 (rank VARCHAR, passengers VARCHAR)
### Question:
What is the total rank of the airport that has 79,290 passengers?
### Answer:
SELECT COUNT(rank) FROM table_name_63 WHERE passengers = 79 OFFSET 290 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_9 (tally INTEGER, venue VARCHAR)
### Question:
What is the fewest tally for the game played at Vasil Levski National Stadium, Sofia, Bulgaria?
### Answer:
SELECT MIN(tally) FROM table_name_9 WHERE venue = "vasil levski national stadium, sofia, bulgaria" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_26842217_4 (result VARCHAR, site VARCHAR)
### Question:
What were the results in the bryant-denny stadium • tuscaloosa, al?
### Answer:
SELECT result FROM table_26842217_4 WHERE site = "Bryant-Denny Stadium • Tuscaloosa, AL" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_15315276_1 (dates VARCHAR, champion VARCHAR)
### Question:
When was Jenny Gleason the champion of the Northeast Delta Dental International?
### Answer:
SELECT dates FROM table_15315276_1 WHERE champion = "Jenny Gleason" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_33 (result VARCHAR, week VARCHAR, attendance VARCHAR)
### Question:
What is the Result when the week is later than 9, and there are 65,858 people in attendance?
### Answer:
SELECT result FROM table_name_33 WHERE week > 9 AND attendance = "65,858" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE Cartoon (Title VARCHAR, Channel VARCHAR); CREATE TABLE TV_Channel (id VARCHAR, series_name VARCHAR)
### Question:
List the title of all Cartoons showed on TV Channel with series name "Sky Radio".
### Answer:
SELECT T2.Title FROM TV_Channel AS T1 JOIN Cartoon AS T2 ON T1.id = T2.Channel WHERE T1.series_name = "Sky Radio" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE performance (Date VARCHAR, LOCATION VARCHAR)
### Question:
What are the dates and locations of performances?
### Answer:
SELECT Date, LOCATION FROM performance |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_40 (position VARCHAR, college VARCHAR)
### Question:
If the college is Trinity, what position is listed?
### Answer:
SELECT position FROM table_name_40 WHERE college = "trinity" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_25931938_1 (dances INTEGER, celebrity VARCHAR)
### Question:
How many dances did John Barnes have?
### Answer:
SELECT MIN(dances) FROM table_25931938_1 WHERE celebrity = "John Barnes" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_10 (commenced_operations VARCHAR, airline VARCHAR)
### Question:
Which Commenced operations have an Airline of valuair?
### Answer:
SELECT commenced_operations FROM table_name_10 WHERE airline = "valuair" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_80 (date VARCHAR, attendance VARCHAR)
### Question:
What is the date of the game with 38,062 people in attendance?
### Answer:
SELECT date FROM table_name_80 WHERE attendance = "38,062" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_85 (week VARCHAR, venue VARCHAR)
### Question:
What week was the game played at Mile High Stadium?
### Answer:
SELECT week FROM table_name_85 WHERE venue = "mile high stadium" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_17 (january VARCHAR, record VARCHAR)
### Question:
Which January has a Record of 28–14–8?
### Answer:
SELECT january FROM table_name_17 WHERE record = "28–14–8" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_18788823_5 (date_of_vacancy VARCHAR, outgoing_manager VARCHAR)
### Question:
What date did Micky Adams vacate his position?
### Answer:
SELECT date_of_vacancy FROM table_18788823_5 WHERE outgoing_manager = "Micky Adams" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_21 (grid VARCHAR, laps VARCHAR)
### Question:
what is the grid when the laps is 2?
### Answer:
SELECT grid FROM table_name_21 WHERE laps = 2 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_17102076_10 (location_attendance VARCHAR, score VARCHAR)
### Question:
Name the number of location attendance for l 141–143 (ot)
### Answer:
SELECT COUNT(location_attendance) FROM table_17102076_10 WHERE score = "L 141–143 (OT)" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_26 (mountain_range VARCHAR, province VARCHAR, location VARCHAR)
### Question:
Name the mountain range for nunavut with location of 73.2294°n 78.6233°w
### Answer:
SELECT mountain_range FROM table_name_26 WHERE province = "nunavut" AND location = "73.2294°n 78.6233°w" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_25 (guest VARCHAR, time VARCHAR, date VARCHAR, result VARCHAR)
### Question:
Who was the guest on 24.11.07 when the result was 0:1 at 16:00?
### Answer:
SELECT guest FROM table_name_25 WHERE date = "24.11.07" AND result = "0:1" AND time = "16:00" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_49 (score VARCHAR, date VARCHAR)
### Question:
What score has august 25 as the date?
### Answer:
SELECT score FROM table_name_49 WHERE date = "august 25" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_20 (attendance VARCHAR, arena VARCHAR, points VARCHAR)
### Question:
Which Attendance has an Arena of arrowhead pond of anaheim, and Points smaller than 5?
### Answer:
SELECT attendance FROM table_name_20 WHERE arena = "arrowhead pond of anaheim" AND points < 5 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_16 (series VARCHAR, launch_date VARCHAR)
### Question:
What is Series, when Launch Date is 23 February 2013?
### Answer:
SELECT series FROM table_name_16 WHERE launch_date = "23 february 2013" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_47 (lane INTEGER, semi VARCHAR)
### Question:
Which lane did the athlete swim in who had a semi-final time of 49.19?
### Answer:
SELECT MIN(lane) FROM table_name_47 WHERE semi = 49.19 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_22043925_1 (founded VARCHAR, enrolment VARCHAR)
### Question:
How many values for founded when enrollment is 850?
### Answer:
SELECT COUNT(founded) FROM table_22043925_1 WHERE enrolment = 850 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_92 (round VARCHAR, date VARCHAR)
### Question:
What was the round number for March 22?
### Answer:
SELECT round FROM table_name_92 WHERE date = "march 22" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_30 (us_country VARCHAR, album VARCHAR, year VARCHAR)
### Question:
What US Country released an album of singles only in 1967?
### Answer:
SELECT us_country FROM table_name_30 WHERE album = "singles only" AND year = 1967 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE PersonFriend (friend VARCHAR, name VARCHAR); CREATE TABLE Person (name VARCHAR, gender VARCHAR)
### Question:
Find the female friends of Alice.
### Answer:
SELECT T2.friend FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.friend WHERE T2.name = 'Alice' AND T1.gender = 'female' |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_13606924_1 (total VARCHAR, county VARCHAR)
### Question:
how many total with county being rooks county, kansas
### Answer:
SELECT COUNT(total) FROM table_13606924_1 WHERE county = "Rooks county, Kansas" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_72 (attendance VARCHAR, opponent VARCHAR)
### Question:
How many attended the game with an opponent of bye?
### Answer:
SELECT attendance FROM table_name_72 WHERE opponent = "bye" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_56 (gold VARCHAR, total VARCHAR)
### Question:
How many golds for the nation with 14 total?
### Answer:
SELECT gold FROM table_name_56 WHERE total = 14 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_94 (date VARCHAR, pole_position VARCHAR)
### Question:
Which Date has a Pole Position of michael devaney?
### Answer:
SELECT date FROM table_name_94 WHERE pole_position = "michael devaney" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_33 (Id VARCHAR)
### Question:
What is 1995 Grand Slam Tournament if 1996 is also grand slam tournaments?
### Answer:
SELECT 1990 FROM table_name_33 WHERE 1996 = "grand slam tournaments" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_39 (home_team VARCHAR, away_team VARCHAR, date VARCHAR)
### Question:
Who was the home team when Sheffield United was the away team and the date was also Sheffield United?
### Answer:
SELECT home_team FROM table_name_39 WHERE away_team = "sheffield united" AND date = "sheffield united" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_27487310_5 (name VARCHAR, network VARCHAR)
### Question:
What is the version aired on SBS 6 called?
### Answer:
SELECT name FROM table_27487310_5 WHERE network = "SBS 6" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_1341663_11 (party VARCHAR, incumbent VARCHAR)
### Question:
How many parties are there in races involving Dawson Mathis?
### Answer:
SELECT COUNT(party) FROM table_1341663_11 WHERE incumbent = "Dawson Mathis" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_26976615_3 (date_of_appointment VARCHAR, date_of_vacancy VARCHAR)
### Question:
How many date of appointments are there when the date of vacancy was 2 october 2010?
### Answer:
SELECT COUNT(date_of_appointment) FROM table_26976615_3 WHERE date_of_vacancy = "2 October 2010" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_3005999_1 (provider VARCHAR, destination VARCHAR)
### Question:
How many providers have a destination of Blackpool?
### Answer:
SELECT COUNT(provider) FROM table_3005999_1 WHERE destination = "Blackpool" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_1315616_1 (kōhaku__number VARCHAR, red_team_host VARCHAR)
### Question:
In what number kōhaku was the red team host Peggy Hayama?
### Answer:
SELECT kōhaku__number FROM table_1315616_1 WHERE red_team_host = "Peggy Hayama" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_50 (home_team VARCHAR, date VARCHAR)
### Question:
what team played on may 20 on the home side
### Answer:
SELECT home_team FROM table_name_50 WHERE date = "may 20" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_2062148_2 (result VARCHAR, jockey VARCHAR)
### Question:
What was the result of the race where the jockey was J. Marshall?
### Answer:
SELECT result FROM table_2062148_2 WHERE jockey = "J. Marshall" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_15988037_4 (second_place VARCHAR, winner VARCHAR)
### Question:
Who got second place when the winners were rafał mroczek & aneta piotrowska?
### Answer:
SELECT second_place FROM table_15988037_4 WHERE winner = "Rafał Mroczek & Aneta Piotrowska" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_14 (losses INTEGER, wins VARCHAR, against VARCHAR)
### Question:
What is the smallest losses when the wins are 5 and the against less than 1852?
### Answer:
SELECT MIN(losses) FROM table_name_14 WHERE wins = 5 AND against < 1852 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_42 (year INTEGER, start VARCHAR)
### Question:
What is the average Year, when Start is "11"?
### Answer:
SELECT AVG(year) FROM table_name_42 WHERE start = 11 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_1341423_9 (results VARCHAR, district VARCHAR)
### Question:
How did the election in the Florida 14 district end?
### Answer:
SELECT results FROM table_1341423_9 WHERE district = "Florida 14" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_93 (date VARCHAR, record VARCHAR, home VARCHAR, decision VARCHAR)
### Question:
What was the date of the 24–27–6 Lightning home game against Tampa Bay that had a decision of Ramo?
### Answer:
SELECT date FROM table_name_93 WHERE home = "tampa bay" AND decision = "ramo" AND record = "24–27–6" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_1139087_2 (fastest_lap VARCHAR, rd VARCHAR)
### Question:
Who drove the fastest lap for round 8?
### Answer:
SELECT fastest_lap FROM table_1139087_2 WHERE rd = 8 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_16849531_2 (ncbi_accession_number__mrna_protein_ VARCHAR, length__bp_aa_ VARCHAR)
### Question:
What is the NCBI Accession Number for the length of 5304bp/377aa?
### Answer:
SELECT ncbi_accession_number__mrna_protein_ FROM table_16849531_2 WHERE length__bp_aa_ = "5304bp/377aa" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_93 (wins VARCHAR, played VARCHAR, draws VARCHAR, goals_against VARCHAR)
### Question:
What is the total number of Wins, when Draws is less than 5, when Goals is greater than 49, and when Played is greater than 30?
### Answer:
SELECT COUNT(wins) FROM table_name_93 WHERE draws < 5 AND goals_against > 49 AND played > 30 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_86 (silver INTEGER, bronze VARCHAR, gold VARCHAR)
### Question:
What is the highest silver medal count when there is 1 Bronze medal and 1 Gold medal?
### Answer:
SELECT MAX(silver) FROM table_name_86 WHERE bronze = 1 AND gold = 1 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_24765815_1 (player VARCHAR, opponent VARCHAR)
### Question:
Which player had an opponent of Blackburn Rovers?
### Answer:
SELECT player FROM table_24765815_1 WHERE opponent = "Blackburn Rovers" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_25146455_1 (winnings VARCHAR, driver VARCHAR)
### Question:
How much did Kenny Brack win?
### Answer:
SELECT winnings FROM table_25146455_1 WHERE driver = "Kenny Brack" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_10812293_3 (location_attendance VARCHAR, date VARCHAR)
### Question:
Where was the game on November 20?
### Answer:
SELECT location_attendance FROM table_10812293_3 WHERE date = "November 20" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_4 (attendance INTEGER, opponent VARCHAR, venue VARCHAR)
### Question:
Name the most attendance for tamworth with home venue
### Answer:
SELECT MAX(attendance) FROM table_name_4 WHERE opponent = "tamworth" AND venue = "home" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_17288825_9 (high_points VARCHAR, game VARCHAR)
### Question:
Who had the most poinst in game 72?
### Answer:
SELECT high_points FROM table_17288825_9 WHERE game = 72 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_12094609_1 (preliminaries VARCHAR, state VARCHAR)
### Question:
what's the preliminaries where state is south dakota
### Answer:
SELECT preliminaries FROM table_12094609_1 WHERE state = "South Dakota" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_40 (points INTEGER, chassis VARCHAR)
### Question:
What are the average points with a Chassis of zakspeed 881?
### Answer:
SELECT AVG(points) FROM table_name_40 WHERE chassis = "zakspeed 881" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE weekly_weather (station_id VARCHAR, precipitation INTEGER); CREATE TABLE station (id VARCHAR, local_authority VARCHAR)
### Question:
Find the id and local authority of the station whose maximum precipitation is higher than 50.
### Answer:
SELECT t2.id, t2.local_authority FROM weekly_weather AS t1 JOIN station AS t2 ON t1.station_id = t2.id GROUP BY t1.station_id HAVING MAX(t1.precipitation) > 50 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_17058116_7 (score VARCHAR, game VARCHAR)
### Question:
What is the score of game 46
### Answer:
SELECT score FROM table_17058116_7 WHERE game = 46 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_21109892_1 (value_world_rank VARCHAR, production__mt_ VARCHAR)
### Question:
When the production (mt) is 446424, what is the value world rank ?
### Answer:
SELECT value_world_rank FROM table_21109892_1 WHERE production__mt_ = 446424 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE event (venue VARCHAR, name VARCHAR, Event_Attendance VARCHAR)
### Question:
List the event venues and names that have the top 2 most number of people attended.
### Answer:
SELECT venue, name FROM event ORDER BY Event_Attendance DESC LIMIT 2 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_1220125_4 (fate VARCHAR, pennant VARCHAR)
### Question:
What is the total number of fate for pennant of u33?
### Answer:
SELECT COUNT(fate) FROM table_1220125_4 WHERE pennant = "U33" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_30 (away_team VARCHAR, tie_no VARCHAR, home_team VARCHAR)
### Question:
who is the away team when the tie no is more than 13 and the home team is team bath?
### Answer:
SELECT away_team FROM table_name_30 WHERE tie_no > 13 AND home_team = "team bath" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_1046454_1 (playoffs VARCHAR, regular_season VARCHAR)
### Question:
what is the total number of playoffs where regular season is 6th, southwest
### Answer:
SELECT COUNT(playoffs) FROM table_1046454_1 WHERE regular_season = "6th, Southwest" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_31 (total INTEGER, silver VARCHAR, rank VARCHAR)
### Question:
What is the lowest total for those receiving less than 18 but more than 14?
### Answer:
SELECT MIN(total) FROM table_name_31 WHERE silver < 18 AND rank = "14" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_31 (original_nfl_team VARCHAR, pos VARCHAR, college VARCHAR)
### Question:
What's the original NFL team when the POS is S and college is Georgia Tech?
### Answer:
SELECT original_nfl_team FROM table_name_31 WHERE pos = "s" AND college = "georgia tech" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_20630665_1 (result VARCHAR, opponent VARCHAR)
### Question:
How many times did the Bruins play Tennessee?
### Answer:
SELECT COUNT(result) FROM table_20630665_1 WHERE opponent = "Tennessee" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_12496904_1 (_2012 VARCHAR, population_august_15 INTEGER, population_density_2012__km_2__ VARCHAR)
### Question:
What is the August 15, 2012 population when the population density of 2012 is 307?
### Answer:
SELECT MAX(population_august_15), _2012 FROM table_12496904_1 WHERE population_density_2012__km_2__ = 307 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_27846651_1 (series__number VARCHAR, viewers__millions_ VARCHAR)
### Question:
What episode in the series had 5.24 million viewers?
### Answer:
SELECT series__number FROM table_27846651_1 WHERE viewers__millions_ = "5.24" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_88 (col__m_ INTEGER, elevation__m_ INTEGER)
### Question:
Which Col (m) has an Elevation (m) smaller than 1,624?
### Answer:
SELECT MIN(col__m_) FROM table_name_88 WHERE elevation__m_ < 1 OFFSET 624 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_27700530_9 (team VARCHAR, game VARCHAR)
### Question:
How many games were numbered 13?
### Answer:
SELECT COUNT(team) FROM table_27700530_9 WHERE game = 13 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_1914090_2 (europe INTEGER, australia VARCHAR)
### Question:
What is the most members Europe had when Australia had 94615?
### Answer:
SELECT MAX(europe) FROM table_1914090_2 WHERE australia = 94615 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_13 (phoneme VARCHAR, realization VARCHAR)
### Question:
Name the phoneme for realizaiton of [ɪj]
### Answer:
SELECT phoneme FROM table_name_13 WHERE realization = "[ɪj]" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_15 (away_team VARCHAR)
### Question:
what was the away team with st kilda as the away team?
### Answer:
SELECT away_team AS score FROM table_name_15 WHERE away_team = "st kilda" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_22 (sacks INTEGER, team VARCHAR, tackles VARCHAR)
### Question:
What is the value for lowest Sacks, when the Team is New Orleans Saints, and when the value for Tackles is 132?
### Answer:
SELECT MIN(sacks) FROM table_name_22 WHERE team = "new orleans saints" AND tackles = "132" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_12 (away_team VARCHAR, home_team VARCHAR)
### Question:
Who is the home team of South Melbourne?
### Answer:
SELECT away_team FROM table_name_12 WHERE home_team = "south melbourne" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_34 (school_club_team VARCHAR, player VARCHAR)
### Question:
Which School/Club Team has a Player of deandre liggins?
### Answer:
SELECT school_club_team FROM table_name_34 WHERE player = "deandre liggins" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_22297140_3 (outgoing_manager VARCHAR, replaced_by VARCHAR)
### Question:
Which outgoing manager was replaced by Jafar Fatahi?
### Answer:
SELECT outgoing_manager FROM table_22297140_3 WHERE replaced_by = "Jafar Fatahi" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_86 (votes INTEGER, party VARCHAR)
### Question:
What is the number of votes for the Party of Labour?
### Answer:
SELECT MIN(votes) FROM table_name_86 WHERE party = "labour" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_35 (opponent VARCHAR, record VARCHAR)
### Question:
Name the opponent with a record of 60-61
### Answer:
SELECT opponent FROM table_name_35 WHERE record = "60-61" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_35 (to_par INTEGER, score VARCHAR)
### Question:
What is the highest To Par, when Score is "72-73=145"?
### Answer:
SELECT MAX(to_par) FROM table_name_35 WHERE score = 72 - 73 = 145 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_12 (overall_ranking VARCHAR, status VARCHAR, name VARCHAR)
### Question:
What's the total number of overall rankings of 廖尹宁 jvnne leow's events that are eliminated?
### Answer:
SELECT COUNT(overall_ranking) FROM table_name_12 WHERE status = "eliminated" AND name = "廖尹宁 jvnne leow" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_13 (game_modes VARCHAR, pinyin VARCHAR)
### Question:
Which game modes have Pinyin of chāojí mǎlìōu shìjiè?
### Answer:
SELECT game_modes FROM table_name_13 WHERE pinyin = "chāojí mǎlìōu shìjiè" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_49 (first_pref_votes VARCHAR, _percentage_of_seats VARCHAR)
### Question:
Which First Pref votes have a % of seats of 0.8?
### Answer:
SELECT first_pref_votes FROM table_name_49 WHERE _percentage_of_seats = "0.8" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_53 (year_s__won VARCHAR, finish VARCHAR, player VARCHAR)
### Question:
What year did player steve jones, who had a t60 finish, win?
### Answer:
SELECT year_s__won FROM table_name_53 WHERE finish = "t60" AND player = "steve jones" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_27722734_7 (record VARCHAR, game VARCHAR)
### Question:
Name the record for 23 game
### Answer:
SELECT record FROM table_27722734_7 WHERE game = 23 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_16384596_4 (directed_by VARCHAR, broadcast_order VARCHAR)
### Question:
Who directed the episode for s02 e08?
### Answer:
SELECT directed_by FROM table_16384596_4 WHERE broadcast_order = "S02 E08" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_28 (eliminated VARCHAR, entered VARCHAR, wrestler VARCHAR)
### Question:
What is the Eliminated when there are less than 4 entered and the wrestler was shawn michaels?
### Answer:
SELECT eliminated FROM table_name_28 WHERE entered < 4 AND wrestler = "shawn michaels" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_63 (round VARCHAR, opponent VARCHAR)
### Question:
In which round was Dustin Hazelett the opponent?
### Answer:
SELECT round FROM table_name_63 WHERE opponent = "dustin hazelett" |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.