instruction
stringlengths 37
754
| output
stringlengths 9
3.43k
|
---|---|
### Instruction:
what is drawn when the club is hirwaun rfc?
### Response:
| SELECT "Drawn" FROM table_76352 WHERE "Club" = 'hirwaun rfc' |
### Instruction:
What week had an attendance of 27,262?
### Response:
| SELECT "Week" FROM table_51370 WHERE "Attendance" = '27,262' |
### Instruction:
f mjin and fro ba are located on which island ?
### Response:
| SELECT "island" FROM table_203_568 WHERE "town/village" = 'famjin' |
### Instruction:
Show the minimum room count of apartments in different type with a bar chart.
### Response:
| SELECT apt_type_code, MIN(room_count) FROM Apartments GROUP BY apt_type_code |
### Instruction:
Show all origins and the number of flights from each origin by a bar chart, list by the X from high to low.
### Response:
| SELECT origin, COUNT(*) FROM flight GROUP BY origin ORDER BY origin DESC |
### Instruction:
For Getafe CF, what is the highest number of goals scored?
### Response:
| SELECT MAX("Goals") FROM table_52971 WHERE "Team" = 'getafe cf' |
### Instruction:
What team scored more than 572 points and had more than 29 games?
### Response:
| SELECT team FROM table_name_44 WHERE points > 572 AND games > 29 |
### Instruction:
The Utah Jazz Player from UTEP was what nationality?
### Response:
| SELECT "Nationality" FROM table_54210 WHERE "School/Club Team" = 'utep' |
### Instruction:
When did the episode with production code 410 air?
### Response:
| SELECT original_air_date FROM table_11630008_6 WHERE production_code = 410 |
### Instruction:
What are the headquarters with at least two companies in the banking industry?
### Response:
| SELECT headquarters FROM company WHERE main_industry = 'Banking' GROUP BY headquarters HAVING COUNT(*) >= 2 |
### Instruction:
What is Home, when Score is 103-93?
### Response:
| SELECT "Home" FROM table_39820 WHERE "Score" = '103-93' |
### Instruction:
which patients had emergency hospital admission?
### Response:
| SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.admission_type = "EMERGENCY" |
### Instruction:
What was the final score for the match with a partnering of Tessa Price?
### Response:
| SELECT score_in_the_final FROM table_name_48 WHERE partnering = "tessa price" |
### Instruction:
Did the legislation pass that had 42.87% yes votes?
### Response:
| SELECT "passed" FROM table_3361 WHERE "% YES" = '42.87%' |
### Instruction:
Who is the GC leader at vila - segovia?
### Response:
| SELECT "GC Leader" FROM table_54613 WHERE "Course" = 'ávila - segovia' |
### Instruction:
What's the roll for summerland primary when decile is over 6?
### Response:
| SELECT roll FROM table_name_66 WHERE decile > 6 AND name = "summerland primary" |
### Instruction:
Who was the opponent when they played at the legion field birmingham, al site?
### Response:
| SELECT opponent FROM table_name_7 WHERE site = "legion field • birmingham, al" |
### Instruction:
What is the D48 when D 43 is plurality ??
### Response:
| SELECT d_48 FROM table_name_27 WHERE d_43 = "plurality ↑" |
### Instruction:
Partnering of franco ferreiro had what tournament?
### Response:
| SELECT "Tournament" FROM table_35380 WHERE "Partnering" = 'franco ferreiro' |
### Instruction:
What is Date From, when Moving To is 'Birmingham City'?
### Response:
| SELECT "Date From" FROM table_49812 WHERE "Moving To" = 'birmingham city' |
### Instruction:
what was the difference , in time , between the first place competitor and the third place competitor ?
### Response:
| SELECT "behind" FROM table_204_862 WHERE id = 3 |
### Instruction:
how many colombia in bangladesh is serbian
### Response:
| SELECT colombian FROM table_24807774_1 WHERE bangladeshi = "Serbian" |
### Instruction:
What date was the score of 6 3 6 4?
### Response:
| SELECT "Date" FROM table_35270 WHERE "Score" = '6–3 6–4' |
### Instruction:
What week had 58,025 in attendance?
### Response:
| SELECT SUM("Week") FROM table_40116 WHERE "Attendance" = '58,025' |
### Instruction:
Most used tags without excerpts.
### Response:
| SELECT * FROM Tags AS t WHERE t.Count > 0 AND t.ExcerptPostId IS NULL ORDER BY t.Count DESC LIMIT 50 |
### Instruction:
name a party that got , at most , 2 % of the votes .
### Response:
| SELECT "party/electoral alliance" FROM table_204_982 WHERE "%" <= 2 |
### Instruction:
how many stages was the 1982 marlboro tour ?
### Response:
| SELECT "stages" FROM table_204_694 WHERE "year" = 1982 |
### Instruction:
What is the result when the visiting team is syracuse?
### Response:
| SELECT result FROM table_28298589_2 WHERE visiting_team = "Syracuse" |
### Instruction:
What is the average year for a merzario a2 chassis?
### Response:
| SELECT AVG(year) FROM table_name_91 WHERE chassis = "merzario a2" |
### Instruction:
Who won the Paris-Roubaix in 2006?
### Response:
| SELECT paris_roubaix___fra__ FROM table_name_33 WHERE year = 2006 |
### Instruction:
What is the production code of the episode directed by Michael McDonald?
### Response:
| SELECT production_code FROM table_25548505_1 WHERE directed_by = "Michael McDonald" |
### Instruction:
Who were the rowers who had a time of 7:39.70?
### Response:
| SELECT rowers FROM table_name_18 WHERE time = "7:39.70" |
### Instruction:
In 1981 which team picked overall 148?
### Response:
| SELECT team FROM table_name_8 WHERE year = 1981 AND overall_pick = "148" |
### Instruction:
What round did the fight against travis fulton last?
### Response:
| SELECT "Round" FROM table_49149 WHERE "Opponent" = 'travis fulton' |
### Instruction:
Which player was drafted by the Saskatchewan Roughriders?
### Response:
| SELECT player FROM table_name_5 WHERE cfl_team = "saskatchewan roughriders" |
### Instruction:
What did vijay singh score with a +5 to par?
### Response:
| SELECT score FROM table_name_92 WHERE to_par = "+5" AND player = "vijay singh" |
### Instruction:
How many cities have a stadium that was opened before the year of 2006?
### Response:
| SELECT COUNT(DISTINCT city) FROM stadium WHERE opening_year < 2006 |
### Instruction:
on which date did the patient with patient id 24425 die?
### Response:
| SELECT demographic.dod FROM demographic WHERE demographic.subject_id = "24425" |
### Instruction:
What was the athlete with a final result of 4.30?
### Response:
| SELECT "Athlete" FROM table_52139 WHERE "Result" = '4.30' |
### Instruction:
how many patients stayed at hospital for more than 4 days?
### Response:
| SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.days_stay > "4" |
### Instruction:
Name the least number in season for jessica ball
### Response:
| SELECT MIN("No. in season") FROM table_25669 WHERE "Written by" = 'Jessica Ball' |
### Instruction:
Which years have a displacement of 1816cc?
### Response:
| SELECT "Years" FROM table_44107 WHERE "Displacement" = '1816cc' |
### Instruction:
What regulations have carlos arzani as the winning driver?
### Response:
| SELECT "Regulations" FROM table_41553 WHERE "Winning drivers" = 'carlos arzani' |
### Instruction:
What is the minimum stations owned since kero-tv?
### Response:
| SELECT MIN("Owned Since") FROM table_22341 WHERE "Station" = 'KERO-TV' |
### Instruction:
How many affiliations does the University of Toledo have?
### Response:
| SELECT COUNT("Affiliation") FROM table_4007 WHERE "Institution" = 'University of Toledo' |
### Instruction:
papers by stefan savage
### Response:
| SELECT DISTINCT writes.paperid FROM author, writes WHERE author.authorname = 'stefan savage' AND writes.authorid = author.authorid |
### Instruction:
How many patients are of jewish religion?
### Response:
| SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.religion = "JEWISH" |
### Instruction:
What is the Total for the Player who won in 1936?
### Response:
| SELECT COUNT(total) FROM table_name_66 WHERE year_s__won = "1936" |
### Instruction:
What's the 2003 result for the falkirk council?
### Response:
| SELECT 2003 AS _result FROM table_name_97 WHERE council = "falkirk" |
### Instruction:
What is the name of the episode where the season number is 13?
### Response:
| SELECT title FROM table_23114705_3 WHERE no_in_season = 13 |
### Instruction:
What Championship had a Winning score of 6 & 5?
### Response:
| SELECT "Championship" FROM table_33913 WHERE "Winning score" = '6 & 5' |
### Instruction:
Total Characters Posted by User.
### Response:
| SELECT Posts.Title, LENGTH(Posts.Body) FROM Users INNER JOIN Posts ON Posts.OwnerUserId = 24 |
### Instruction:
What is Date, when Name is 'Guay, Albert , 32'?
### Response:
| SELECT date FROM table_name_48 WHERE name = "guay, albert , 32" |
### Instruction:
How much General election has a Share of votes of 17%?
### Response:
| SELECT SUM("General election") FROM table_13604 WHERE "Share of votes" = '17%' |
### Instruction:
what is admission type of subject id 53707?
### Response:
| SELECT demographic.admission_type FROM demographic WHERE demographic.subject_id = "53707" |
### Instruction:
Show the name and phone of the customer without any mailshot.
### Response:
| SELECT customer_name, customer_phone FROM customers WHERE NOT customer_id IN (SELECT customer_id FROM mailshot_customers) |
### Instruction:
What movie did Bela Bose co-star in?
### Response:
| SELECT "Movie/Album" FROM table_73783 WHERE "Co-Stars" = 'Bela Bose' |
### Instruction:
Which Place has a To par of 1 and don pooley?
### Response:
| SELECT place FROM table_name_1 WHERE to_par = "−1" AND player = "don pooley" |
### Instruction:
What's the series number of the episode titled 'Rapture'?
### Response:
| SELECT "No. in series" FROM table_23465 WHERE "Title" = 'Rapture' |
### Instruction:
Who is the female talent in 1999?
### Response:
| SELECT "Talent (Female)" FROM table_42476 WHERE "Year" = '1999' |
### Instruction:
Crawley Town as the home team has what as the tie no?
### Response:
| SELECT "Tie no" FROM table_64283 WHERE "Home team" = 'crawley town' |
### Instruction:
What is the Score of the game with a Record of 31 37 9?
### Response:
| SELECT score FROM table_name_3 WHERE record = "31–37–9" |
### Instruction:
How many NHL teams is Denis Pederson a draft pick for?
### Response:
| SELECT COUNT("NHL team") FROM table_74205 WHERE "Player" = 'Denis Pederson' |
### Instruction:
What is Part 1, when Part 2 is 'fraus'?
### Response:
| SELECT "Part 1" FROM table_48527 WHERE "Part 2" = 'fraus' |
### Instruction:
When was the WC 1974 Qualifying game?
### Response:
| SELECT date FROM table_name_94 WHERE type_of_game = "wc 1974 qualifying" |
### Instruction:
How many farmers were included by the department with 32 projects?
### Response:
| SELECT MAX(farmers) FROM table_17118006_2 WHERE projects = 32 |
### Instruction:
What is the type when they move from Gimn stic?
### Response:
| SELECT "Type" FROM table_44655 WHERE "Moving from" = 'gimnàstic' |
### Instruction:
What GLF Premiership did the Magpies have?
### Response:
| SELECT "GFL Premierships" FROM table_60141 WHERE "Nickname" = 'magpies' |
### Instruction:
How many locations have #12 Michigan State as the big ten team?
### Response:
| SELECT COUNT("Location") FROM table_24292 WHERE "Big Ten Team" = '#12 Michigan State' |
### Instruction:
How many counties have a population of 2266?
### Response:
| SELECT COUNT(county) FROM table_22815568_3 WHERE population = 2266 |
### Instruction:
Tell me the most crowd for arden street oval venue
### Response:
| SELECT MAX("Crowd") FROM table_53685 WHERE "Venue" = 'arden street oval' |
### Instruction:
how many spokesperson where in 2004
### Response:
| SELECT COUNT("Spokesperson") FROM table_2190 WHERE "Year(s)" = '2004' |
### Instruction:
What is the to par of the player from England with a t1 place?
### Response:
| SELECT to_par FROM table_name_93 WHERE country = "england" AND place = "t1" |
### Instruction:
Which team was the home team at Glenferrie Oval?
### Response:
| SELECT "Home team" FROM table_54158 WHERE "Venue" = 'glenferrie oval' |
### Instruction:
how many high jumpers had a result of 2.19 ?
### Response:
| SELECT COUNT("name") FROM table_204_173 WHERE "rank" = '2.19' |
### Instruction:
What time in office does the U.S. Navy have?
### Response:
| SELECT "Time in office" FROM table_50090 WHERE "Branch" = 'u.s. navy' |
### Instruction:
How many parks is Zippin Pippin located in
### Response:
| SELECT COUNT(park) FROM table_2665085_1 WHERE name = "Zippin Pippin" |
### Instruction:
What is the lowest enrollment that has Lafayette as the location?
### Response:
| SELECT MIN(enrollment) FROM table_name_46 WHERE location = "lafayette" |
### Instruction:
what is the rounds when the engine is mercedes fo110m?
### Response:
| SELECT rounds FROM table_name_17 WHERE engine_† = "mercedes fo110m" |
### Instruction:
How many people were in the crowd when the away team was north melbourne?
### Response:
| SELECT SUM(crowd) FROM table_name_27 WHERE away_team = "north melbourne" |
### Instruction:
Name the Company which has a Price in USD of free / negotiable?
### Response:
| SELECT "Company" FROM table_8263 WHERE "Price in USD" = 'free / negotiable' |
### Instruction:
What is the total number of Position, when Played is less than 46?
### Response:
| SELECT COUNT("Position") FROM table_47531 WHERE "Played" < '46' |
### Instruction:
Which Event has a Record of 4:02.54?
### Response:
| SELECT "Event" FROM table_42245 WHERE "Record" = '4:02.54' |
### Instruction:
Create a bar chart showing the total number across denomination, rank in desc by the Y-axis.
### Response:
| SELECT Denomination, COUNT(*) FROM school GROUP BY Denomination ORDER BY COUNT(*) DESC |
### Instruction:
When the division is Division 2 men what is the champion score?
### Response:
| SELECT champion_score FROM table_15161170_1 WHERE division = "division 2 Men" |
### Instruction:
What is the distance of the race at the Atlanta Motor Speedway?
### Response:
| SELECT "Distance" FROM table_39149 WHERE "Venue" = 'atlanta motor speedway' |
### Instruction:
What is th IATA for Norway with an ICAO of ENTO?
### Response:
| SELECT iata FROM table_name_99 WHERE country = "norway" AND icao = "ento" |
### Instruction:
How many votes did Wales cast when Northern England cast 6?
### Response:
| SELECT MIN(wales) FROM table_10128185_2 WHERE northern_england = 6 |
### Instruction:
What is the name of the inscription where Virgil is listed as the identification?
### Response:
| SELECT "Inscription" FROM table_8989 WHERE "Identification" = 'virgil' |
### Instruction:
Which Title has an Appointed by of Millard Fillmore?
### Response:
| SELECT "Title" FROM table_80070 WHERE "Appointed by" = 'millard fillmore' |
### Instruction:
What is HSN's official virtual channel in Minneapolis-St. Paul?
### Response:
| SELECT virtual_channel FROM table_1404984_1 WHERE network = "HSN" |
### Instruction:
WHAT IS THE PLAYER WITH T7 PLACE, FOR ENGLAND?
### Response:
| SELECT player FROM table_name_92 WHERE place = "t7" AND country = "england" |
### Instruction:
What is the location of the venue owned by johnson c. smith university?
### Response:
| SELECT location FROM table_name_26 WHERE owner = "johnson c. smith university" |
### Instruction:
what is the primary disease for the patient id 92796?
### Response:
| SELECT demographic.diagnosis FROM demographic WHERE demographic.subject_id = "92796" |
### Instruction:
How many legs has the player with high checkout of 80 won?
### Response:
| SELECT legs_won FROM table_20351295_2 WHERE high_checkout = 80 |
### Instruction:
which mountain peak is the only mountain peak in the cascade range ?
### Response:
| SELECT "mountain peak" FROM table_204_25 WHERE "mountain range" = 'cascade range' |
### Instruction:
Who placed highest with a time of 1:47.70?
### Response:
| SELECT MIN(rank) FROM table_name_22 WHERE time = "1:47.70" |
### Instruction:
What date was the final Score of 17-34?
### Response:
| SELECT "Date" FROM table_11098 WHERE "Final Score" = '17-34' |
### Instruction:
What were the rounds on the Engine of the Ferrari 048?
### Response:
| SELECT rounds FROM table_name_33 WHERE engine_† = "ferrari 048" |
### Instruction:
What is the name of the episode written by karina csolty?
### Response:
| SELECT "Title" FROM table_30148 WHERE "Written by" = 'Karina Csolty' |
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.