question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
What is the total number of years active listings where Asian Cup played as a captain is Japan 1992?
CREATE TABLE table_272865_20 (years_active VARCHAR, asian_cup_played_as_a_captain VARCHAR)
SELECT COUNT(years_active) FROM table_272865_20 WHERE asian_cup_played_as_a_captain = "Japan 1992"
Name the 012 club which has of norbert hosnyánszky category:articles with hcards?
CREATE TABLE table_name_23 (name VARCHAR)
SELECT 2012 AS _club FROM table_name_23 WHERE name = "norbert hosnyánszky category:articles with hcards"
When 129 is the number in the series who is the writer?
CREATE TABLE table_228973_7 (written_by VARCHAR, no_in_series VARCHAR)
SELECT written_by FROM table_228973_7 WHERE no_in_series = 129
If the rank is 17, what are the names?
CREATE TABLE table_24990183_7 (name VARCHAR, rank VARCHAR)
SELECT name FROM table_24990183_7 WHERE rank = 17
List all the name of organizations in order of the date formed.
CREATE TABLE organizations (organization_name VARCHAR, date_formed VARCHAR)
SELECT organization_name FROM organizations ORDER BY date_formed
What is the muslim percentage of the 49634 population of england and wales 000?
CREATE TABLE table_1532779_1 (muslim___percentage_of_total_population_ VARCHAR, population_of_england_and_wales_000 VARCHAR)
SELECT muslim___percentage_of_total_population_ FROM table_1532779_1 WHERE population_of_england_and_wales_000 = 49634
How many swimsuits have an Evening Gown larger than 9, and an Interview larger than 8.405?
CREATE TABLE table_name_32 (swimsuit VARCHAR, evening_gown VARCHAR, interview VARCHAR)
SELECT COUNT(swimsuit) FROM table_name_32 WHERE evening_gown > 9 AND interview > 8.405
Candidate of kimmo kiljunen belongs to which municipality?
CREATE TABLE table_name_88 (municipality VARCHAR, candidate VARCHAR)
SELECT municipality FROM table_name_88 WHERE candidate = "kimmo kiljunen"
Show different locations and the number of performances at each location.
CREATE TABLE performance (LOCATION VARCHAR)
SELECT LOCATION, COUNT(*) FROM performance GROUP BY LOCATION
In 2011 with a less than 13.333 wind power what is the mean hydroelectricity?
CREATE TABLE table_name_73 (hydroelectricity INTEGER, year VARCHAR, wind_power VARCHAR)
SELECT AVG(hydroelectricity) FROM table_name_73 WHERE year > 2011 AND wind_power < 13.333
Show the locations of parties and the names of the party hosts in ascending order of the age of the host.
CREATE TABLE party (Location VARCHAR, Party_ID VARCHAR); CREATE TABLE HOST (Name VARCHAR, Host_ID VARCHAR, Age VARCHAR); CREATE TABLE party_host (Host_ID VARCHAR, Party_ID VARCHAR)
SELECT T3.Location, T2.Name FROM party_host AS T1 JOIN HOST AS T2 ON T1.Host_ID = T2.Host_ID JOIN party AS T3 ON T1.Party_ID = T3.Party_ID ORDER BY T2.Age
Which Venue has an Away team of south melbourne?
CREATE TABLE table_name_89 (venue VARCHAR, away_team VARCHAR)
SELECT venue FROM table_name_89 WHERE away_team = "south melbourne"
What party got elected in Florida 9 district?
CREATE TABLE table_19753079_12 (party VARCHAR, district VARCHAR)
SELECT party FROM table_19753079_12 WHERE district = "Florida 9"
Which prime mover had a Model of rs-18?
CREATE TABLE table_name_61 (prime_mover VARCHAR, model VARCHAR)
SELECT prime_mover FROM table_name_61 WHERE model = "rs-18"
what is the name of the report that lists the race name as long beach grand prix?
CREATE TABLE table_10707142_2 (report VARCHAR, race_name VARCHAR)
SELECT report FROM table_10707142_2 WHERE race_name = "Long Beach Grand Prix"
How many episodes ran 24:33?
CREATE TABLE table_2102898_1 (episode VARCHAR, run_time VARCHAR)
SELECT COUNT(episode) FROM table_2102898_1 WHERE run_time = "24:33"
What award ceremony was howard bay and patton campbell nominated?
CREATE TABLE table_name_10 (award_ceremony VARCHAR, nominee VARCHAR)
SELECT award_ceremony FROM table_name_10 WHERE nominee = "howard bay and patton campbell"
What is Year(s) Won, when Player is Arnold Palmer?
CREATE TABLE table_name_91 (year_s__won VARCHAR, player VARCHAR)
SELECT year_s__won FROM table_name_91 WHERE player = "arnold palmer"
What prefix has Bromo as the group?
CREATE TABLE table_name_78 (prefix VARCHAR, group VARCHAR)
SELECT prefix FROM table_name_78 WHERE group = "bromo"
What was the production code of the episode no. 55 in the series?
CREATE TABLE table_27776266_1 (production_code VARCHAR, no_in_series VARCHAR)
SELECT production_code FROM table_27776266_1 WHERE no_in_series = 55
What was the total number of games played by se freising when their points were larger than 13?
CREATE TABLE table_name_61 (played VARCHAR, name VARCHAR, points VARCHAR)
SELECT COUNT(played) FROM table_name_61 WHERE name = "se freising" AND points > 13
What is the score of the Boston Bruins away game on March 13?
CREATE TABLE table_name_92 (score VARCHAR, visitor VARCHAR, date VARCHAR)
SELECT score FROM table_name_92 WHERE visitor = "boston bruins" AND date = "march 13"
How many transfer fees did Afonso Alves have after 2008?
CREATE TABLE table_name_13 (transfer_fee___ VARCHAR, player VARCHAR, year VARCHAR)
SELECT COUNT(transfer_fee___) AS €_million_ FROM table_name_13 WHERE player = "afonso alves" AND year > 2008
what is the team geraint williams is the replacement?
CREATE TABLE table_name_20 (team VARCHAR, replaced_by VARCHAR)
SELECT team FROM table_name_20 WHERE replaced_by = "geraint williams"
What is the percentage of the Shivalik Zone where the percentage of the Mid-Hill Zone is 10%?
CREATE TABLE table_10638523_1 (shivalik_zone VARCHAR, mid_hill_zone VARCHAR)
SELECT shivalik_zone FROM table_10638523_1 WHERE mid_hill_zone = "10%"
What was the result of the election featuring r. ewing thomason (d) unopposed?
CREATE TABLE table_1342233_43 (result VARCHAR, candidates VARCHAR)
SELECT result FROM table_1342233_43 WHERE candidates = "R. Ewing Thomason (D) Unopposed"
In what Battle was Bulgarian Commander of Gavril Radomir?
CREATE TABLE table_name_24 (battle VARCHAR, bulgarian_commander VARCHAR)
SELECT battle FROM table_name_24 WHERE bulgarian_commander = "gavril radomir"
When 70 is the total points what is the rr4 points?
CREATE TABLE table_21489362_2 (rr4_pts VARCHAR, total_pts VARCHAR)
SELECT rr4_pts FROM table_21489362_2 WHERE total_pts = 70
Name the Daytime which has a Name of exmouth?
CREATE TABLE table_name_22 (daytime VARCHAR, name VARCHAR)
SELECT daytime FROM table_name_22 WHERE name = "exmouth"
How many segment C are there in the episode where segment D is bicycle tires?
CREATE TABLE table_15187735_20 (segment_c VARCHAR, segment_d VARCHAR)
SELECT COUNT(segment_c) FROM table_15187735_20 WHERE segment_d = "Bicycle Tires"
Name the location attendance for 4 game
CREATE TABLE table_23284271_11 (location_attendance VARCHAR, game VARCHAR)
SELECT location_attendance FROM table_23284271_11 WHERE game = 4
Which Bronze has a Rank of 9?
CREATE TABLE table_name_76 (bronze VARCHAR, rank VARCHAR)
SELECT COUNT(bronze) FROM table_name_76 WHERE rank = "9"
When was the premiere of the show that had a rank of #7?
CREATE TABLE table_name_30 (premiere VARCHAR, rank VARCHAR)
SELECT premiere FROM table_name_30 WHERE rank = "#7"
How many coins by Suzanne Duranceau were minted?
CREATE TABLE table_name_93 (mintage VARCHAR, artist VARCHAR)
SELECT mintage FROM table_name_93 WHERE artist = "suzanne duranceau"
What is the average Attendance, when Opponent is @ Philadelphia Flyers, and when Game is less than 42?
CREATE TABLE table_name_46 (attendance INTEGER, opponent VARCHAR, game VARCHAR)
SELECT AVG(attendance) FROM table_name_46 WHERE opponent = "@ philadelphia flyers" AND game < 42
What are the results of the incumbent who was first elected in 1996?
CREATE TABLE table_name_4 (results VARCHAR, first_elected VARCHAR)
SELECT results FROM table_name_4 WHERE first_elected = 1996
What did the away team score when the crowd was larger than 6,872?
CREATE TABLE table_name_55 (away_team VARCHAR, crowd INTEGER)
SELECT away_team AS score FROM table_name_55 WHERE crowd > 6 OFFSET 872
In 1939, what was the finish?
CREATE TABLE table_name_89 (finish VARCHAR, year VARCHAR)
SELECT finish FROM table_name_89 WHERE year = "1939"
What is the number for D 44 √ when D 47 √ is r 7?
CREATE TABLE table_name_19 (d_44_√ VARCHAR, d_47_√ VARCHAR)
SELECT d_44_√ FROM table_name_19 WHERE d_47_√ = "r 7"
Which division has no playoff but has a 12th game in their season?
CREATE TABLE table_name_74 (division INTEGER, playoffs VARCHAR, reg_season VARCHAR)
SELECT MAX(division) FROM table_name_74 WHERE playoffs = "no playoff" AND reg_season = "12th"
Name the area for population of 53542
CREATE TABLE table_269888_1 (area__km²_ VARCHAR, population__2010_ VARCHAR)
SELECT area__km²_ FROM table_269888_1 WHERE population__2010_ = 53542
what was the competitoin where the opponent is sheffield scimitars?
CREATE TABLE table_17120964_9 (competition VARCHAR, opponent VARCHAR)
SELECT competition FROM table_17120964_9 WHERE opponent = "Sheffield Scimitars"
Which province is grey and bell electorate in
CREATE TABLE table_1024710_2 (province VARCHAR, electorate VARCHAR)
SELECT province FROM table_1024710_2 WHERE electorate = "Grey and Bell"
What is the name of department where has the largest number of professors with a Ph.D. degree?
CREATE TABLE professor (dept_code VARCHAR, prof_high_degree VARCHAR); CREATE TABLE department (dept_name VARCHAR, dept_code VARCHAR)
SELECT T2.dept_name, T1.dept_code FROM professor AS T1 JOIN department AS T2 ON T1.dept_code = T2.dept_code WHERE T1.prof_high_degree = 'Ph.D.' GROUP BY T1.dept_code ORDER BY COUNT(*) DESC LIMIT 1
Who is the player from the United States with a 75-70-68=211 score?
CREATE TABLE table_name_94 (player VARCHAR, country VARCHAR, score VARCHAR)
SELECT player FROM table_name_94 WHERE country = "united states" AND score = 75 - 70 - 68 = 211
What is the 1976 value of the Australian Open?
CREATE TABLE table_name_35 (tournament VARCHAR)
SELECT 1976 FROM table_name_35 WHERE tournament = "australian open"
Who was the challenger on Episode 5?
CREATE TABLE table_23982399_1 (challenger VARCHAR, overall_episode__number VARCHAR)
SELECT challenger FROM table_23982399_1 WHERE overall_episode__number = 5
What is the number of bronze that silver is smaller than 1 and gold bigger than 0?
CREATE TABLE table_name_51 (bronze INTEGER, silver VARCHAR, gold VARCHAR)
SELECT AVG(bronze) FROM table_name_51 WHERE silver < 1 AND gold > 0
how many total number of points margin when brive is the winners
CREATE TABLE table_27987767_2 (points_margin VARCHAR, winners VARCHAR)
SELECT COUNT(points_margin) FROM table_27987767_2 WHERE winners = "Brive"
What is the maximum memory of the model that has a standard memory of 16 mb?
CREATE TABLE table_name_10 (maximum_memory VARCHAR, standard_memory VARCHAR)
SELECT maximum_memory FROM table_name_10 WHERE standard_memory = "16 mb"
Which competition was held on 14 November 2012?
CREATE TABLE table_name_41 (competition VARCHAR, date VARCHAR)
SELECT competition FROM table_name_41 WHERE date = "14 november 2012"
What is the number of races that took place with points of 257?
CREATE TABLE table_name_28 (races INTEGER, points VARCHAR)
SELECT SUM(races) FROM table_name_28 WHERE points = 257
What were all the points for Tonyrefail RFC?
CREATE TABLE table_13564637_5 (points_for VARCHAR, club VARCHAR)
SELECT points_for FROM table_13564637_5 WHERE club = "Tonyrefail RFC"
What is the home team of the game where New Jersey was the visitor team and the record was 11-35-12?
CREATE TABLE table_name_33 (home VARCHAR, visitor VARCHAR, record VARCHAR)
SELECT home FROM table_name_33 WHERE visitor = "new jersey" AND record = "11-35-12"
Which caps was in scotland in 1920–1923?
CREATE TABLE table_name_20 (caps VARCHAR, scotland_career VARCHAR)
SELECT caps FROM table_name_20 WHERE scotland_career = "1920–1923"
What is the name of the episode written by Michael Price?
CREATE TABLE table_2701851_2 (title VARCHAR, written_by VARCHAR)
SELECT title FROM table_2701851_2 WHERE written_by = "Michael Price"
Name the season for runner up of judean rebels
CREATE TABLE table_name_56 (season VARCHAR, runner_up VARCHAR)
SELECT season FROM table_name_56 WHERE runner_up = "judean rebels"
What's the green (SW) of the model with charcoal/white interior/roof?
CREATE TABLE table_2066296_5 (green__sw_ INTEGER, interior_roof VARCHAR)
SELECT MIN(green__sw_) FROM table_2066296_5 WHERE interior_roof = "Charcoal/white"
In which year were most departments established?
CREATE TABLE department (creation VARCHAR)
SELECT creation FROM department GROUP BY creation ORDER BY COUNT(*) DESC LIMIT 1
What are the total number of losses for the team who has conceded 22?
CREATE TABLE table_16034882_4 (loses VARCHAR, goals_conceded VARCHAR)
SELECT COUNT(loses) FROM table_16034882_4 WHERE goals_conceded = 22
Can you tell me the 2009 that has the 2011 of A?
CREATE TABLE table_name_50 (Id VARCHAR)
SELECT 2009 FROM table_name_50 WHERE 2011 = "a"
How many Arabic forms are there for the 1st. plur. perfect category?
CREATE TABLE table_2784232_1 (arabic_form VARCHAR, morphological_category VARCHAR)
SELECT COUNT(arabic_form) FROM table_2784232_1 WHERE morphological_category = "1st. plur. perfect"
What was the game score on april 2, 2008?
CREATE TABLE table_name_2 (score VARCHAR, date VARCHAR)
SELECT score FROM table_name_2 WHERE date = "april 2, 2008"
For a team having goals for more than 95, what is the lowest position?
CREATE TABLE table_name_95 (position INTEGER, goals_for INTEGER)
SELECT MIN(position) FROM table_name_95 WHERE goals_for > 95
Who was in local affairs when the Human Resources & Operations was N. Charles Hamilton?
CREATE TABLE table_name_9 (local_affairs VARCHAR, human_resources_ VARCHAR, _operations VARCHAR)
SELECT local_affairs FROM table_name_9 WHERE human_resources_ & _operations = "n. charles hamilton"
Which Opponent has a February larger than 7 and Record of 37-16-4?
CREATE TABLE table_name_3 (opponent VARCHAR, february VARCHAR, record VARCHAR)
SELECT opponent FROM table_name_3 WHERE february > 7 AND record = "37-16-4"
What is the qual 1 with a 1:09.567 best?
CREATE TABLE table_name_70 (qual_1 VARCHAR, best VARCHAR)
SELECT qual_1 FROM table_name_70 WHERE best = "1:09.567"
What Goals with a Level of 5 or greater is the lowest?
CREATE TABLE table_name_95 (goals INTEGER, level INTEGER)
SELECT MIN(goals) FROM table_name_95 WHERE level > 5
What was the result of the home match against FK Rudar Ugljevik?
CREATE TABLE table_29728596_1 (result VARCHAR, away_team VARCHAR)
SELECT result FROM table_29728596_1 WHERE away_team = "FK Rudar Ugljevik"
who is the home team when tie no is less than 7 and the away team is havant & waterlooville?
CREATE TABLE table_name_24 (home_team VARCHAR, tie_no VARCHAR, away_team VARCHAR)
SELECT home_team FROM table_name_24 WHERE tie_no < 7 AND away_team = "havant & waterlooville"
What is the Style of the dance Choreographed by Nacho Pop with result of safe?
CREATE TABLE table_name_12 (style VARCHAR, results VARCHAR, choreographer VARCHAR)
SELECT style FROM table_name_12 WHERE results = "safe" AND choreographer = "nacho pop"
What covered location has a frequency of 90.7 FM
CREATE TABLE table_name_32 (covered_location VARCHAR, frequency VARCHAR)
SELECT covered_location FROM table_name_32 WHERE frequency = "90.7 fm"
Tell me the lowest placings for United Kingdom and rank less than 13
CREATE TABLE table_name_30 (placings INTEGER, nation VARCHAR, rank VARCHAR)
SELECT MIN(placings) FROM table_name_30 WHERE nation = "united kingdom" AND rank < 13
What is the name of the circuit where the race xi Syracuse grand prix was held?
CREATE TABLE table_1140105_6 (circuit VARCHAR, race_name VARCHAR)
SELECT circuit FROM table_1140105_6 WHERE race_name = "XI Syracuse Grand Prix"
Which Week has an Opponent of pittsburgh steelers, and an Attendance larger than 47,727?
CREATE TABLE table_name_69 (week INTEGER, opponent VARCHAR, attendance VARCHAR)
SELECT MIN(week) FROM table_name_69 WHERE opponent = "pittsburgh steelers" AND attendance > 47 OFFSET 727
What Time has a Show Name of mornings with neil mitchell?
CREATE TABLE table_name_44 (time VARCHAR, show_name VARCHAR)
SELECT time FROM table_name_44 WHERE show_name = "mornings with neil mitchell"
What week was the game played at Mile High Stadium?
CREATE TABLE table_name_85 (week VARCHAR, venue VARCHAR)
SELECT week FROM table_name_85 WHERE venue = "mile high stadium"
What percentage of the votes in Copiah did McCain get?
CREATE TABLE table_20799587_1 (mccain_percentage VARCHAR, county VARCHAR)
SELECT mccain_percentage FROM table_20799587_1 WHERE county = "Copiah"
Who's the athlete with a wind of 1.7 and from the United States?
CREATE TABLE table_name_50 (athlete VARCHAR, nationality VARCHAR, wind VARCHAR)
SELECT athlete FROM table_name_50 WHERE nationality = "united states" AND wind = "1.7"
What is the Background of the contestant with a Hometown listed as Los Angeles, California?
CREATE TABLE table_name_71 (background VARCHAR, hometown VARCHAR)
SELECT background FROM table_name_71 WHERE hometown = "los angeles, california"
Name the distance from north
CREATE TABLE table_197286_4 (distance VARCHAR, direction VARCHAR)
SELECT distance FROM table_197286_4 WHERE direction = "North"
Name the highest Long that has an Avg/G smaller than 8.4, and an GP-GS of 4–0?
CREATE TABLE table_name_88 (long INTEGER, avg_g VARCHAR, gp_gs VARCHAR)
SELECT MAX(long) FROM table_name_88 WHERE avg_g < 8.4 AND gp_gs = "4–0"
In what tournament was there an extra of 400 m hurdles?
CREATE TABLE table_name_31 (tournament VARCHAR, extra VARCHAR)
SELECT tournament FROM table_name_31 WHERE extra = "400 m hurdles"
What's the English translation of the Japanese title of the game Ranma ½: Chougi Rambuhen?
CREATE TABLE table_12744399_1 (english_title_translation VARCHAR, japanese_title VARCHAR)
SELECT english_title_translation FROM table_12744399_1 WHERE japanese_title = "Ranma ½: Chougi Rambuhen"
What was the engine when the chassis was a porsche 718??
CREATE TABLE table_name_87 (engine VARCHAR, chassis VARCHAR)
SELECT engine FROM table_name_87 WHERE chassis = "porsche 718"
what is the result when the round is less than 7 and the opponent is melbourne storm?
CREATE TABLE table_name_76 (result VARCHAR, round VARCHAR, opponent VARCHAR)
SELECT result FROM table_name_76 WHERE round < 7 AND opponent = "melbourne storm"
Tell me the Laps for time/retired of +8 laps
CREATE TABLE table_name_35 (laps VARCHAR, time_retired VARCHAR)
SELECT laps FROM table_name_35 WHERE time_retired = "+8 laps"
What is the frequency MHz in tremonton, utah with a ERP W larger than 30?
CREATE TABLE table_name_50 (frequency_mhz VARCHAR, erp_w VARCHAR, city_of_license VARCHAR)
SELECT frequency_mhz FROM table_name_50 WHERE erp_w > 30 AND city_of_license = "tremonton, utah"
What is the lowest amount of floors in the building completed before 1970 ranked more than 14?
CREATE TABLE table_name_4 (floors INTEGER, completed VARCHAR, rank VARCHAR)
SELECT MIN(floors) FROM table_name_4 WHERE completed < 1970 AND rank > 14
Can you tell me the Away team that has the Home team of south dragons, and the Score of 94-81?
CREATE TABLE table_name_17 (away_team VARCHAR, home_team VARCHAR, score VARCHAR)
SELECT away_team FROM table_name_17 WHERE home_team = "south dragons" AND score = "94-81"
What method has randy couture as the opponent?
CREATE TABLE table_name_15 (method VARCHAR, opponent VARCHAR)
SELECT method FROM table_name_15 WHERE opponent = "randy couture"
Who directed the episode for s02 e08?
CREATE TABLE table_16384596_4 (directed_by VARCHAR, broadcast_order VARCHAR)
SELECT directed_by FROM table_16384596_4 WHERE broadcast_order = "S02 E08"
Which Decision has a Series of 3 – 3?
CREATE TABLE table_name_42 (decision VARCHAR, series VARCHAR)
SELECT decision FROM table_name_42 WHERE series = "3 – 3"
How many games have a Result of 4–0, and an Attendance larger than 12,256?
CREATE TABLE table_name_29 (game VARCHAR, result VARCHAR, attendance VARCHAR)
SELECT COUNT(game) FROM table_name_29 WHERE result = "4–0" AND attendance > 12 OFFSET 256
How many directors did Episode #3 have
CREATE TABLE table_165732_2 (directed_by VARCHAR, episode__number VARCHAR)
SELECT COUNT(directed_by) FROM table_165732_2 WHERE episode__number = 3
What is the length of the film with the character type being a milkman turned prizefighter?
CREATE TABLE table_name_31 (length VARCHAR, character_type VARCHAR)
SELECT length FROM table_name_31 WHERE character_type = "milkman turned prizefighter"
What is the date founded/founder when the emblem was Hercules?
CREATE TABLE table_242785_3 (date_founded__founder VARCHAR, emblem VARCHAR)
SELECT date_founded__founder FROM table_242785_3 WHERE emblem = "Hercules"
What is the total in the case when there are more than 4 associate professors, 5 lecturers and fewer professors than 40?
CREATE TABLE table_name_33 (total VARCHAR, professors VARCHAR, associate_professors VARCHAR, lecturers VARCHAR)
SELECT COUNT(total) FROM table_name_33 WHERE associate_professors > 4 AND lecturers = 5 AND professors < 40
What is the name of the staff that is in charge of the attraction named "US museum"?
CREATE TABLE TOURIST_ATTRACTIONS (Tourist_Attraction_ID VARCHAR, Name VARCHAR); CREATE TABLE STAFF (Name VARCHAR, Tourist_Attraction_ID VARCHAR)
SELECT T1.Name FROM STAFF AS T1 JOIN TOURIST_ATTRACTIONS AS T2 ON T1.Tourist_Attraction_ID = T2.Tourist_Attraction_ID WHERE T2.Name = "US museum"
How many points were scored by Rolla Bigelow?
CREATE TABLE table_14342480_7 (points VARCHAR, player VARCHAR)
SELECT points FROM table_14342480_7 WHERE player = "Rolla Bigelow"