Simple Question (Direct)
Simple Question
Q1402901
P58
Q502895
USER
Who wrote the script for Up at the Villa ?
(Q1402901,P58,c(Q502895))
action filter_type
action find
entity Q1402901
relation P58
type Q502895
['Q1402901', 'P58', {'concept': 'Q502895'}]
SELECT DISTINCT ?l WHERE { resource:Q1402901 property:P58 ?l . ?l rdf:type ontology:Q502895 }
Up at the Villa
action filter_type
action find
entity Up at the Villa
relation screenwriter
type common name
['Up at the Villa', 'screenwriter', {'concept': 'common name'}]
SELECT DISTINCT ?l WHERE { resource:Up_at_the_Villa property:screenwriter ?l . ?l rdf:type ontology:common_name }
[]
common name
Q134942
SYSTEM
William Somerset Maugham
Q134942
(Q1402901,P58,c(Q502895))
action filter_type
action find
entity Q1402901
relation P58
type Q502895
[ANSWER] wrote the script for Up at the Villa
['Q1402901', 'P58', {'concept': 'Q502895'}]
SELECT DISTINCT ?l WHERE { resource:Q1402901 property:P58 ?l . ?l rdf:type ontology:Q502895 }
William Somerset Maugham
William Somerset Maugham wrote the script for Up at the Villa
William Somerset Maugham
action filter_type
action find
entity Up at the Villa
relation screenwriter
type common name
['Up at the Villa', 'screenwriter', {'concept': 'common name'}]
SELECT DISTINCT ?l WHERE { resource:Up_at_the_Villa property:screenwriter ?l . ?l rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q134942
P1411
Q618779
USER
Which award was that person nominated for ?
(Q134942,P1411,c(Q618779))
action filter_type
action find
entity Q134942
relation P1411
type Q618779
['Q134942', 'P1411', {'concept': 'Q618779'}]
SELECT DISTINCT ?b WHERE { resource:Q134942 property:P1411 ?b . ?b rdf:type ontology:Q618779 }
William Somerset Maugham
action filter_type
action find
entity William Somerset Maugham
relation nominated for
type award
['William Somerset Maugham', 'nominated for', {'concept': 'award'}]
SELECT DISTINCT ?b WHERE { resource:William_Somerset_Maugham property:nominated_for ?b . ?b rdf:type ontology:award }
[]
award
Q37922
SYSTEM
Nobel Prize in Literature
Q37922
(Q134942,P1411,c(Q618779))
action filter_type
action find
entity Q134942
relation P1411
type Q618779
That person was nominated for [ANSWER]
['Q134942', 'P1411', {'concept': 'Q618779'}]
SELECT DISTINCT ?b WHERE { resource:Q134942 property:P1411 ?b . ?b rdf:type ontology:Q618779 }
Nobel Prize in Literature
That person was nominated for Nobel Prize in Literature
Nobel Prize in Literature
action filter_type
action find
entity William Somerset Maugham
relation nominated for
type award
['William Somerset Maugham', 'nominated for', {'concept': 'award'}]
SELECT DISTINCT ?b WHERE { resource:William_Somerset_Maugham property:nominated_for ?b . ?b rdf:type ontology:award }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q37922 Q121180
P1346
Q502895
USER
Did Władysław Reymont win Nobel Prize in Literature ?
(Q37922,P1346,Q121180)
action is_in
entity Q121180
action find
entity Q37922
relation P1346
['Q37922', 'P1346', 'Q121180']
ASK WHERE { resource:Q37922 property:P1346 resource:Q121180 }
Nobel Prize in Literature Władysław Reymont
action is_in
entity Władysław Reymont
action find
entity Nobel Prize in Literature
relation winner
['Nobel Prize in Literature', 'winner', 'Władysław Reymont']
ASK WHERE { resource:Nobel_Prize_in_Literature property:winner resource:Władysław_Reymont }
[]
common name
SYSTEM
YES
(Q37922,P1346,Q121180)
action is_in
entity Q121180
action find
entity Q37922
relation P1346
[ANSWER]
['Q37922', 'P1346', 'Q121180']
ASK WHERE { resource:Q37922 property:P1346 resource:Q121180 }
Yes
action is_in
entity Władysław Reymont
action find
entity Nobel Prize in Literature
relation winner
['Nobel Prize in Literature', 'winner', 'Władysław Reymont']
ASK WHERE { resource:Nobel_Prize_in_Literature property:winner resource:Władysław_Reymont }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q37922
P361
Q618779
USER
What is that one a component of ?
action filter_type
action find
entity Q37922
relation P361
type Q618779
SELECT DISTINCT ?f WHERE { resource:Q37922 property:P361 ?f . ?f rdf:type ontology:Q618779 }
Nobel Prize in Literature
action filter_type
action find
entity Nobel Prize in Literature
relation part of
type award
SELECT DISTINCT ?f WHERE { resource:Nobel_Prize_in_Literature property:part_of ?f . ?f rdf:type ontology:award }
[]
award
Q7191
SYSTEM
Nobel Prize
Q7191
action filter_type
action find
entity Q37922
relation P361
type Q618779
That one a component of is the [ANSWER]
SELECT DISTINCT ?f WHERE { resource:Q37922 property:P361 ?f . ?f rdf:type ontology:Q618779 }
Nobel Prize
That one a component of is the Nobel Prize
Nobel Prize
action filter_type
action find
entity Nobel Prize in Literature
relation part of
type award
SELECT DISTINCT ?f WHERE { resource:Nobel_Prize_in_Literature property:part_of ?f . ?f rdf:type ontology:award }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q37922
P1346
Q502895
USER
How many people emerged victorious in Nobel Prize in Literature ?
(Q37922,P1346,c(Q502895))
action count
action filter_type
action find
entity Q37922
relation P1346
type Q502895
['Q37922', 'P1346', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?c ) WHERE { ?o rdf:type ontology:Q502895 . resource:Q37922 property:P1346 ?o }
Nobel Prize in Literature
action count
action filter_type
action find
entity Nobel Prize in Literature
relation winner
type common name
['Nobel Prize in Literature', 'winner', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?c ) WHERE { ?o rdf:type ontology:common_name . resource:Nobel_Prize_in_Literature property:winner ?o }
[]
common name
SYSTEM
5
Q121180 Q225554 Q159552 Q47561 Q131487
(Q37922,P1346,c(Q502895))
action count
action filter_type
action find
entity Q37922
relation P1346
type Q502895
[ANSWER]
['Q37922', 'P1346', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?c ) WHERE { ?o rdf:type ontology:Q502895 . resource:Q37922 property:P1346 ?o }
Władysław Reymont Henrik Pontoppidan Johannes V. Jensen Ivo Andrić Karl Adolph Gjellerup
5
action count
action filter_type
action find
entity Nobel Prize in Literature
relation winner
type common name
['Nobel Prize in Literature', 'winner', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?c ) WHERE { ?o rdf:type ontology:common_name . resource:Nobel_Prize_in_Literature property:winner ?o }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Incomplete
Q181883
P1346
Q502895
USER
And how about Golden Globe Award for Best Actor – Motion Picture Musical or Comedy?
(Q181883,P1346,c(Q502895))
action count
action filter_type
action find
entity Q181883
relation P1346
type Q502895
['Q181883', 'P1346', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?u ) WHERE { resource:Q181883 property:P1346 ?b . ?b rdf:type ontology:Q502895 }
Golden Globe Award for Best Actor – Motion Picture Musical or Comedy
action count
action filter_type
action find
entity Golden Globe Award for Best Actor – Motion Picture Musical or Comedy
relation winner
type common name
['Golden Globe Award for Best Actor – Motion Picture Musical or Comedy', 'winner', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?u ) WHERE { resource:Golden_Globe_Award_for_Best_Actor_–_Motion_Picture_Musical_or_Comedy property:winner ?b . ?b rdf:type ontology:common_name }
[]
common name
SYSTEM
58
Q76895 Q208681 Q449900 Q427388 Q95048 Q48410 Q37175 Q129591 Q195371 Q29250 Q23844 Q38111 Q2263 Q310343 Q123351 Q296641 Q212048 Q55469 Q50003 Q37079 Q94123 Q181887 Q100937 Q172035 Q319133 Q39792 Q106775 Q344793 Q42930 Q138005 Q208649 Q83338 Q106508 Q202172 Q1867549 Q348345 Q165219 Q366910 Q1371467 Q181799 Q108283 Q182431 Q95030 Q185140 Q181917 Q213425 Q189422 Q209186 Q150943 Q219546 Q40912 Q103876 Q171905 Q80938 Q40504 Q48337 Q163286 Q29055
(Q181883,P1346,c(Q502895))
action count
action filter_type
action find
entity Q181883
relation P1346
type Q502895
[ANSWER]
['Q181883', 'P1346', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?u ) WHERE { resource:Q181883 property:P1346 ?b . ?b rdf:type ontology:Q502895 }
Lee Marvin Kris Kristofferson George Segal Tom Ewell Tim Robbins Richard Gere Johnny Depp Hugh Jackman Cantinflas Bill Murray George Clooney Leonardo DiCaprio Tom Hanks Dudley Moore Michael Caine Paul Hogan Glenn Ford Marcello Mastroianni Alberto Sordi Tom Cruise Jack Lemmon Rex Harrison Fred Astaire Colin Farrell Chaim Topol Jack Nicholson Richard Harris George Burns Dustin Hoffman Michael Keaton Paul Giamatti Robin Williams Gérard Depardieu Walter Matthau Peter Sellars Donald O'Connor Robert Downey, Jr. Ron Moody Ray Sharkey Richard Dreyfuss Alan Arkin Art Carney Warren Beatty Joaquin Phoenix David Niven Danny Kaye Jean Dujardin James Mason Gene Hackman Albert Finney Frank Sinatra Peter O'Toole Jamie Foxx John Travolta Jim Carrey Morgan Freeman Hugh Grant Sacha Baron Cohen
58
action count
action filter_type
action find
entity Golden Globe Award for Best Actor – Motion Picture Musical or Comedy
relation winner
type common name
['Golden Globe Award for Best Actor – Motion Picture Musical or Comedy', 'winner', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?u ) WHERE { resource:Golden_Globe_Award_for_Best_Actor_–_Motion_Picture_Musical_or_Comedy property:winner ?b . ?b rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Incomplete count-based ques
Q22670413
Q502895
USER
And what about 2016 La Méditerranéenne, Stage 4?
(Q22670413,P1346,c(Q502895))
action count
action filter_type
action find
entity Q22670413
relation P1346
type Q502895
['Q22670413', 'P1346', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?n ) WHERE { resource:Q22670413 property:P1346 ?d . ?d rdf:type ontology:Q502895 }
2016 La Méditerranéenne, Stage 4
action count
action filter_type
action find
entity 2016 La Méditerranéenne, Stage 4
relation winner
type common name
['2016 La Méditerranéenne, Stage 4', 'winner', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?n ) WHERE { resource:2016_La_Méditerranéenne,_Stage_4 property:winner ?d . ?d rdf:type ontology:common_name }
[]
common name
SYSTEM
2
(Q22670413,P1346,c(Q502895))
action count
action filter_type
action find
entity Q22670413
relation P1346
type Q502895
[ANSWER]
['Q22670413', 'P1346', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?n ) WHERE { resource:Q22670413 property:P1346 ?d . ?d rdf:type ontology:Q502895 }
2
action count
action filter_type
action find
entity 2016 La Méditerranéenne, Stage 4
relation winner
type common name
['2016 La Méditerranéenne, Stage 4', 'winner', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?n ) WHERE { resource:2016_La_Méditerranéenne,_Stage_4 property:winner ?d . ?d rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q22670413
P1444
Q15617994
USER
Which administrative territory marks the end of journey for that type of sport ?
action filter_type
action find
entity Q22670413
relation P1444
type Q15617994
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q15617994 . resource:Q22670413 property:P1444 ?j }
2016 La Méditerranéenne, Stage 4
action filter_type
action find
entity 2016 La Méditerranéenne, Stage 4
relation destination point
type designation for an administrative territorial entity
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:2016_La_Méditerranéenne,_Stage_4 property:destination_point ?j }
[]
designation for an administrative territorial entity
Q268214
SYSTEM
Bordighera
Q268214
action filter_type
action find
entity Q22670413
relation P1444
type Q15617994
[ANSWER] marks the end of journey for that type of sport
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q15617994 . resource:Q22670413 property:P1444 ?j }
Bordighera
Bordighera marks the end of journey for that type of sport
Bordighera
action filter_type
action find
entity 2016 La Méditerranéenne, Stage 4
relation destination point
type designation for an administrative territorial entity
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:2016_La_Méditerranéenne,_Stage_4 property:destination_point ?j }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q268214 Q4673515 Q17083707
P47
Q56061
USER
Is Bordighera bordered by Achartimmapur and Tolombeh-ye Deh Ziar ?
(Q268214,P47,Q4673515) (Q268214,P47,Q17083707)
action is_in
entity Q268214
action intersection
action find_reverse
entity Q4673515
relation P47
action find_reverse
entity Q17083707
relation P47
['Q268214', 'P47', 'Q4673515'] ['Q268214', 'P47', 'Q17083707']
ASK WHERE { resource:Q268214 property:P47 resource:Q4673515 . resource:Q268214 property:P47 resource:Q17083707 }
Bordighera Achartimmapur Tolombeh-ye Deh Ziar
action is_in
entity Bordighera
action intersection
action find_reverse
entity Achartimmapur
relation shares border with
action find_reverse
entity Tolombeh-ye Deh Ziar
relation shares border with
['Bordighera', 'shares border with', 'Achartimmapur'] ['Bordighera', 'shares border with', 'Tolombeh-ye Deh Ziar']
ASK WHERE { resource:Bordighera property:shares_border_with resource:Achartimmapur . resource:Bordighera property:shares_border_with resource:Tolombeh-ye_Deh_Ziar }
[]
administrative territorial entity
SYSTEM
NO
(Q268214,P47,Q4673515) (Q268214,P47,Q17083707)
action is_in
entity Q268214
action intersection
action find_reverse
entity Q4673515
relation P47
action find_reverse
entity Q17083707
relation P47
[ANSWER]
['Q268214', 'P47', 'Q4673515'] ['Q268214', 'P47', 'Q17083707']
ASK WHERE { resource:Q268214 property:P47 resource:Q4673515 . resource:Q268214 property:P47 resource:Q17083707 }
No
action is_in
entity Bordighera
action intersection
action find_reverse
entity Achartimmapur
relation shares border with
action find_reverse
entity Tolombeh-ye Deh Ziar
relation shares border with
['Bordighera', 'shares border with', 'Achartimmapur'] ['Bordighera', 'shares border with', 'Tolombeh-ye Deh Ziar']
ASK WHERE { resource:Bordighera property:shares_border_with resource:Achartimmapur . resource:Bordighera property:shares_border_with resource:Tolombeh-ye_Deh_Ziar }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q268214
P17
Q15617994
USER
Which administrative territory is that one situated in ?
action filter_type
action find
entity Q268214
relation P17
type Q15617994
SELECT DISTINCT ?p WHERE { resource:Q268214 property:P17 ?p . ?p rdf:type ontology:Q15617994 }
Bordighera
action filter_type
action find
entity Bordighera
relation country
type designation for an administrative territorial entity
SELECT DISTINCT ?p WHERE { resource:Bordighera property:country ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q38
SYSTEM
Italy
Q38
action filter_type
action find
entity Q268214
relation P17
type Q15617994
That one is situated in [ANSWER]
SELECT DISTINCT ?p WHERE { resource:Q268214 property:P17 ?p . ?p rdf:type ontology:Q15617994 }
Italy
That one is situated in Italy
Italy
action filter_type
action find
entity Bordighera
relation country
type designation for an administrative territorial entity
SELECT DISTINCT ?p WHERE { resource:Bordighera property:country ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P530
Q15617994 Q15617994
USER
Which administrative territories have diplomatic relations with min number of administrative territories ?
(c(Q15617994),P530,Q953)
action argmin
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
[{'concept': 'Q15617994'}, 'P530', 'Q953']
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?u ) AS ?l ) WHERE { ?u rdf:type ontology:Q15617994 . ?h rdf:type ontology:Q15617994 . ?h property:P530 ?u } GROUP BY ?h } . FILTER ( ?l = ?s ) . { SELECT DISTINCT ( MIN ( ?b ) AS ?s ) { SELECT DISTINCT ?n ( COUNT ( ?t ) AS ?b ) WHERE { ?n property:P530 ?t . ?t rdf:type ontology:Q15617994 . ?n rdf:type ontology:Q15617994 } GROUP BY ?n } } }
action argmin
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Zambia']
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?u ) AS ?l ) WHERE { ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . ?h property:diplomatic_relation ?u } GROUP BY ?h } . FILTER ( ?l = ?s ) . { SELECT DISTINCT ( MIN ( ?b ) AS ?s ) { SELECT DISTINCT ?n ( COUNT ( ?t ) AS ?b ) WHERE { ?n property:diplomatic_relation ?t . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?n } } }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q929 Q29999 Q232
SYSTEM
Central African Republic, Kingdom of the Netherlands, Kazakhstan
Q702 Q804 Q265 Q712 Q837 Q242 Q811 Q929 Q29999 Q854 Q730 Q232 Q1027 Q1032 Q697 Q695 Q754 Q912 Q683 Q836 Q817 Q1019 Q945 Q678 Q33788
(c(Q15617994),P530,Q953)
action argmin
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
[ANSWERS] have diplomatic relations with min number of administrative territories
[{'concept': 'Q15617994'}, 'P530', 'Q953']
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?u ) AS ?l ) WHERE { ?u rdf:type ontology:Q15617994 . ?h rdf:type ontology:Q15617994 . ?h property:P530 ?u } GROUP BY ?h } . FILTER ( ?l = ?s ) . { SELECT DISTINCT ( MIN ( ?b ) AS ?s ) { SELECT DISTINCT ?n ( COUNT ( ?t ) AS ?b ) WHERE { ?n property:P530 ?t . ?t rdf:type ontology:Q15617994 . ?n rdf:type ontology:Q15617994 } GROUP BY ?n } } }
Federated States of Micronesia Panama Uzbekistan Fiji Nepal Belize Nicaragua Central African Republic Kingdom of the Netherlands Sri Lanka Suriname Kazakhstan Mauritius Niger Nauru Palau Trinidad and Tobago Mali Samoa Myanmar Kuwait Madagascar Togo Tonga New Caledonia
Central African Republic, Kingdom of the Netherlands and Kazakhstan have diplomatic relations with min number of administrative territories
Central African Republic Kingdom of the Netherlands Kazakhstan
action argmin
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Zambia']
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?u ) AS ?l ) WHERE { ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . ?h property:diplomatic_relation ?u } GROUP BY ?h } . FILTER ( ?l = ?s ) . { SELECT DISTINCT ( MIN ( ?b ) AS ?s ) { SELECT DISTINCT ?n ( COUNT ( ?t ) AS ?b ) WHERE { ?n property:diplomatic_relation ?t . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?n } } }
[]