Simple Question (Direct)
Simple Question
Q2642708
P21
Q290
USER
Which sex does Alexander Mosby Clayton have ?
(Q2642708,P21,c(Q290))
action filter_type
action find
entity Q2642708
relation P21
type Q290
['Q2642708', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?o WHERE { resource:Q2642708 property:P21 ?o . ?o rdf:type ontology:Q290 }
Alexander Mosby Clayton
action filter_type
action find
entity Alexander Mosby Clayton
relation gender
type sex
['Alexander Mosby Clayton', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?o WHERE { resource:Alexander_Mosby_Clayton property:gender ?o . ?o rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q2642708,P21,c(Q290))
action filter_type
action find
entity Q2642708
relation P21
type Q290
Alexander Mosby Clayton has a [ANSWER]
['Q2642708', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?o WHERE { resource:Q2642708 property:P21 ?o . ?o rdf:type ontology:Q290 }
male
Alexander Mosby Clayton has a male
male
action filter_type
action find
entity Alexander Mosby Clayton
relation gender
type sex
['Alexander Mosby Clayton', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?o WHERE { resource:Alexander_Mosby_Clayton property:gender ?o . ?o rdf:type ontology:sex }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q6581097
P136
Q502895
USER
Which people have that sex as genre ?
(c(Q502895),P136,Q6581097)
action filter_type
action find_reverse
entity Q6581097
relation P136
type Q502895
[{'concept': 'Q502895'}, 'P136', 'Q6581097']
SELECT DISTINCT ?h WHERE { ?h property:P136 resource:Q6581097 . ?h rdf:type ontology:Q502895 }
male
action filter_type
action find_reverse
entity male
relation genre
type common name
[{'concept': 'common name'}, 'genre', 'male']
SELECT DISTINCT ?h WHERE { ?h property:genre resource:male . ?h rdf:type ontology:common_name }
[]
common name
Q313288 Q18221191 Q23766532
SYSTEM
Augustus Pugin, Alessandro Gregorio Capponi, Pierre Laviron
Q19796723 Q23766532 Q313288 Q18221191
(c(Q502895),P136,Q6581097)
action filter_type
action find_reverse
entity Q6581097
relation P136
type Q502895
[ANSWERS] have that sex as genre
[{'concept': 'Q502895'}, 'P136', 'Q6581097']
SELECT DISTINCT ?h WHERE { ?h property:P136 resource:Q6581097 . ?h rdf:type ontology:Q502895 }
Francesc Xavier Avilés i Puigvert Pierre Laviron Augustus Pugin Alessandro Gregorio Capponi
Augustus Pugin, Alessandro Gregorio Capponi and Pierre Laviron have that sex as genre
Augustus Pugin Alessandro Gregorio Capponi Pierre Laviron
action filter_type
action find_reverse
entity male
relation genre
type common name
[{'concept': 'common name'}, 'genre', 'male']
SELECT DISTINCT ?h WHERE { ?h property:genre resource:male . ?h rdf:type ontology:common_name }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P725
Q502895 Q15961987
USER
Which television genres had their voice dubbing done by atleast 13 people ?
(c(Q15961987),P725,c(Q502895))
action atleast
action find_tuple_counts
relation P725
type Q15961987
type Q502895
value 13
[{'concept': 'Q15961987'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?t ) AS ?h ) WHERE { ?j property:P725 ?t . ?j rdf:type ontology:Q15961987 . ?t rdf:type ontology:Q502895 } GROUP BY ?j } . FILTER ( ?h >= 13 ) }
action atleast
action find_tuple_counts
relation voice actor
type television genre
type common name
value 13
[{'concept': 'television genre'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?t ) AS ?h ) WHERE { ?j property:voice_actor ?t . ?j rdf:type ontology:television_genre . ?t rdf:type ontology:common_name } GROUP BY ?j } . FILTER ( ?h >= 13 ) }
[]
common name television genre
Q22773153 Q18790
SYSTEM
Milo Murphy's Law, The Legend of Korra
Q22773153 Q18790
(c(Q15961987),P725,c(Q502895))
action atleast
action find_tuple_counts
relation P725
type Q15961987
type Q502895
value 13
[ANSWERS] had their voice dubbing done by atleast 13 people
[{'concept': 'Q15961987'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?t ) AS ?h ) WHERE { ?j property:P725 ?t . ?j rdf:type ontology:Q15961987 . ?t rdf:type ontology:Q502895 } GROUP BY ?j } . FILTER ( ?h >= 13 ) }
Milo Murphy's Law The Legend of Korra
Milo Murphy's Law and The Legend of Korra had their voice dubbing done by atleast 13 people
Milo Murphy's Law The Legend of Korra
action atleast
action find_tuple_counts
relation voice actor
type television genre
type common name
value 13
[{'concept': 'television genre'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?t ) AS ?h ) WHERE { ?j property:voice_actor ?t . ?j rdf:type ontology:television_genre . ?t rdf:type ontology:common_name } GROUP BY ?j } . FILTER ( ?h >= 13 ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q18385675 Q2642708
P27
Q15617994
USER
Which administrative territories do Alexander Mosby Clayton or Zouheir Shourbagi belong to ?
OR((Q2642708,P27,c(Q15617994)), (Q18385675,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q2642708
relation P27
action find
entity Q18385675
relation P27
type Q15617994
{'OR': [['Q2642708', 'P27', {'concept': 'Q15617994'}], ['Q18385675', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Q2642708 property:P27 ?b } UNION { resource:Q18385675 property:P27 ?b } } . ?b rdf:type ontology:Q15617994 }
Zouheir Shourbagi Alexander Mosby Clayton
action filter_type
action union
action find
entity Alexander Mosby Clayton
relation country of citizenship
action find
entity Zouheir Shourbagi
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Alexander Mosby Clayton', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Zouheir Shourbagi', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Alexander_Mosby_Clayton property:country_of_citizenship ?b } UNION { resource:Zouheir_Shourbagi property:country_of_citizenship ?b } } . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q858 Q30
SYSTEM
Syria, United States of America
Q858 Q30
OR((Q2642708,P27,c(Q15617994)), (Q18385675,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q2642708
relation P27
action find
entity Q18385675
relation P27
type Q15617994
Alexander Mosby Clayton or Zouheir Shourbagi belong to [ANSWERS]
{'OR': [['Q2642708', 'P27', {'concept': 'Q15617994'}], ['Q18385675', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Q2642708 property:P27 ?b } UNION { resource:Q18385675 property:P27 ?b } } . ?b rdf:type ontology:Q15617994 }
Syria United States of America
Alexander Mosby Clayton or Zouheir Shourbagi belong to Syria and United States of America
Syria United States of America
action filter_type
action union
action find
entity Alexander Mosby Clayton
relation country of citizenship
action find
entity Zouheir Shourbagi
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Alexander Mosby Clayton', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Zouheir Shourbagi', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Alexander_Mosby_Clayton property:country_of_citizenship ?b } UNION { resource:Zouheir_Shourbagi property:country_of_citizenship ?b } } . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q8862704
P27
Q502895
USER
Are Julian Michał Lambor civilians of those administrative territories ?
(Q8862704,P27,Q858) (Q8862704,P27,Q30)
action is_in
entity prev_answer
action find
entity Q8862704
relation P27
['Q8862704', 'P27', 'Q858'] ['Q8862704', 'P27', 'Q30']
ASK WHERE { VALUES ( ?m ) { ( resource:Q858 ) ( resource:Q30 ) } . resource:Q8862704 property:P27 ?m }
Julian Michał Lambor
action is_in
entity prev_answer
action find
entity Julian Michał Lambor
relation country of citizenship
['Julian Michał Lambor', 'country of citizenship', 'Syria'] ['Julian Michał Lambor', 'country of citizenship', 'United States of America']
ASK WHERE { VALUES ( ?m ) { ( resource:Syria ) ( resource:United_States_of_America ) } . resource:Julian_Michał_Lambor property:country_of_citizenship ?m }
[]
common name
SYSTEM
NO
(Q8862704,P27,Q858) (Q8862704,P27,Q30)
action is_in
entity prev_answer
action find
entity Q8862704
relation P27
[ANSWER]
['Q8862704', 'P27', 'Q858'] ['Q8862704', 'P27', 'Q30']
ASK WHERE { VALUES ( ?m ) { ( resource:Q858 ) ( resource:Q30 ) } . resource:Q8862704 property:P27 ?m }
No
action is_in
entity prev_answer
action find
entity Julian Michał Lambor
relation country of citizenship
['Julian Michał Lambor', 'country of citizenship', 'Syria'] ['Julian Michał Lambor', 'country of citizenship', 'United States of America']
ASK WHERE { VALUES ( ?m ) { ( resource:Syria ) ( resource:United_States_of_America ) } . resource:Julian_Michał_Lambor property:country_of_citizenship ?m }
[]