question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
Name the minimum tiesplayed for 6 years
CREATE TABLE table_10295819_2 (ties_played INTEGER, years_played VARCHAR)
SELECT MIN(ties_played) FROM table_10295819_2 WHERE years_played = 6
what was the score in toronto
CREATE TABLE table_name_2 (score VARCHAR, home VARCHAR)
SELECT score FROM table_name_2 WHERE home = "toronto"
How many times was Scott Oelslager a representative?
CREATE TABLE table_26131768_4 (residence VARCHAR, representative VARCHAR)
SELECT COUNT(residence) FROM table_26131768_4 WHERE representative = "Scott Oelslager"
What venue has eng by 10 runs as the result?
CREATE TABLE table_name_2 (venue VARCHAR, result VARCHAR)
SELECT venue FROM table_name_2 WHERE result = "eng by 10 runs"
What are all the denominations for China?
CREATE TABLE table_2592308_1 (denominations__gold_weight_ VARCHAR, country VARCHAR)
SELECT denominations__gold_weight_ FROM table_2592308_1 WHERE country = "China"
Which date has a Surface of carpet (i)?
CREATE TABLE table_name_44 (date VARCHAR, surface VARCHAR)
SELECT date FROM table_name_44 WHERE surface = "carpet (i)"
When did Bonecrusher win the championship at Bayamón, Puerto Rico?
CREATE TABLE table_name_5 (date_won VARCHAR, location VARCHAR, champion_s_ VARCHAR)
SELECT date_won FROM table_name_5 WHERE location = "bayamón, puerto rico" AND champion_s_ = "bonecrusher"
How many Points has a Position of 8?
CREATE TABLE table_name_45 (points INTEGER, position VARCHAR)
SELECT AVG(points) FROM table_name_45 WHERE position = 8
Which country is the film Tent of Miracles from?
CREATE TABLE table_name_9 (country VARCHAR, film_title_used_in_nomination VARCHAR)
SELECT country FROM table_name_9 WHERE film_title_used_in_nomination = "tent of miracles"
What year was the main role a character named Guan Yu (關羽)?
CREATE TABLE table_name_89 (year INTEGER, role VARCHAR, character VARCHAR)
SELECT MIN(year) FROM table_name_89 WHERE role = "main" AND character = "guan yu (關羽)"
Which driver has a G tyre, rounds of 2-12 and a M7A chassis?
CREATE TABLE table_name_18 (driver VARCHAR, chassis VARCHAR, tyre VARCHAR, rounds VARCHAR)
SELECT driver FROM table_name_18 WHERE tyre = "g" AND rounds = "2-12" AND chassis = "m7a"
What is the name for the play from the Ukraine, and a 1.93 xxo?
CREATE TABLE table_name_50 (name VARCHAR, nationality VARCHAR)
SELECT name FROM table_name_50 WHERE nationality = "ukraine" AND 193 = "xxo"
what's the name with final cast status and first performance on 12 november 2011?
CREATE TABLE table_name_68 (name VARCHAR, status VARCHAR, first_performance VARCHAR)
SELECT name FROM table_name_68 WHERE status = "final cast" AND first_performance = "12 november 2011"
Which Overall is the highest one that has a Name of raleigh mckenzie, and a Pick larger than 10?
CREATE TABLE table_name_31 (overall INTEGER, name VARCHAR, pick VARCHAR)
SELECT MAX(overall) FROM table_name_31 WHERE name = "raleigh mckenzie" AND pick > 10
How many wins of average has cuts made less than 0?
CREATE TABLE table_name_79 (wins INTEGER, cuts_made INTEGER)
SELECT AVG(wins) FROM table_name_79 WHERE cuts_made < 0
What game site has december 24, 2000 as a date?
CREATE TABLE table_name_58 (game_site VARCHAR, date VARCHAR)
SELECT game_site FROM table_name_58 WHERE date = "december 24, 2000"
On what date did the game at Windy Hill take place?
CREATE TABLE table_name_24 (date VARCHAR, venue VARCHAR)
SELECT date FROM table_name_24 WHERE venue = "windy hill"
Who's the Republican ticket with a Democratic ticket of m. william bray?
CREATE TABLE table_name_67 (republican_ticket VARCHAR, democratic_ticket VARCHAR)
SELECT republican_ticket FROM table_name_67 WHERE democratic_ticket = "m. william bray"
Which rider has a Manufacturer of honda with a time of +44.814?
CREATE TABLE table_name_23 (rider VARCHAR, manufacturer VARCHAR, time_retired VARCHAR)
SELECT rider FROM table_name_23 WHERE manufacturer = "honda" AND time_retired = "+44.814"
What A-League has 6 (1) for the finals, and leigh broxham as the name?
CREATE TABLE table_name_54 (a_league VARCHAR, finals VARCHAR, name VARCHAR)
SELECT a_league FROM table_name_54 WHERE finals = "6 (1)" AND name = "leigh broxham"
What is the total number of goals that have games under 11, debut round over 15, and age of 20 years, 71 days?
CREATE TABLE table_name_86 (goals__2008_ VARCHAR, age_at_debut VARCHAR, games__2008_ VARCHAR, debut_round VARCHAR)
SELECT COUNT(goals__2008_) FROM table_name_86 WHERE games__2008_ < 11 AND debut_round > 15 AND age_at_debut = "20 years, 71 days"
Show the transaction type and the number of transactions.
CREATE TABLE Financial_transactions (transaction_type VARCHAR)
SELECT transaction_type, COUNT(*) FROM Financial_transactions GROUP BY transaction_type
What is the power in kilowatts of TV-12?
CREATE TABLE table_24673888_1 (power_kw VARCHAR, ch__number VARCHAR)
SELECT power_kw FROM table_24673888_1 WHERE ch__number = "TV-12"
What is the high school of the player number 5?
CREATE TABLE table_24055352_1 (high_school VARCHAR, number VARCHAR)
SELECT high_school FROM table_24055352_1 WHERE number = 5
What is the average match when the singapore armed forces played away against perak fa (malaysia)?
CREATE TABLE table_name_65 (match INTEGER, home_away VARCHAR, opponent_team VARCHAR)
SELECT AVG(match) FROM table_name_65 WHERE home_away = "away" AND opponent_team = "perak fa (malaysia)"
Which party is associated with the person who was first elected in 1982?
CREATE TABLE table_1341577_43 (party VARCHAR, first_elected VARCHAR)
SELECT party FROM table_1341577_43 WHERE first_elected = 1982
who is the actor when the character is dinny byrne?
CREATE TABLE table_name_8 (actor VARCHAR, character VARCHAR)
SELECT actor FROM table_name_8 WHERE character = "dinny byrne"
Date of november 3, 2008 had what score?
CREATE TABLE table_name_15 (score VARCHAR, date VARCHAR)
SELECT score FROM table_name_15 WHERE date = "november 3, 2008"
What was the time for the match with away team Mutual Team B?
CREATE TABLE table_name_28 (time VARCHAR, away_team VARCHAR)
SELECT time FROM table_name_28 WHERE away_team = "mutual team b"
What is in the Notes for Player Name Grella?
CREATE TABLE table_name_67 (notes VARCHAR, name VARCHAR)
SELECT notes FROM table_name_67 WHERE name = "grella"
Who is the incoming manager when the date of appointment is 9 march 2011?
CREATE TABLE table_26914854_3 (incoming_manager VARCHAR, date_of_appointment VARCHAR)
SELECT incoming_manager FROM table_26914854_3 WHERE date_of_appointment = "9 March 2011"
Name the venue for score of 1-3
CREATE TABLE table_name_75 (venue VARCHAR, score VARCHAR)
SELECT venue FROM table_name_75 WHERE score = "1-3"
How many lbs does a set 4 of 115lb x 8reps have?
CREATE TABLE table_name_53 (volume_lbs VARCHAR, set_4 VARCHAR)
SELECT volume_lbs FROM table_name_53 WHERE set_4 = "115lb x 8reps"
When the time/retired is electrical how many laps did Rubens Barrichello have?
CREATE TABLE table_name_53 (laps VARCHAR, time_retired VARCHAR, driver VARCHAR)
SELECT laps FROM table_name_53 WHERE time_retired = "electrical" AND driver = "rubens barrichello"
How much did the away team score at victoria park?
CREATE TABLE table_name_57 (away_team VARCHAR, venue VARCHAR)
SELECT away_team AS score FROM table_name_57 WHERE venue = "victoria park"
What is the total number of poles values in the Formula Renault 2.0 Eurocup with a 10th final placing?
CREATE TABLE table_15852257_1 (poles VARCHAR, series VARCHAR, final_placing VARCHAR)
SELECT COUNT(poles) FROM table_15852257_1 WHERE series = "Formula Renault 2.0 Eurocup" AND final_placing = "10th"
Which Aircraft has the Call Sign Paula 01?
CREATE TABLE table_name_37 (aircraft VARCHAR, call_sign VARCHAR)
SELECT aircraft FROM table_name_37 WHERE call_sign = "paula 01"
What is the total number of Game, when Attendance is "18,568"?
CREATE TABLE table_name_7 (game VARCHAR, attendance VARCHAR)
SELECT COUNT(game) FROM table_name_7 WHERE attendance = 18 OFFSET 568
What is the mascot for South Bend Clay?
CREATE TABLE table_name_8 (mascot VARCHAR, school VARCHAR)
SELECT mascot FROM table_name_8 WHERE school = "south bend clay"
When Baltimore County, Howard are represented, what's the first elected when the committee is environmental matters (vice-chair)?
CREATE TABLE table_name_37 (first_elected INTEGER, counties_represented VARCHAR, committee VARCHAR)
SELECT MAX(first_elected) FROM table_name_37 WHERE counties_represented = "baltimore county, howard" AND committee = "environmental matters (vice-chair)"
What category of the British Soap Awards resulted in nominated?
CREATE TABLE table_name_18 (category VARCHAR, awards VARCHAR, result VARCHAR)
SELECT category FROM table_name_18 WHERE awards = "british soap awards" AND result = "nominated"
Which chassis had 16 points?
CREATE TABLE table_name_43 (chassis VARCHAR, points VARCHAR)
SELECT chassis FROM table_name_43 WHERE points = 16
The local title "Live to Dance" was aired in which channel?
CREATE TABLE table_24598274_20 (channel VARCHAR, local_title VARCHAR)
SELECT channel FROM table_24598274_20 WHERE local_title = "Live to Dance"
On what date was Motherwell the opponent at Fir Park?
CREATE TABLE table_name_77 (date VARCHAR, opponent VARCHAR, venue VARCHAR)
SELECT date FROM table_name_77 WHERE opponent = "motherwell" AND venue = "fir park"
What is the aggregate number of Position that has a Bike No of 4?
CREATE TABLE table_name_19 (position VARCHAR, bike_no VARCHAR)
SELECT COUNT(position) FROM table_name_19 WHERE bike_no = 4
How many draws were there when the conceded goals was numbered at 45?
CREATE TABLE table_18018248_2 (draws VARCHAR, goals_conceded VARCHAR)
SELECT COUNT(draws) FROM table_18018248_2 WHERE goals_conceded = 45
Please give me a list of cities whose regional population is over 8000000 or under 5000000.
CREATE TABLE city (city VARCHAR, regional_population INTEGER)
SELECT city FROM city WHERE regional_population > 10000000 UNION SELECT city FROM city WHERE regional_population < 5000000
Name the result/games for 54530
CREATE TABLE table_21436373_11 (result_games VARCHAR, attendance VARCHAR)
SELECT result_games FROM table_21436373_11 WHERE attendance = 54530
Name the year for 15 starts
CREATE TABLE table_2308381_2 (year VARCHAR, starts VARCHAR)
SELECT year FROM table_2308381_2 WHERE starts = 15
Name the copa libertadores 1992 for round of 16 and team of fluminense
CREATE TABLE table_15013825_8 (copa_libertadores_1992 VARCHAR, copa_conmebol_1992 VARCHAR, team VARCHAR)
SELECT copa_libertadores_1992 FROM table_15013825_8 WHERE copa_conmebol_1992 = "Round of 16" AND team = "Fluminense"
what school is rudy gay from
CREATE TABLE table_10015132_7 (school_club_team VARCHAR, player VARCHAR)
SELECT school_club_team FROM table_10015132_7 WHERE player = "Rudy Gay"
who is the incumbent where the candidates is william v. chappell, jr. (d) unopposed?
CREATE TABLE table_1341672_10 (incumbent VARCHAR, candidates VARCHAR)
SELECT incumbent FROM table_1341672_10 WHERE candidates = "William V. Chappell, Jr. (D) Unopposed"
Who was the winner in stage 7 with a general classification of Pavel Tonkov?
CREATE TABLE table_name_97 (winner VARCHAR, general_classification VARCHAR, stage VARCHAR)
SELECT winner FROM table_name_97 WHERE general_classification = "pavel tonkov" AND stage = "7"
What is the average number of games drawn among the teams that lost over 13 games?
CREATE TABLE table_name_37 (drawn INTEGER, lost INTEGER)
SELECT AVG(drawn) FROM table_name_37 WHERE lost > 13
What method was used that had a resulting win against opponent, Natsuko Kikukawa?
CREATE TABLE table_name_56 (method VARCHAR, res VARCHAR, opponent VARCHAR)
SELECT method FROM table_name_56 WHERE res = "win" AND opponent = "natsuko kikukawa"
What was the score when Arsenal was the away team?
CREATE TABLE table_name_49 (score VARCHAR, away_team VARCHAR)
SELECT score FROM table_name_49 WHERE away_team = "arsenal"
What is the medal total of Denmark?
CREATE TABLE table_name_52 (total VARCHAR, nation VARCHAR)
SELECT COUNT(total) FROM table_name_52 WHERE nation = "denmark"
How many votes were cast in Wayne county?
CREATE TABLE table_13625792_1 (total__number INTEGER, county VARCHAR)
SELECT MAX(total__number) FROM table_13625792_1 WHERE county = "Wayne"
What episode was writted by John A. Norris?
CREATE TABLE table_11695215_1 (title VARCHAR, written_by VARCHAR)
SELECT title FROM table_11695215_1 WHERE written_by = "John A. Norris"
What are distinct locations where tracks are located?
CREATE TABLE track (LOCATION VARCHAR)
SELECT DISTINCT LOCATION FROM track
Which Losses have a Pct of .451 and Finished 6th?
CREATE TABLE table_name_92 (losses VARCHAR, pct VARCHAR, finish VARCHAR)
SELECT losses FROM table_name_92 WHERE pct = ".451" AND finish = "6th"
How many different advisors are listed?
CREATE TABLE Student (advisor VARCHAR)
SELECT COUNT(DISTINCT advisor) FROM Student
who wrote episode 14?
CREATE TABLE table_17810099_3 (writer_s_ VARCHAR, episode__number VARCHAR)
SELECT writer_s_ FROM table_17810099_3 WHERE episode__number = "14"
What was the score on 20/6/97?
CREATE TABLE table_name_9 (score VARCHAR, date VARCHAR)
SELECT score FROM table_name_9 WHERE date = "20/6/97"
Which country is Scott McCarron from?
CREATE TABLE table_name_90 (country VARCHAR, player VARCHAR)
SELECT country FROM table_name_90 WHERE player = "scott mccarron"
What was the position in 1997?
CREATE TABLE table_name_35 (pos VARCHAR, year VARCHAR)
SELECT pos FROM table_name_35 WHERE year = 1997
What was the result of the Competition of euro 2000 qualifier?
CREATE TABLE table_name_78 (result VARCHAR, competition VARCHAR)
SELECT result FROM table_name_78 WHERE competition = "euro 2000 qualifier"
Find the department name of the instructor whose name contains 'Soisalon'.
CREATE TABLE instructor (dept_name VARCHAR, name VARCHAR)
SELECT dept_name FROM instructor WHERE name LIKE '%Soisalon%'
What's the Yellow fertility rate when Brazil is 0,43407?
CREATE TABLE table_name_94 (yellow_109_percentage VARCHAR, brazil_100_percentage VARCHAR)
SELECT yellow_109_percentage FROM table_name_94 WHERE brazil_100_percentage = "0,43407"
What is the location of thierry boutsen?
CREATE TABLE table_1137707_2 (location VARCHAR, fastest_lap VARCHAR)
SELECT location FROM table_1137707_2 WHERE fastest_lap = "Thierry Boutsen"
Which chassis manufacturer is for fleet numbers range 2530-2558
CREATE TABLE table_1425948_1 (chassis_manufacturer VARCHAR, fleet_numbers VARCHAR)
SELECT chassis_manufacturer FROM table_1425948_1 WHERE fleet_numbers = "2530-2558"
What's the mean week number when attendance was 63,263?
CREATE TABLE table_name_88 (week INTEGER, attendance VARCHAR)
SELECT AVG(week) FROM table_name_88 WHERE attendance = 63 OFFSET 263
What is the ICAO in France with an IATA of Ory?
CREATE TABLE table_name_79 (icao VARCHAR, country VARCHAR, iata VARCHAR)
SELECT icao FROM table_name_79 WHERE country = "france" AND iata = "ory"
what is the title of the episode with the director pamela fryman and the production code 2alh07?
CREATE TABLE table_26701861_1 (title VARCHAR, director VARCHAR, production_code VARCHAR)
SELECT title FROM table_26701861_1 WHERE director = "Pamela Fryman" AND production_code = "2ALH07"
How many akhil bharatiya rashtriya azad hind party seats were contested?
CREATE TABLE table_22582663_1 (seats_contested VARCHAR, party_name VARCHAR)
SELECT seats_contested FROM table_22582663_1 WHERE party_name = "Akhil Bharatiya Rashtriya Azad Hind Party"
What is team one that has tp englebert for team 2?
CREATE TABLE table_name_32 (team_1 VARCHAR, team_2 VARCHAR)
SELECT team_1 FROM table_name_32 WHERE team_2 = "tp englebert"
What is the market value of a company in billions that has 172.7 billion in sales?
CREATE TABLE table_1682026_6 (market_value__billion_$_ VARCHAR, sales__billion_$_ VARCHAR)
SELECT market_value__billion_$_ FROM table_1682026_6 WHERE sales__billion_$_ = "172.7"
What is the total population for Saint-Antoine with an area squared of 6.43?
CREATE TABLE table_name_60 (population INTEGER, official_name VARCHAR, area_km_2 VARCHAR)
SELECT SUM(population) FROM table_name_60 WHERE official_name = "saint-antoine" AND area_km_2 > 6.43
Find the average and minimum price of the rooms in different decor.
CREATE TABLE Rooms (decor VARCHAR, basePrice INTEGER)
SELECT decor, AVG(basePrice), MIN(basePrice) FROM Rooms GROUP BY decor
What is the place of the player with a 71-69-66=206 score?
CREATE TABLE table_name_95 (place VARCHAR, score VARCHAR)
SELECT place FROM table_name_95 WHERE score = 71 - 69 - 66 = 206
Who did the team play on april 19?
CREATE TABLE table_name_2 (opponent VARCHAR, date VARCHAR)
SELECT opponent FROM table_name_2 WHERE date = "april 19"
What are the distinct types of mills that are built by American or Canadian architects?
CREATE TABLE architect (Id VARCHAR); CREATE TABLE mill (type VARCHAR, architect_id VARCHAR)
SELECT DISTINCT T1.type FROM mill AS T1 JOIN architect AS t2 ON T1.architect_id = T2.id WHERE T2.nationality = 'American' OR T2.nationality = 'Canadian'
what is the attendance where the game site is kingdome?
CREATE TABLE table_16729076_1 (attendance INTEGER, game_site VARCHAR)
SELECT MIN(attendance) FROM table_16729076_1 WHERE game_site = "Kingdome"
Name the socket of sSpec number of sr0pk(e1)?
CREATE TABLE table_name_31 (socket VARCHAR, sspec_number VARCHAR)
SELECT socket FROM table_name_31 WHERE sspec_number = "sr0pk(e1)"
Which player has a score of 70-68-69-73=280 and a place of t4?
CREATE TABLE table_name_28 (player VARCHAR, place VARCHAR, score VARCHAR)
SELECT player FROM table_name_28 WHERE place = "t4" AND score = 70 - 68 - 69 - 73 = 280
Which Zone 2008 has Services of greater anglia, and a Station of cheshunt?
CREATE TABLE table_name_17 (zone_2008 VARCHAR, services VARCHAR, station VARCHAR)
SELECT zone_2008 FROM table_name_17 WHERE services = "greater anglia" AND station = "cheshunt"
Who was the opponent when the record was 11-6-2?
CREATE TABLE table_name_25 (opponent VARCHAR, record VARCHAR)
SELECT opponent FROM table_name_25 WHERE record = "11-6-2"
Which competition was on 17/9/00?
CREATE TABLE table_name_47 (competition VARCHAR, date VARCHAR)
SELECT competition FROM table_name_47 WHERE date = "17/9/00"
What is the away team score for the match at 6:00 PM and an away team of Hawthorn?
CREATE TABLE table_name_56 (away_team VARCHAR, time VARCHAR)
SELECT away_team AS score FROM table_name_56 WHERE time = "6:00 pm" AND away_team = "hawthorn"
Name the general classification of stage 15
CREATE TABLE table_12261806_2 (general_classification VARCHAR, stage VARCHAR)
SELECT COUNT(general_classification) FROM table_12261806_2 WHERE stage = "15"
What is the Draw that has Points larger than 44 and a Place larger than 1?
CREATE TABLE table_name_92 (draw INTEGER, points VARCHAR, place VARCHAR)
SELECT AVG(draw) FROM table_name_92 WHERE points > 44 AND place > 1
What position does peter mcgeough cover?
CREATE TABLE table_2679061_12 (position VARCHAR, player VARCHAR)
SELECT position FROM table_2679061_12 WHERE player = "Peter McGeough"
How many reports were the for the cleveland burke lakefront airport circut?
CREATE TABLE table_10707176_2 (report VARCHAR, circuit VARCHAR)
SELECT COUNT(report) FROM table_10707176_2 WHERE circuit = "Cleveland Burke Lakefront Airport"
Show all majors.
CREATE TABLE Student (Major VARCHAR)
SELECT DISTINCT Major FROM Student
What is the market value of the automotive industry?
CREATE TABLE table_name_10 (market_value___usd_million_ VARCHAR, industry VARCHAR)
SELECT COUNT(market_value___usd_million_) FROM table_name_10 WHERE industry = "automotive"
What was the revising convention of the field 'trimmers and stokers'?
CREATE TABLE table_2001348_1 (revising_convention_s_ VARCHAR, field VARCHAR)
SELECT revising_convention_s_ FROM table_2001348_1 WHERE field = "trimmers and stokers"
Which Name has Apparent Magnitude smaller than 11.4, and R.A. (J2000) of 04h17m35.8s?
CREATE TABLE table_name_75 (name VARCHAR, apparent_magnitude VARCHAR, ra___j2000__ VARCHAR)
SELECT name FROM table_name_75 WHERE apparent_magnitude < 11.4 AND ra___j2000__ = "04h17m35.8s"
Which city is the headquarter of the store named "Blackville" in?
CREATE TABLE store (store_id VARCHAR, store_name VARCHAR); CREATE TABLE district (headquartered_city VARCHAR, district_id VARCHAR); CREATE TABLE store_district (store_id VARCHAR, district_id VARCHAR)
SELECT t3.headquartered_city FROM store AS t1 JOIN store_district AS t2 ON t1.store_id = t2.store_id JOIN district AS t3 ON t2.district_id = t3.district_id WHERE t1.store_name = "Blackville"
How many games did they have a record of 39-12-6?
CREATE TABLE table_23308178_8 (game VARCHAR, record VARCHAR)
SELECT COUNT(game) FROM table_23308178_8 WHERE record = "39-12-6"
Who drove the Chevrolet with the Eagle chassis?
CREATE TABLE table_name_21 (drivers VARCHAR, engine VARCHAR, chassis VARCHAR)
SELECT drivers FROM table_name_21 WHERE engine = "chevrolet" AND chassis = "eagle"