Simple Question (Direct)
Simple Question
Q1322906
P58
Q502895
USER
Who was the screenwriter for Centurion ?
(Q1322906,P58,c(Q502895))
action filter_type
action find
entity Q1322906
relation P58
type Q502895
['Q1322906', 'P58', {'concept': 'Q502895'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q502895 . resource:Q1322906 property:P58 ?u }
Centurion
action filter_type
action find
entity Centurion
relation screenwriter
type common name
['Centurion', 'screenwriter', {'concept': 'common name'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:common_name . resource:Centurion property:screenwriter ?u }
[]
common name
Q944459
SYSTEM
Neil Marshall
Q944459
(Q1322906,P58,c(Q502895))
action filter_type
action find
entity Q1322906
relation P58
type Q502895
The screenwriter for Centurion was awarded [ANSWER]
['Q1322906', 'P58', {'concept': 'Q502895'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q502895 . resource:Q1322906 property:P58 ?u }
Neil Marshall
The screenwriter for Centurion was awarded Neil Marshall
Neil Marshall
action filter_type
action find
entity Centurion
relation screenwriter
type common name
['Centurion', 'screenwriter', {'concept': 'common name'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:common_name . resource:Centurion property:screenwriter ?u }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1322906
P161
Q502895
USER
Which people are in Centurion ?
(Q1322906,P161,c(Q502895))
action filter_type
action find
entity Q1322906
relation P161
type Q502895
['Q1322906', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ?p WHERE { resource:Q1322906 property:P161 ?p . ?p rdf:type ontology:Q502895 }
Centurion
action filter_type
action find
entity Centurion
relation cast member
type common name
['Centurion', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ?p WHERE { resource:Centurion property:cast_member ?p . ?p rdf:type ontology:common_name }
[]
common name
Q923265 Q164730 Q725686
SYSTEM
JJ Feild, Olga Kurylenko, David Morrissey
Q544038 Q562925 Q2602031 Q313020 Q665139 Q725686 Q923265 Q460572 Q237012 Q164730 Q1378684 Q382210 Q453313 Q57147 Q3025678
(Q1322906,P161,c(Q502895))
action filter_type
action find
entity Q1322906
relation P161
type Q502895
[ANSWERS] are in Centurion
['Q1322906', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ?p WHERE { resource:Q1322906 property:P161 ?p . ?p rdf:type ontology:Q502895 }
Dave Legeno Dimitri Leonidas Peter Guinness Dominic West Noel Clarke David Morrissey JJ Feild Liam Cunningham Imogen Poots Olga Kurylenko Paul Freeman Ulrich Thomsen Rachael Stirling Michael Fassbender Dhaffer L'Abidine
JJ Feild, Olga Kurylenko and David Morrissey are in Centurion
JJ Feild Olga Kurylenko David Morrissey
action filter_type
action find
entity Centurion
relation cast member
type common name
['Centurion', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ?p WHERE { resource:Centurion property:cast_member ?p . ?p rdf:type ontology:common_name }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q1059164
Q502895
USER
And how about Goal II: Living the Dream?
(Q1059164,P161,c(Q502895))
action filter_type
action find
entity Q1059164
relation P161
type Q502895
['Q1059164', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ?v WHERE { resource:Q1059164 property:P161 ?v . ?v rdf:type ontology:Q502895 }
Goal II: Living the Dream
action filter_type
action find
entity Goal II: Living the Dream
relation cast member
type common name
['Goal II: Living the Dream', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ?v WHERE { resource:Goal_II:_Living_the_Dream property:cast_member ?v . ?v rdf:type ontology:common_name }
[]
common name
Q10520 Q1835 Q11576
SYSTEM
David Beckham, Zinedine Zidane, Raúl
Q130215 Q6120247 Q43729 Q483309 Q270311 Q262267 Q8005289 Q213574 Q245207 Q429039 Q311324 Q16089971 Q237594 Q216816 Q296975 Q529207 Q17499 Q11576 Q194461 Q707538 Q57114 Q718193 Q16239100 Q4760371 Q294501 Q2883143 Q58441 Q6120778 Q2919090 Q279673 Q1040599 Q45901 Q41235 Q39444 Q133595 Q5181025 Q1377608 Q374038 Q10520 Q128829 Q5219404 Q454951 Q47576 Q1255625 Q348533 Q9024968 Q16730245 Q4348296 Q11584 Q1835 Q235913 Q10560 Q352021 Q204895 Q4755561 Q296635 Q350424 Q5478514 Q295615
(Q1059164,P161,c(Q502895))
action filter_type
action find
entity Q1059164
relation P161
type Q502895
[ANSWERS]
['Q1059164', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ?v WHERE { resource:Q1059164 property:P161 ?v . ?v rdf:type ontology:Q502895 }
Pablo Aimar Jacqueline de la Vega Andrés Iniesta Sergio Ramos Santiago Cañizares Elizabeth Peña William Beck Rutger Hauer Florentino Pérez Roberto Carlos Thomas Gravesen Leslie Randall Anna Friel Míchel Salgado Iván Helguera Ronaldo Cesc Fàbregas Raúl Guti Stephen Dillane Jens Lehmann Kieran O'Brien Nitin Kundra Andy Ansah Steve McManaman Zay Nuba Robinho Santi Rodríguez Cristina Llorente Pablo Gabriel García Stefano Farina Thierry Henry Emilio Butragueño Ronaldinho Carmelo Gómez Craig Heaney Sean Pertwee Kuno Becker David Beckham Michael Owen Danielle Lyndon Míriam Colón Arsène Wenger Samuel Eto'o Nick Cannon Luis Callejo Mike Jefferies Jorge Jurado Iker Casillas Zinedine Zidane Leonor Varela Freddie Ljungberg Santiago Cabrera Júlio Baptista Andreas Muñoz Jonathan Woodgate Alessandro Nivola Frances Barber Gérard Houllier
David Beckham Zinedine Zidane Raúl
action filter_type
action find
entity Goal II: Living the Dream
relation cast member
type common name
['Goal II: Living the Dream', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ?v WHERE { resource:Goal_II:_Living_the_Dream property:cast_member ?v . ?v rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q22304977 Q1322906
P27 P495
Q15617994
USER
Which administrative territories did Centurion originate or are the native countriesof Gizele Thakral ?
OR((Q1322906,P495,c(Q15617994)), (Q22304977,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q1322906
relation P495
action find
entity Q22304977
relation P27
type Q15617994
{'OR': [['Q1322906', 'P495', {'concept': 'Q15617994'}], ['Q22304977', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?c WHERE { { { resource:Q1322906 property:P495 ?c } UNION { resource:Q22304977 property:P27 ?c } } . ?c rdf:type ontology:Q15617994 }
Gizele Thakral Centurion
action filter_type
action union
action find
entity Centurion
relation country of origin
action find
entity Gizele Thakral
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Centurion', 'country of origin', {'concept': 'designation for an administrative territorial entity'}], ['Gizele Thakral', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?c WHERE { { { resource:Centurion property:country_of_origin ?c } UNION { resource:Gizele_Thakral property:country_of_citizenship ?c } } . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q145 Q668
SYSTEM
United Kingdom, India
Q145 Q668
OR((Q1322906,P495,c(Q15617994)), (Q22304977,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q1322906
relation P495
action find
entity Q22304977
relation P27
type Q15617994
Centurion originated in [ANSWERS] or are the native countriesof Gizele Thakral
{'OR': [['Q1322906', 'P495', {'concept': 'Q15617994'}], ['Q22304977', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?c WHERE { { { resource:Q1322906 property:P495 ?c } UNION { resource:Q22304977 property:P27 ?c } } . ?c rdf:type ontology:Q15617994 }
United Kingdom India
Centurion originated in United Kingdom and India or are the native countriesof Gizele Thakral
United Kingdom India
action filter_type
action union
action find
entity Centurion
relation country of origin
action find
entity Gizele Thakral
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Centurion', 'country of origin', {'concept': 'designation for an administrative territorial entity'}], ['Gizele Thakral', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?c WHERE { { { resource:Centurion property:country_of_origin ?c } UNION { resource:Gizele_Thakral property:country_of_citizenship ?c } } . ?c 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 are known to have diplomatic connections with max number of administrative territories ?
(c(Q15617994),P530,c(Q15617994))
action argmax
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( MAX ( ?b ) AS ?p ) { SELECT DISTINCT ?r ( COUNT ( ?i ) AS ?b ) WHERE { ?r property:P530 ?i . ?r rdf:type ontology:Q15617994 . ?i rdf:type ontology:Q15617994 } GROUP BY ?r } } . { SELECT DISTINCT ?m ( COUNT ( ?u ) AS ?x ) WHERE { ?m property:P530 ?u . ?u rdf:type ontology:Q15617994 . ?m rdf:type ontology:Q15617994 } GROUP BY ?m } . FILTER ( ?x = ?p ) }
action argmax
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', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( MAX ( ?b ) AS ?p ) { SELECT DISTINCT ?r ( COUNT ( ?i ) AS ?b ) WHERE { ?r property:diplomatic_relation ?i . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?r } } . { SELECT DISTINCT ?m ( COUNT ( ?u ) AS ?x ) WHERE { ?m property:diplomatic_relation ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?m } . FILTER ( ?x = ?p ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q230
SYSTEM
Georgia
Q230
(c(Q15617994),P530,c(Q15617994))
action argmax
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
[ANSWER] is known to have diplomatic connections with max number of administrative territories
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( MAX ( ?b ) AS ?p ) { SELECT DISTINCT ?r ( COUNT ( ?i ) AS ?b ) WHERE { ?r property:P530 ?i . ?r rdf:type ontology:Q15617994 . ?i rdf:type ontology:Q15617994 } GROUP BY ?r } } . { SELECT DISTINCT ?m ( COUNT ( ?u ) AS ?x ) WHERE { ?m property:P530 ?u . ?u rdf:type ontology:Q15617994 . ?m rdf:type ontology:Q15617994 } GROUP BY ?m } . FILTER ( ?x = ?p ) }
Georgia
Georgia is known to have diplomatic connections with max number of administrative territories
Georgia
action argmax
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', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( MAX ( ?b ) AS ?p ) { SELECT DISTINCT ?r ( COUNT ( ?i ) AS ?b ) WHERE { ?r property:diplomatic_relation ?i . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?r } } . { SELECT DISTINCT ?m ( COUNT ( ?u ) AS ?x ) WHERE { ?m property:diplomatic_relation ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?m } . FILTER ( ?x = ?p ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q145
P85
Q7725634
USER
What is the national anthem of United Kingdom ?
(Q145,P85,c(Q7725634))
action filter_type
action find
entity Q145
relation P85
type Q7725634
['Q145', 'P85', {'concept': 'Q7725634'}]
SELECT DISTINCT ?r WHERE { resource:Q145 property:P85 ?r . ?r rdf:type ontology:Q7725634 }
United Kingdom
action filter_type
action find
entity United Kingdom
relation anthem
type literary work
['United Kingdom', 'anthem', {'concept': 'literary work'}]
SELECT DISTINCT ?r WHERE { resource:United_Kingdom property:anthem ?r . ?r rdf:type ontology:literary_work }
[]
literary work
Q40807
SYSTEM
God Save the Queen
Q40807
(Q145,P85,c(Q7725634))
action filter_type
action find
entity Q145
relation P85
type Q7725634
The national anthem of United Kingdom is [ANSWER]
['Q145', 'P85', {'concept': 'Q7725634'}]
SELECT DISTINCT ?r WHERE { resource:Q145 property:P85 ?r . ?r rdf:type ontology:Q7725634 }
God Save the Queen
The national anthem of United Kingdom is God Save the Queen
God Save the Queen
action filter_type
action find
entity United Kingdom
relation anthem
type literary work
['United Kingdom', 'anthem', {'concept': 'literary work'}]
SELECT DISTINCT ?r WHERE { resource:United_Kingdom property:anthem ?r . ?r rdf:type ontology:literary_work }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q145
P194
Q1752346
USER
Which assembly is the legislative body for that administrative territory ?
(Q40807,P194,c(Q1752346))
action filter_type
action find
entity Q145
relation P194
type Q1752346
['Q40807', 'P194', {'concept': 'Q1752346'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q1752346 . resource:Q145 property:P194 ?e }
United Kingdom
action filter_type
action find
entity United Kingdom
relation legislative body
type assembly
['God Save the Queen', 'legislative body', {'concept': 'assembly'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:assembly . resource:United_Kingdom property:legislative_body ?e }
[]
assembly
Q11010
SYSTEM
Parliament of the United Kingdom
Q11010
(Q40807,P194,c(Q1752346))
action filter_type
action find
entity Q145
relation P194
type Q1752346
[ANSWER] is the legislative body for that administrative territory
['Q40807', 'P194', {'concept': 'Q1752346'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q1752346 . resource:Q145 property:P194 ?e }
Parliament of the United Kingdom
Parliament of the United Kingdom is the legislative body for that administrative territory
Parliament of the United Kingdom
action filter_type
action find
entity United Kingdom
relation legislative body
type assembly
['God Save the Queen', 'legislative body', {'concept': 'assembly'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:assembly . resource:United_Kingdom property:legislative_body ?e }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P194
Q1752346 Q515
USER
Which cities have exactly 1 assembly as their legislative body ?
(c(Q515),P194,c(Q1752346))
action equal
action find_tuple_counts
relation P194
type Q515
type Q1752346
value 1
[{'concept': 'Q515'}, 'P194', {'concept': 'Q1752346'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?b ) AS ?r ) WHERE { ?x property:P194 ?b . ?x rdf:type ontology:Q515 . ?b rdf:type ontology:Q1752346 } GROUP BY ?x } . FILTER ( ?r = 1 ) }
action equal
action find_tuple_counts
relation legislative body
type city
type assembly
value 1
[{'concept': 'city'}, 'legislative body', {'concept': 'assembly'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?b ) AS ?r ) WHERE { ?x property:legislative_body ?b . ?x rdf:type ontology:city . ?b rdf:type ontology:assembly } GROUP BY ?x } . FILTER ( ?r = 1 ) }
[]
assembly city
Q1486 Q1773 Q1899
SYSTEM
Buenos Aires, Riga, Kyiv
Q1410 Q3616 Q43199 Q2096 Q1899 Q1486 Q1209 Q1773
(c(Q515),P194,c(Q1752346))
action equal
action find_tuple_counts
relation P194
type Q515
type Q1752346
value 1
[ANSWERS] have exactly 1 assembly as their legislative body
[{'concept': 'Q515'}, 'P194', {'concept': 'Q1752346'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?b ) AS ?r ) WHERE { ?x property:P194 ?b . ?x rdf:type ontology:Q515 . ?b rdf:type ontology:Q1752346 } GROUP BY ?x } . FILTER ( ?r = 1 ) }
Gibraltar Tehran Omaha Edmonton Kyiv Buenos Aires Free Hanseatic City of Bremen Riga
Buenos Aires, Riga and Kyiv have exactly 1 assembly as their legislative body
Buenos Aires Riga Kyiv
action equal
action find_tuple_counts
relation legislative body
type city
type assembly
value 1
[{'concept': 'city'}, 'legislative body', {'concept': 'assembly'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?b ) AS ?r ) WHERE { ?x property:legislative_body ?b . ?x rdf:type ontology:city . ?b rdf:type ontology:assembly } GROUP BY ?x } . FILTER ( ?r = 1 ) }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q2887
P190
Q515
USER
Are Santiago sister town of those ones ?
(Q2887,P190,Q1486) (Q2887,P190,Q1773) (Q2887,P190,Q1899)
action is_in
entity prev_answer
action find
entity Q2887
relation P190
['Q2887', 'P190', 'Q1486'] ['Q2887', 'P190', 'Q1773'] ['Q2887', 'P190', 'Q1899']
ASK WHERE { VALUES ( ?f ) { ( resource:Q1410 ) ( resource:Q3616 ) ( resource:Q43199 ) } . resource:Q2887 property:P190 ?f }
Santiago
action is_in
entity prev_answer
action find
entity Santiago
relation sister city
['Santiago', 'sister city', 'Buenos Aires'] ['Santiago', 'sister city', 'Riga'] ['Santiago', 'sister city', 'Kyiv']
ASK WHERE { VALUES ( ?f ) { ( resource:Gibraltar ) ( resource:Tehran ) ( resource:Omaha ) } . resource:Santiago property:sister_city ?f }
[]
city
SYSTEM
YES
(Q2887,P190,Q1486) (Q2887,P190,Q1773) (Q2887,P190,Q1899)
action is_in
entity prev_answer
action find
entity Q2887
relation P190
[ANSWER]
['Q2887', 'P190', 'Q1486'] ['Q2887', 'P190', 'Q1773'] ['Q2887', 'P190', 'Q1899']
ASK WHERE { VALUES ( ?f ) { ( resource:Q1410 ) ( resource:Q3616 ) ( resource:Q43199 ) } . resource:Q2887 property:P190 ?f }
Yes
action is_in
entity prev_answer
action find
entity Santiago
relation sister city
['Santiago', 'sister city', 'Buenos Aires'] ['Santiago', 'sister city', 'Riga'] ['Santiago', 'sister city', 'Kyiv']
ASK WHERE { VALUES ( ?f ) { ( resource:Gibraltar ) ( resource:Tehran ) ( resource:Omaha ) } . resource:Santiago property:sister_city ?f }
[]