Simple Question (Direct)
Simple Question
Q512431
P19
Q56061
USER
Where was Dadasaheb Phalke born ?
(Q512431,P19,c(Q56061))
action filter_type
action find
entity Q512431
relation P19
type Q56061
['Q512431', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?k WHERE { resource:Q512431 property:P19 ?k . ?k rdf:type ontology:Q56061 }
Dadasaheb Phalke
action filter_type
action find
entity Dadasaheb Phalke
relation place of birth
type administrative territorial entity
['Dadasaheb Phalke', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { resource:Dadasaheb_Phalke property:place_of_birth ?k . ?k rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q200235
SYSTEM
Nashik
Q200235
(Q512431,P19,c(Q56061))
action filter_type
action find
entity Q512431
relation P19
type Q56061
Dadasaheb Phalke was born in [ANSWER]
['Q512431', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?k WHERE { resource:Q512431 property:P19 ?k . ?k rdf:type ontology:Q56061 }
Nashik
Dadasaheb Phalke was born in Nashik
Nashik
action filter_type
action find
entity Dadasaheb Phalke
relation place of birth
type administrative territorial entity
['Dadasaheb Phalke', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { resource:Dadasaheb_Phalke property:place_of_birth ?k . ?k rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q512431
P69
Q3914
USER
Which school is Dadasaheb Phalke an alumni of ?
(Q512431,P69,c(Q3914))
action filter_type
action find
entity Q512431
relation P69
type Q3914
['Q512431', 'P69', {'concept': 'Q3914'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q3914 . resource:Q512431 property:P69 ?s }
Dadasaheb Phalke
action filter_type
action find
entity Dadasaheb Phalke
relation educated at
type school
['Dadasaheb Phalke', 'educated at', {'concept': 'school'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:school . resource:Dadasaheb_Phalke property:educated_at ?s }
[]
school
Q7527516
SYSTEM
Sir Jamsetjee Jeejebhoy School of Art
Q7527516
(Q512431,P69,c(Q3914))
action filter_type
action find
entity Q512431
relation P69
type Q3914
[ANSWER] is Dadasaheb Phalke an alumni of
['Q512431', 'P69', {'concept': 'Q3914'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q3914 . resource:Q512431 property:P69 ?s }
Sir Jamsetjee Jeejebhoy School of Art
Sir Jamsetjee Jeejebhoy School of Art is Dadasaheb Phalke an alumni of
Sir Jamsetjee Jeejebhoy School of Art
action filter_type
action find
entity Dadasaheb Phalke
relation educated at
type school
['Dadasaheb Phalke', 'educated at', {'concept': 'school'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:school . resource:Dadasaheb_Phalke property:educated_at ?s }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q379536
Q3914
USER
And what about Joshua Uzoigwe?
(Q379536,P69,c(Q3914))
action filter_type
action find
entity Q379536
relation P69
type Q3914
['Q379536', 'P69', {'concept': 'Q3914'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q3914 . resource:Q379536 property:P69 ?o }
Joshua Uzoigwe
action filter_type
action find
entity Joshua Uzoigwe
relation educated at
type school
['Joshua Uzoigwe', 'educated at', {'concept': 'school'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:school . resource:Joshua_Uzoigwe property:educated_at ?o }
[]
school
Q1419737
SYSTEM
Guildhall School of Music and Drama
Q1419737
(Q379536,P69,c(Q3914))
action filter_type
action find
entity Q379536
relation P69
type Q3914
[ANSWER]
['Q379536', 'P69', {'concept': 'Q3914'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q3914 . resource:Q379536 property:P69 ?o }
Guildhall School of Music and Drama
Guildhall School of Music and Drama
action filter_type
action find
entity Joshua Uzoigwe
relation educated at
type school
['Joshua Uzoigwe', 'educated at', {'concept': 'school'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:school . resource:Joshua_Uzoigwe property:educated_at ?o }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q1419737 Q531997
P69
Q502895
USER
Was Gabriela Ortiz educated at that school ?
(Q531997,P69,Q1419737)
action is_in
entity Q1419737
action find
entity Q531997
relation P69
['Q531997', 'P69', 'Q1419737']
ASK WHERE { resource:Q531997 property:P69 resource:Q1419737 }
Guildhall School of Music and Drama Gabriela Ortiz
action is_in
entity Guildhall School of Music and Drama
action find
entity Gabriela Ortiz
relation educated at
['Gabriela Ortiz', 'educated at', 'Guildhall School of Music and Drama']
ASK WHERE { resource:Gabriela_Ortiz property:educated_at resource:Guildhall_School_of_Music_and_Drama }
[]
common name
SYSTEM
YES
(Q531997,P69,Q1419737)
action is_in
entity Q1419737
action find
entity Q531997
relation P69
[ANSWER]
['Q531997', 'P69', 'Q1419737']
ASK WHERE { resource:Q531997 property:P69 resource:Q1419737 }
Yes
action is_in
entity Guildhall School of Music and Drama
action find
entity Gabriela Ortiz
relation educated at
['Gabriela Ortiz', 'educated at', 'Guildhall School of Music and Drama']
ASK WHERE { resource:Gabriela_Ortiz property:educated_at resource:Guildhall_School_of_Music_and_Drama }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1419737
P159
Q33506
USER
Where is the head office for that school located ?
action filter_type
action find
entity Q1419737
relation P159
type Q33506
SELECT DISTINCT ?x WHERE { resource:Q1419737 property:P159 ?x . ?x rdf:type ontology:Q33506 }
Guildhall School of Music and Drama
action filter_type
action find
entity Guildhall School of Music and Drama
relation headquarters location
type museum
SELECT DISTINCT ?x WHERE { resource:Guildhall_School_of_Music_and_Drama property:headquarters_location ?x . ?x rdf:type ontology:museum }
[]
museum
Q653858
SYSTEM
Barbican Centre
Q653858
action filter_type
action find
entity Q1419737
relation P159
type Q33506
The head office for that school is located in [ANSWER]
SELECT DISTINCT ?x WHERE { resource:Q1419737 property:P159 ?x . ?x rdf:type ontology:Q33506 }
Barbican Centre
The head office for that school is located in Barbican Centre
Barbican Centre
action filter_type
action find
entity Guildhall School of Music and Drama
relation headquarters location
type museum
SELECT DISTINCT ?x WHERE { resource:Guildhall_School_of_Music_and_Drama property:headquarters_location ?x . ?x rdf:type ontology:museum }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Indirect
P108
Q502895
USER
How many people are working for that museum ?
(c(Q502895),P108,Q653858)
action count
action filter_type
action find_reverse
entity Q653858
relation P108
type Q502895
[{'concept': 'Q502895'}, 'P108', 'Q653858']
SELECT DISTINCT ( COUNT ( ?i ) AS ?e ) WHERE { ?i property:P108 resource:Q653858 . ?i rdf:type ontology:Q502895 }
action count
action filter_type
action find_reverse
entity Barbican Centre
relation employer
type common name
[{'concept': 'common name'}, 'employer', 'Barbican Centre']
SELECT DISTINCT ( COUNT ( ?i ) AS ?e ) WHERE { ?i property:employer resource:Barbican_Centre . ?i rdf:type ontology:common_name }
[]
common name
SYSTEM
1
Q504171
(c(Q502895),P108,Q653858)
action count
action filter_type
action find_reverse
entity Q653858
relation P108
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P108', 'Q653858']
SELECT DISTINCT ( COUNT ( ?i ) AS ?e ) WHERE { ?i property:P108 resource:Q653858 . ?i rdf:type ontology:Q502895 }
Robin Day
1
action count
action filter_type
action find_reverse
entity Barbican Centre
relation employer
type common name
[{'concept': 'common name'}, 'employer', 'Barbican Centre']
SELECT DISTINCT ( COUNT ( ?i ) AS ?e ) WHERE { ?i property:employer resource:Barbican_Centre . ?i rdf:type ontology:common_name }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P417
Q502895 Q1445650 Q56061
USER
Which administrative territories are exactly 1 people or holidays a patron saint of ?
(c(Q56061),P417,c(Q502895)|c(Q1445650))
action equal
action union
action find_tuple_counts
relation P417
type Q56061
type Q502895
action find_tuple_counts
relation P417
type Q56061
type Q1445650
value 1
[{'concept': 'Q56061'}, 'P417', [{'concept': 'Q502895'}, {'concept': 'Q1445650'}]]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ?w ( COUNT ( ?o ) AS ?n ) WHERE { { ?w property:P417 ?o . ?w rdf:type ontology:Q56061 . ?o rdf:type ontology:Q502895 } UNION { ?w property:P417 ?o . ?o rdf:type ontology:Q1445650 . ?w rdf:type ontology:Q56061 } } GROUP BY ?w } . FILTER ( ?n = 1 ) }
action equal
action union
action find_tuple_counts
relation patron saint
type administrative territorial entity
type common name
action find_tuple_counts
relation patron saint
type administrative territorial entity
type holiday
value 1
[{'concept': 'administrative territorial entity'}, 'patron saint', [{'concept': 'common name'}, {'concept': 'holiday'}]]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ?w ( COUNT ( ?o ) AS ?n ) WHERE { { ?w property:patron_saint ?o . ?w rdf:type ontology:administrative_territorial_entity . ?o rdf:type ontology:common_name } UNION { ?w property:patron_saint ?o . ?o rdf:type ontology:holiday . ?w rdf:type ontology:administrative_territorial_entity } } GROUP BY ?w } . FILTER ( ?n = 1 ) }
[]
common name holiday administrative territorial entity
Q649 Q2807 Q490
SYSTEM
Moscow, Madrid, Milan
Q5818 Q187352 Q11974 Q40801 Q212841 Q454875 Q14209773 Q34111 Q81004 Q6737 Q13364 Q46844 Q73450 Q15468 Q490 Q41329 Q495 Q2044 Q1492 Q2028 Q929022 Q641 Q46165 Q649 Q58463 Q491588 Q3395964 Q73489 Q53825 Q200908 Q15090 Q36647 Q13375 Q15088 Q10305 Q53265 Q6340 Q101229 Q50135 Q2090 Q695550 Q53850 Q6285 Q9920 Q6046 Q3739344 Q2807 Q72279 Q133123 Q139595 Q3415 Q495798 Q82208 Q3557616 Q374108 Q3562704 Q428018 Q90 Q431389 Q5991813 Q380189 Q617 Q470461 Q733574 Q932648 Q100143 Q100065 Q13121 Q465078 Q3947670 Q100772 Q71935 Q51400 Q504216 Q51315 Q210470 Q11959 Q52215 Q15095 Q3740507 Q2634 Q51929 Q8356 Q47281 Q58581 Q119066 Q1155 Q200036 Q15487 Q244207 Q1957 Q50074 Q1897 Q433066 Q46864
(c(Q56061),P417,c(Q502895)|c(Q1445650))
action equal
action union
action find_tuple_counts
relation P417
type Q56061
type Q502895
action find_tuple_counts
relation P417
type Q56061
type Q1445650
value 1
[ANSWERS] are exactly 1 people or holidays a patron saint of
[{'concept': 'Q56061'}, 'P417', [{'concept': 'Q502895'}, {'concept': 'Q1445650'}]]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ?w ( COUNT ( ?o ) AS ?n ) WHERE { { ?w property:P417 ?o . ?w rdf:type ontology:Q56061 . ?o rdf:type ontology:Q502895 } UNION { ?w property:P417 ?o . ?o rdf:type ontology:Q1445650 . ?w rdf:type ontology:Q56061 } } GROUP BY ?w } . FILTER ( ?n = 1 ) }
Córdoba Kavala Las Palmas de Gran Canaria Borca di Cadore Drama Amarante Municipality San Lorenzo de' Picenardi Pozzallo Laviano Castellammare di Stabia Ravenna Roana Caldarola Badalona Milan Linz Turin Florence Barcelona Verona Giannitsa Venice Montecchio Maggiore Moscow Cancello e Arnone Camporeale Koufalia Camerino Altilia Rethymno Lleida Cork Pisa Tarragona Zaragoza Gemona del Friuli Castel Giorgio Martinengo Rocca di Cambio Nuremberg Huécija Cariati Varese Haarlem Novara Neokaisareia Madrid Mugnano di Napoli Patras Zacharo Ancona Brolo Kastritsa Platres Altrei Molista Mölten Paris Welsberg-Taisten Mansilla del Páramo Toblach Padua Amfilochia Istiaia Didymoteicho Caprino Bergamasco Mirandola Aalst Astorga San Mauro Mare Busseto Casamarciano Spoltore St. Martin in Passeier Villamagna Katerini Alicante Tuglie Albacete Favrio Naples Ischitella Valladolid Jesolo Curti, Campania Latera Busto Arsizio Volos Berga Campione d'Italia Vologda Castellafiume Cagliari Moos in Passeier Arcugnano
Moscow, Madrid and Milan are exactly 1 people or holidays a patron saint of
Moscow Madrid Milan
action equal
action union
action find_tuple_counts
relation patron saint
type administrative territorial entity
type common name
action find_tuple_counts
relation patron saint
type administrative territorial entity
type holiday
value 1
[{'concept': 'administrative territorial entity'}, 'patron saint', [{'concept': 'common name'}, {'concept': 'holiday'}]]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ?w ( COUNT ( ?o ) AS ?n ) WHERE { { ?w property:patron_saint ?o . ?w rdf:type ontology:administrative_territorial_entity . ?o rdf:type ontology:common_name } UNION { ?w property:patron_saint ?o . ?o rdf:type ontology:holiday . ?w rdf:type ontology:administrative_territorial_entity } } GROUP BY ?w } . FILTER ( ?n = 1 ) }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q1486
P190
Q515
USER
Are Buenos Aires twin town of those administrative territories ?
(Q1486,P190,Q649) (Q1486,P190,Q2807) (Q1486,P190,Q490)
action is_in
entity prev_answer
action find
entity Q1486
relation P190
['Q1486', 'P190', 'Q649'] ['Q1486', 'P190', 'Q2807'] ['Q1486', 'P190', 'Q490']
ASK WHERE { VALUES ( ?r ) { ( resource:Q5818 ) ( resource:Q187352 ) ( resource:Q11974 ) } . resource:Q1486 property:P190 ?r }
Buenos Aires
action is_in
entity prev_answer
action find
entity Buenos Aires
relation sister city
['Buenos Aires', 'sister city', 'Moscow'] ['Buenos Aires', 'sister city', 'Madrid'] ['Buenos Aires', 'sister city', 'Milan']
ASK WHERE { VALUES ( ?r ) { ( resource:Córdoba ) ( resource:Kavala ) ( resource:Las_Palmas_de_Gran_Canaria ) } . resource:Buenos_Aires property:sister_city ?r }
[]
city
SYSTEM
YES
(Q1486,P190,Q649) (Q1486,P190,Q2807) (Q1486,P190,Q490)
action is_in
entity prev_answer
action find
entity Q1486
relation P190
[ANSWER]
['Q1486', 'P190', 'Q649'] ['Q1486', 'P190', 'Q2807'] ['Q1486', 'P190', 'Q490']
ASK WHERE { VALUES ( ?r ) { ( resource:Q5818 ) ( resource:Q187352 ) ( resource:Q11974 ) } . resource:Q1486 property:P190 ?r }
Yes
action is_in
entity prev_answer
action find
entity Buenos Aires
relation sister city
['Buenos Aires', 'sister city', 'Moscow'] ['Buenos Aires', 'sister city', 'Madrid'] ['Buenos Aires', 'sister city', 'Milan']
ASK WHERE { VALUES ( ?r ) { ( resource:Córdoba ) ( resource:Kavala ) ( resource:Las_Palmas_de_Gran_Canaria ) } . resource:Buenos_Aires property:sister_city ?r }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q653858 Q437110 Q145
P17
Q15617994
USER
Is Barbican Centre situated in Altenglan and United Kingdom ?
(Q653858,P17,Q437110) (Q653858,P17,Q145)
action is_in
entity Q653858
action intersection
action find_reverse
entity Q437110
relation P17
action find_reverse
entity Q145
relation P17
['Q653858', 'P17', 'Q437110'] ['Q653858', 'P17', 'Q145']
ASK WHERE { resource:Q653858 property:P17 resource:Q437110 . resource:Q653858 property:P17 resource:Q145 }
Barbican Centre Altenglan United Kingdom
action is_in
entity Barbican Centre
action intersection
action find_reverse
entity Altenglan
relation country
action find_reverse
entity United Kingdom
relation country
['Barbican Centre', 'country', 'Altenglan'] ['Barbican Centre', 'country', 'United Kingdom']
ASK WHERE { resource:Barbican_Centre property:country resource:Altenglan . resource:Barbican_Centre property:country resource:United_Kingdom }
[]
designation for an administrative territorial entity
SYSTEM
NO and YES respectively
(Q653858,P17,Q437110) (Q653858,P17,Q145)
action is_in
entity Q653858
action intersection
action find_reverse
entity Q437110
relation P17
action find_reverse
entity Q145
relation P17
[ANSWER]
['Q653858', 'P17', 'Q437110'] ['Q653858', 'P17', 'Q145']
ASK WHERE { resource:Q653858 property:P17 resource:Q437110 . resource:Q653858 property:P17 resource:Q145 }
NO and YES respectively
action is_in
entity Barbican Centre
action intersection
action find_reverse
entity Altenglan
relation country
action find_reverse
entity United Kingdom
relation country
['Barbican Centre', 'country', 'Altenglan'] ['Barbican Centre', 'country', 'United Kingdom']
ASK WHERE { resource:Barbican_Centre property:country resource:Altenglan . resource:Barbican_Centre property:country resource:United_Kingdom }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q490 Q42991
P47
Q15617994
USER
Does Assago share the border with Milan ?
(Q490,P47,Q42991)
action is_in
entity Q42991
action find
entity Q490
relation P47
['Q490', 'P47', 'Q42991']
ASK WHERE { resource:Q490 property:P47 resource:Q42991 }
Milan Assago
action is_in
entity Assago
action find
entity Milan
relation shares border with
['Milan', 'shares border with', 'Assago']
ASK WHERE { resource:Milan property:shares_border_with resource:Assago }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q490,P47,Q42991)
action is_in
entity Q42991
action find
entity Q490
relation P47
[ANSWER]
['Q490', 'P47', 'Q42991']
ASK WHERE { resource:Q490 property:P47 resource:Q42991 }
Yes
action is_in
entity Assago
action find
entity Milan
relation shares border with
['Milan', 'shares border with', 'Assago']
ASK WHERE { resource:Milan property:shares_border_with resource:Assago }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q16189505 Q531997
P27
Q15617994
USER
Which administrative territories do Gabriela Ortiz or Shaqir Veseli belong to ?
OR((Q531997,P27,c(Q15617994)), (Q16189505,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q531997
relation P27
action find
entity Q16189505
relation P27
type Q15617994
{'OR': [['Q531997', 'P27', {'concept': 'Q15617994'}], ['Q16189505', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Q531997 property:P27 ?z } UNION { resource:Q16189505 property:P27 ?z } } . ?z rdf:type ontology:Q15617994 }
Shaqir Veseli Gabriela Ortiz
action filter_type
action union
action find
entity Gabriela Ortiz
relation country of citizenship
action find
entity Shaqir Veseli
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Gabriela Ortiz', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Shaqir Veseli', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Gabriela_Ortiz property:country_of_citizenship ?z } UNION { resource:Shaqir_Veseli property:country_of_citizenship ?z } } . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q96 Q222
SYSTEM
Mexico, Albania
Q96 Q222
OR((Q531997,P27,c(Q15617994)), (Q16189505,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q531997
relation P27
action find
entity Q16189505
relation P27
type Q15617994
Gabriela Ortiz or Shaqir Veseli belong to [ANSWERS]
{'OR': [['Q531997', 'P27', {'concept': 'Q15617994'}], ['Q16189505', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Q531997 property:P27 ?z } UNION { resource:Q16189505 property:P27 ?z } } . ?z rdf:type ontology:Q15617994 }
Mexico Albania
Gabriela Ortiz or Shaqir Veseli belong to Mexico and Albania
Mexico Albania
action filter_type
action union
action find
entity Gabriela Ortiz
relation country of citizenship
action find
entity Shaqir Veseli
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Gabriela Ortiz', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Shaqir Veseli', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Gabriela_Ortiz property:country_of_citizenship ?z } UNION { resource:Shaqir_Veseli property:country_of_citizenship ?z } } . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]