Simple Question (Direct)
Simple Question
Q5648383
P641
Q349
USER
Which sport was Hank Lammens a part of ?
(Q5648383,P641,c(Q349))
action filter_type
action find
entity Q5648383
relation P641
type Q349
['Q5648383', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?p WHERE { resource:Q5648383 property:P641 ?p . ?p rdf:type ontology:Q349 }
Hank Lammens
action filter_type
action find
entity Hank Lammens
relation sport
type sport
['Hank Lammens', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?p WHERE { resource:Hank_Lammens property:sport ?p . ?p rdf:type ontology:sport }
[]
sport
Q41466
SYSTEM
ice hockey
Q41466
(Q5648383,P641,c(Q349))
action filter_type
action find
entity Q5648383
relation P641
type Q349
Which sport was Hank Lammens a part of
['Q5648383', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?p WHERE { resource:Q5648383 property:P641 ?p . ?p rdf:type ontology:Q349 }
ice hockey
Which sport was Hank Lammens a part of
ice hockey
action filter_type
action find
entity Hank Lammens
relation sport
type sport
['Hank Lammens', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?p WHERE { resource:Hank_Lammens property:sport ?p . ?p rdf:type ontology:sport }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q5648383
P54
Q12973014
USER
Which sports team is Hank Lammens a member of ?
(Q5648383,P54,c(Q12973014))
action filter_type
action find
entity Q5648383
relation P54
type Q12973014
['Q5648383', 'P54', {'concept': 'Q12973014'}]
SELECT DISTINCT ?k WHERE { resource:Q5648383 property:P54 ?k . ?k rdf:type ontology:Q12973014 }
Hank Lammens
action filter_type
action find
entity Hank Lammens
relation member of sports team
type sports team
['Hank Lammens', 'member of sports team', {'concept': 'sports team'}]
SELECT DISTINCT ?k WHERE { resource:Hank_Lammens property:member_of_sports_team ?k . ?k rdf:type ontology:sports_team }
[]
sports team
Q1240798
SYSTEM
Springfield Indians
Q1240798
(Q5648383,P54,c(Q12973014))
action filter_type
action find
entity Q5648383
relation P54
type Q12973014
The [ANSWER] is Hank Lammens a member of
['Q5648383', 'P54', {'concept': 'Q12973014'}]
SELECT DISTINCT ?k WHERE { resource:Q5648383 property:P54 ?k . ?k rdf:type ontology:Q12973014 }
Springfield Indians
The Springfield Indians is Hank Lammens a member of
Springfield Indians
action filter_type
action find
entity Hank Lammens
relation member of sports team
type sports team
['Hank Lammens', 'member of sports team', {'concept': 'sports team'}]
SELECT DISTINCT ?k WHERE { resource:Hank_Lammens property:member_of_sports_team ?k . ?k rdf:type ontology:sports_team }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q4913073
Q12973014
USER
And also tell me about Billy Muffett?
(Q4913073,P54,c(Q12973014))
action filter_type
action find
entity Q4913073
relation P54
type Q12973014
['Q4913073', 'P54', {'concept': 'Q12973014'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q12973014 . resource:Q4913073 property:P54 ?v }
Billy Muffett
action filter_type
action find
entity Billy Muffett
relation member of sports team
type sports team
['Billy Muffett', 'member of sports team', {'concept': 'sports team'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:sports_team . resource:Billy_Muffett property:member_of_sports_team ?v }
[]
sports team
Q213959 Q504309 Q308966
SYSTEM
Boston Red Sox, St. Louis Cardinals, San Francisco Giants
Q213959 Q504309 Q6724873 Q308966
(Q4913073,P54,c(Q12973014))
action filter_type
action find
entity Q4913073
relation P54
type Q12973014
[ANSWERS]
['Q4913073', 'P54', {'concept': 'Q12973014'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q12973014 . resource:Q4913073 property:P54 ?v }
Boston Red Sox St. Louis Cardinals Macon Peaches San Francisco Giants
Boston Red Sox St. Louis Cardinals San Francisco Giants
action filter_type
action find
entity Billy Muffett
relation member of sports team
type sports team
['Billy Muffett', 'member of sports team', {'concept': 'sports team'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:sports_team . resource:Billy_Muffett property:member_of_sports_team ?v }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q12337887 Q5648383
P27
Q1048835
USER
Which political territories are Hank Lammens or Sven Johannesen a civilian of ?
OR((Q5648383,P27,c(Q1048835)), (Q12337887,P27,c(Q1048835)))
action filter_type
action union
action find
entity Q5648383
relation P27
action find
entity Q12337887
relation P27
type Q1048835
{'OR': [['Q5648383', 'P27', {'concept': 'Q1048835'}], ['Q12337887', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Q5648383 property:P27 ?y } UNION { resource:Q12337887 property:P27 ?y } } . ?y rdf:type ontology:Q1048835 }
Sven Johannesen Hank Lammens
action filter_type
action union
action find
entity Hank Lammens
relation country of citizenship
action find
entity Sven Johannesen
relation country of citizenship
type political territorial entity
{'OR': [['Hank Lammens', 'country of citizenship', {'concept': 'political territorial entity'}], ['Sven Johannesen', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Hank_Lammens property:country_of_citizenship ?y } UNION { resource:Sven_Johannesen property:country_of_citizenship ?y } } . ?y rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q16 Q35
SYSTEM
Canada, Denmark
Q16 Q35
OR((Q5648383,P27,c(Q1048835)), (Q12337887,P27,c(Q1048835)))
action filter_type
action union
action find
entity Q5648383
relation P27
action find
entity Q12337887
relation P27
type Q1048835
[ANSWERS] are Hank Lammens or Sven Johannesen a civilian of
{'OR': [['Q5648383', 'P27', {'concept': 'Q1048835'}], ['Q12337887', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Q5648383 property:P27 ?y } UNION { resource:Q12337887 property:P27 ?y } } . ?y rdf:type ontology:Q1048835 }
Canada Denmark
Canada and Denmark are Hank Lammens or Sven Johannesen a civilian of
Canada Denmark
action filter_type
action union
action find
entity Hank Lammens
relation country of citizenship
action find
entity Sven Johannesen
relation country of citizenship
type political territorial entity
{'OR': [['Hank Lammens', 'country of citizenship', {'concept': 'political territorial entity'}], ['Sven Johannesen', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Hank_Lammens property:country_of_citizenship ?y } UNION { resource:Sven_Johannesen property:country_of_citizenship ?y } } . ?y rdf:type ontology:political_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q5685819
P17
Q271669
USER
Are Hay Island located in those political territories ?
(Q5685819,P17,Q16) (Q5685819,P17,Q35)
action is_in
entity prev_answer
action find
entity Q5685819
relation P17
['Q5685819', 'P17', 'Q16'] ['Q5685819', 'P17', 'Q35']
ASK WHERE { resource:Q5685819 property:P17 ?o . VALUES ( ?o ) { ( resource:Q16 ) ( resource:Q35 ) } }
Hay Island
action is_in
entity prev_answer
action find
entity Hay Island
relation country
['Hay Island', 'country', 'Canada'] ['Hay Island', 'country', 'Denmark']
ASK WHERE { resource:Hay_Island property:country ?o . VALUES ( ?o ) { ( resource:Canada ) ( resource:Denmark ) } }
[]
landform
SYSTEM
NO
(Q5685819,P17,Q16) (Q5685819,P17,Q35)
action is_in
entity prev_answer
action find
entity Q5685819
relation P17
[ANSWER]
['Q5685819', 'P17', 'Q16'] ['Q5685819', 'P17', 'Q35']
ASK WHERE { resource:Q5685819 property:P17 ?o . VALUES ( ?o ) { ( resource:Q16 ) ( resource:Q35 ) } }
No
action is_in
entity prev_answer
action find
entity Hay Island
relation country
['Hay Island', 'country', 'Canada'] ['Hay Island', 'country', 'Denmark']
ASK WHERE { resource:Hay_Island property:country ?o . VALUES ( ?o ) { ( resource:Canada ) ( resource:Denmark ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q213959
P466
Q483110
USER
What are the stadia occupied by Boston Red Sox ?
(c(Q483110),P466,Q213959)
action filter_type
action find_reverse
entity Q213959
relation P466
type Q483110
[{'concept': 'Q483110'}, 'P466', 'Q213959']
SELECT DISTINCT ?h WHERE { ?h property:P466 resource:Q213959 . ?h rdf:type ontology:Q483110 }
Boston Red Sox
action filter_type
action find_reverse
entity Boston Red Sox
relation occupant
type stadium
[{'concept': 'stadium'}, 'occupant', 'Boston Red Sox']
SELECT DISTINCT ?h WHERE { ?h property:occupant resource:Boston_Red_Sox . ?h rdf:type ontology:stadium }
[]
stadium
Q6188742 Q49136
SYSTEM
JetBlue Park at Fenway South, Fenway Park
Q6188742 Q49136
(c(Q483110),P466,Q213959)
action filter_type
action find_reverse
entity Q213959
relation P466
type Q483110
The stadia occupied by Boston Red Sox are [ANSWERS]
[{'concept': 'Q483110'}, 'P466', 'Q213959']
SELECT DISTINCT ?h WHERE { ?h property:P466 resource:Q213959 . ?h rdf:type ontology:Q483110 }
JetBlue Park at Fenway South Fenway Park
The stadia occupied by Boston Red Sox are JetBlue Park at Fenway South and Fenway Park
JetBlue Park at Fenway South Fenway Park
action filter_type
action find_reverse
entity Boston Red Sox
relation occupant
type stadium
[{'concept': 'stadium'}, 'occupant', 'Boston Red Sox']
SELECT DISTINCT ?h WHERE { ?h property:occupant resource:Boston_Red_Sox . ?h rdf:type ontology:stadium }
[]
Clarification
Simple Question|Single Entity|Indirect
Q6188742
P115
Q12973014
USER
Which sports team has that stadium as its ground ?
(c(Q12973014),P115,Q6188742)
action filter_type
action find_reverse
entity Q6188742
relation P115
type Q12973014
[{'concept': 'Q12973014'}, 'P115', 'Q6188742']
SELECT DISTINCT ?i WHERE { ?i property:P115 resource:Q6188742 . ?i rdf:type ontology:Q12973014 }
JetBlue Park at Fenway South
action filter_type
action find_reverse
entity JetBlue Park at Fenway South
relation home venue
type sports team
[{'concept': 'sports team'}, 'home venue', 'JetBlue Park at Fenway South']
SELECT DISTINCT ?i WHERE { ?i property:home_venue resource:JetBlue_Park_at_Fenway_South . ?i rdf:type ontology:sports_team }
[]
sports team
Clarification for simple ques.
Q6188742
SYSTEM
Did you mean JetBlue Park at Fenway South ?
Q6188742 Q49136
(c(Q12973014),P115,Q6188742) (c(Q12973014),P115,Q49136)
[ANSWER]
[{'concept': 'Q12973014'}, 'P115', 'Q6188742'] [{'concept': 'Q12973014'}, 'P115', 'Q49136']
SELECT DISTINCT ?i WHERE { ?i property:P115 resource:Q6188742 . ?i rdf:type ontology:Q12973014 }
JetBlue Park at Fenway South Fenway Park
Did you mean JetBlue Park at Fenway South ?
JetBlue Park at Fenway South
[{'concept': 'sports team'}, 'home venue', 'JetBlue Park at Fenway South'] [{'concept': 'sports team'}, 'home venue', 'Fenway Park']
SELECT DISTINCT ?i WHERE { ?i property:home_venue resource:JetBlue_Park_at_Fenway_South . ?i rdf:type ontology:sports_team }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q12973014),P115,Q6188742)
[{'concept': 'Q12973014'}, 'P115', 'Q6188742']
[{'concept': 'sports team'}, 'home venue', 'JetBlue Park at Fenway South']
[]
Q5617449
SYSTEM
Gulf Coast League Red Sox
Q5617449
(c(Q12973014),P115,Q6188742)
action filter_type
action find_reverse
entity Q6188742
relation P115
type Q12973014
League [ANSWER] has that stadium as its ground
[{'concept': 'Q12973014'}, 'P115', 'Q6188742']
SELECT DISTINCT ?i WHERE { ?i property:P115 resource:Q6188742 . ?i rdf:type ontology:Q12973014 }
Gulf Coast League Red Sox
League Gulf Coast League Red Sox has that stadium as its ground
Gulf Coast League Red Sox
action filter_type
action find_reverse
entity JetBlue Park at Fenway South
relation home venue
type sports team
[{'concept': 'sports team'}, 'home venue', 'JetBlue Park at Fenway South']
SELECT DISTINCT ?i WHERE { ?i property:home_venue resource:JetBlue_Park_at_Fenway_South . ?i rdf:type ontology:sports_team }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Indirect
P118
Q623109 Q12973014
USER
How many sports teams play in greater number of sports leagues than that sports team ?
(c(Q12973014),P118,c(Q623109))
action count
action greater
action find_tuple_counts
relation P118
type Q12973014
type Q623109
action count
action filter_type
action find
entity Q5617449
relation P118
type Q12973014
[{'concept': 'Q12973014'}, 'P118', {'concept': 'Q623109'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?l ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?v ) AS ?q ) WHERE { ?w property:P118 ?v . ?w rdf:type ontology:Q12973014 . ?v rdf:type ontology:Q623109 } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?o ) WHERE { resource:Q5617449 property:P118 ?a . ?a rdf:type ontology:Q12973014 } } . FILTER ( ?q > ?o ) }
action count
action greater
action find_tuple_counts
relation league
type sports team
type sports league
action count
action filter_type
action find
entity Gulf Coast League Red Sox
relation league
type sports team
[{'concept': 'sports team'}, 'league', {'concept': 'sports league'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?l ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?v ) AS ?q ) WHERE { ?w property:league ?v . ?w rdf:type ontology:sports_team . ?v rdf:type ontology:sports_league } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?o ) WHERE { resource:Gulf_Coast_League_Red_Sox property:league ?a . ?a rdf:type ontology:sports_team } } . FILTER ( ?q > ?o ) }
[]
sports league sports team
SYSTEM
45
Q1857064 Q1417287 Q6133550 Q1865460 Q4349700 Q1019345 Q4827520 Q431412 Q1022912 Q596985 Q1090574 Q2383402 Q217601 Q665920 Q1071691 Q2735937 Q964957 Q325238 Q297901 Q521129 Q331650 Q154053 Q15786 Q162289 Q5425090 Q1387142 Q1140373 Q7879955 Q1126167 Q15055309 Q812713 Q636019 Q4816008 Q1473374 Q1422627 Q2483534 Q21189793 Q374981 Q4683227 Q538747 Q5971834 Q17182219 Q3625508 Q1361449 Q1361000
(c(Q12973014),P118,c(Q623109))
action count
action greater
action find_tuple_counts
relation P118
type Q12973014
type Q623109
action count
action filter_type
action find
entity Q5617449
relation P118
type Q12973014
[ANSWER]
[{'concept': 'Q12973014'}, 'P118', {'concept': 'Q623109'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?l ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?v ) AS ?q ) WHERE { ?w property:P118 ?v . ?w rdf:type ontology:Q12973014 . ?v rdf:type ontology:Q623109 } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?o ) WHERE { resource:Q5617449 property:P118 ?a . ?a rdf:type ontology:Q12973014 } } . FILTER ( ?q > ?o ) }
RC Toulonnais Panserraikos F.C. Sri Lanka Air Force Sports Club Union Bordeaux Bègles Grankulla IFK Bærum SK Avaldsnes IL Stade Toulousain CA Brive Montpellier Hérault Rugby Vancouver Whitecaps Íþróttafélagið Grótta Drøbak-Frogn IL VfB Lübeck Leicester Tigers Libertad de Sunchales Castres Olympique TSV Altenholz ASM Clermont Auvergne Benetton Rugby Treviso FBK Kaunas Eintracht Braunschweig 1. FC Nürnberg 1. FC Köln Frauen FC Oțelul II Galați FC Grenoble Munster Rugby Ulster F.C. Connacht Rugby Section Paloise Al-Wehda Club Oyonnax Rugby Atlanta Beat Leinster Rugby SU Agen Lot-et-Garonne IF Fram Larvik Swope Park Rangers Glasgow Warriors FC Rapid II București Scarlets IL Flint Louisville City FC 9 de Julio de Río Tercero HIFK Montauban ,Stade Français,racing clubnarbonne FCC Auch
45
action count
action greater
action find_tuple_counts
relation league
type sports team
type sports league
action count
action filter_type
action find
entity Gulf Coast League Red Sox
relation league
type sports team
[{'concept': 'sports team'}, 'league', {'concept': 'sports league'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?l ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?v ) AS ?q ) WHERE { ?w property:league ?v . ?w rdf:type ontology:sports_team . ?v rdf:type ontology:sports_league } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?o ) WHERE { resource:Gulf_Coast_League_Red_Sox property:league ?a . ?a rdf:type ontology:sports_team } } . FILTER ( ?q > ?o ) }
[]