Simple Question (Direct)
Simple Question
Q3792453
P641
Q349
USER
Which sport was Igor Zaniolo a part of ?
(Q3792453,P641,c(Q349))
action filter_type
action find
entity Q3792453
relation P641
type Q349
['Q3792453', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?o WHERE { resource:Q3792453 property:P641 ?o . ?o rdf:type ontology:Q349 }
Igor Zaniolo
action filter_type
action find
entity Igor Zaniolo
relation sport
type sport
['Igor Zaniolo', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?o WHERE { resource:Igor_Zaniolo property:sport ?o . ?o rdf:type ontology:sport }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q3792453,P641,c(Q349))
action filter_type
action find
entity Q3792453
relation P641
type Q349
Which sport was Igor Zaniolo a part of
['Q3792453', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?o WHERE { resource:Q3792453 property:P641 ?o . ?o rdf:type ontology:Q349 }
association football
Which sport was Igor Zaniolo a part of
association football
action filter_type
action find
entity Igor Zaniolo
relation sport
type sport
['Igor Zaniolo', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?o WHERE { resource:Igor_Zaniolo property:sport ?o . ?o rdf:type ontology:sport }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q1853142
Q1496967
USER
And what about North and South?
(Q1853142,P495,c(Q1496967))
action filter_type
action find
entity Q1853142
relation P495
type Q1496967
['Q1853142', 'P495', {'concept': 'Q1496967'}]
SELECT DISTINCT ?t WHERE { resource:Q1853142 property:P495 ?t . ?t rdf:type ontology:Q1496967 }
North and South
action filter_type
action find
entity North and South
relation country of origin
type territorial entity
['North and South', 'country of origin', {'concept': 'territorial entity'}]
SELECT DISTINCT ?t WHERE { resource:North_and_South property:country_of_origin ?t . ?t rdf:type ontology:territorial_entity }
[]
territorial entity
Q21
SYSTEM
England
Q21
(Q1853142,P495,c(Q1496967))
action filter_type
action find
entity Q1853142
relation P495
type Q1496967
[ANSWER]
['Q1853142', 'P495', {'concept': 'Q1496967'}]
SELECT DISTINCT ?t WHERE { resource:Q1853142 property:P495 ?t . ?t rdf:type ontology:Q1496967 }
England
England
action filter_type
action find
entity North and South
relation country of origin
type territorial entity
['North and South', 'country of origin', {'concept': 'territorial entity'}]
SELECT DISTINCT ?t WHERE { resource:North_and_South property:country_of_origin ?t . ?t rdf:type ontology:territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators|Indirect
P19
Q3745054 Q6619679
USER
How many horse breeds and fictional humanoids have birthplace at that territory ?
(c(Q3745054),P19,Q21) (c(Q6619679),P19,Q21) (c(Q3745054),P19,Q21) (c(Q6619679),P19,Q21)
action count
action union
action filter_type
action find_reverse
entity Q21
relation P19
type Q3745054
action filter_type
action find_reverse
entity Q21
relation P19
type Q6619679
[{'concept': 'Q3745054'}, 'P19', 'Q21'] [{'concept': 'Q6619679'}, 'P19', 'Q21'] [{'concept': 'Q3745054'}, 'P19', 'Q21'] [{'concept': 'Q6619679'}, 'P19', 'Q21']
SELECT DISTINCT ( COUNT ( ?b ) AS ?d ) WHERE { ?b rdf:type ?c . VALUES ( ?c ) { ( ontology:Q6619679 ) ( ontology:Q3745054 ) } }
action count
action union
action filter_type
action find_reverse
entity England
relation place of birth
type horse breed
action filter_type
action find_reverse
entity England
relation place of birth
type fictional humanoid
[{'concept': 'horse breed'}, 'place of birth', 'England'] [{'concept': 'fictional humanoid'}, 'place of birth', 'England'] [{'concept': 'horse breed'}, 'place of birth', 'England'] [{'concept': 'fictional humanoid'}, 'place of birth', 'England']
SELECT DISTINCT ( COUNT ( ?b ) AS ?d ) WHERE { ?b rdf:type ?c . VALUES ( ?c ) { ( ontology:fictional_humanoid ) ( ontology:horse_breed ) } }
[]
horse breed fictional humanoid
SYSTEM
1 horse breeds and 1 fictional humanoids
Q2245980 Q7937796
(c(Q3745054),P19,Q21) (c(Q6619679),P19,Q21) (c(Q3745054),P19,Q21) (c(Q6619679),P19,Q21)
action count
action union
action filter_type
action find_reverse
entity Q21
relation P19
type Q3745054
action filter_type
action find_reverse
entity Q21
relation P19
type Q6619679
[ANSWER]
[{'concept': 'Q3745054'}, 'P19', 'Q21'] [{'concept': 'Q6619679'}, 'P19', 'Q21'] [{'concept': 'Q3745054'}, 'P19', 'Q21'] [{'concept': 'Q6619679'}, 'P19', 'Q21']
SELECT DISTINCT ( COUNT ( ?b ) AS ?d ) WHERE { ?b rdf:type ?c . VALUES ( ?c ) { ( ontology:Q6619679 ) ( ontology:Q3745054 ) } }
Ribot Vivian Wright
1 horse breeds and 1 fictional humanoids
action count
action union
action filter_type
action find_reverse
entity England
relation place of birth
type horse breed
action filter_type
action find_reverse
entity England
relation place of birth
type fictional humanoid
[{'concept': 'horse breed'}, 'place of birth', 'England'] [{'concept': 'fictional humanoid'}, 'place of birth', 'England'] [{'concept': 'horse breed'}, 'place of birth', 'England'] [{'concept': 'fictional humanoid'}, 'place of birth', 'England']
SELECT DISTINCT ( COUNT ( ?b ) AS ?d ) WHERE { ?b rdf:type ?c . VALUES ( ?c ) { ( ontology:fictional_humanoid ) ( ontology:horse_breed ) } }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q7373375 Q21
P19 P36
Q56061
USER
Which administrative territories are called the capital of England and are the birthplace of Roy Smiles ?
AND((Q21,P36,c(Q56061)), (Q7373375,P19,c(Q56061)))
action filter_type
action intersection
action find
entity Q21
relation P36
action find
entity Q7373375
relation P19
type Q56061
{'AND': [['Q21', 'P36', {'concept': 'Q56061'}], ['Q7373375', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?d WHERE { resource:Q21 property:P36 ?d . resource:Q7373375 property:P19 ?d . ?d rdf:type ontology:Q56061 }
Roy Smiles England
action filter_type
action intersection
action find
entity England
relation capital
action find
entity Roy Smiles
relation place of birth
type administrative territorial entity
{'AND': [['England', 'capital', {'concept': 'administrative territorial entity'}], ['Roy Smiles', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?d WHERE { resource:England property:capital ?d . resource:Roy_Smiles property:place_of_birth ?d . ?d rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q84
SYSTEM
London
Q84
AND((Q21,P36,c(Q56061)), (Q7373375,P19,c(Q56061)))
action filter_type
action intersection
action find
entity Q21
relation P36
action find
entity Q7373375
relation P19
type Q56061
[ANSWER] is called the capital of England and is the birthplace of Roy Smiles
{'AND': [['Q21', 'P36', {'concept': 'Q56061'}], ['Q7373375', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?d WHERE { resource:Q21 property:P36 ?d . resource:Q7373375 property:P19 ?d . ?d rdf:type ontology:Q56061 }
London
London is called the capital of England and is the birthplace of Roy Smiles
London
action filter_type
action intersection
action find
entity England
relation capital
action find
entity Roy Smiles
relation place of birth
type administrative territorial entity
{'AND': [['England', 'capital', {'concept': 'administrative territorial entity'}], ['Roy Smiles', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?d WHERE { resource:England property:capital ?d . resource:Roy_Smiles property:place_of_birth ?d . ?d rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators|Indirect
P17
Q7275 Q3024240
USER
How many states or former countries are that administrative territory present in ?
(Q84,P17,c(Q7275)) (Q84,P17,c(Q3024240)) (Q84,P17,c(Q7275)) (Q84,P17,c(Q3024240))
action count
action union
action filter_type
action find
entity Q84
relation P17
type Q7275
action filter_type
action find
entity Q84
relation P17
type Q3024240
['Q84', 'P17', {'concept': 'Q7275'}] ['Q84', 'P17', {'concept': 'Q3024240'}] ['Q84', 'P17', {'concept': 'Q7275'}] ['Q84', 'P17', {'concept': 'Q3024240'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?e ) WHERE { { resource:Q84 property:P17 ?m . ?m rdf:type ontology:Q7275 } UNION { resource:Q84 property:P17 ?m . ?m rdf:type ontology:Q3024240 } }
action count
action union
action filter_type
action find
entity London
relation country
type state
action filter_type
action find
entity London
relation country
type former country
['London', 'country', {'concept': 'state'}] ['London', 'country', {'concept': 'former country'}] ['London', 'country', {'concept': 'state'}] ['London', 'country', {'concept': 'former country'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?e ) WHERE { { resource:London property:country ?m . ?m rdf:type ontology:state } UNION { resource:London property:country ?m . ?m rdf:type ontology:former_country } }
[]
state former country
SYSTEM
7
Q2277 Q105092 Q110888 Q161885 Q174193 Q105313 Q179876
(Q84,P17,c(Q7275)) (Q84,P17,c(Q3024240)) (Q84,P17,c(Q7275)) (Q84,P17,c(Q3024240))
action count
action union
action filter_type
action find
entity Q84
relation P17
type Q7275
action filter_type
action find
entity Q84
relation P17
type Q3024240
[ANSWER]
['Q84', 'P17', {'concept': 'Q7275'}] ['Q84', 'P17', {'concept': 'Q3024240'}] ['Q84', 'P17', {'concept': 'Q7275'}] ['Q84', 'P17', {'concept': 'Q3024240'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?e ) WHERE { { resource:Q84 property:P17 ?m . ?m rdf:type ontology:Q7275 } UNION { resource:Q84 property:P17 ?m . ?m rdf:type ontology:Q3024240 } }
Roman Empire Kingdom of Mercia Kingdom of Essex Kingdom of Great Britain United Kingdom of Great Britain and Ireland Kingdom of Wessex Kingdom of England
7
action count
action union
action filter_type
action find
entity London
relation country
type state
action filter_type
action find
entity London
relation country
type former country
['London', 'country', {'concept': 'state'}] ['London', 'country', {'concept': 'former country'}] ['London', 'country', {'concept': 'state'}] ['London', 'country', {'concept': 'former country'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?e ) WHERE { { resource:London property:country ?m . ?m rdf:type ontology:state } UNION { resource:London property:country ?m . ?m rdf:type ontology:former_country } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q4010473 Q3792453
P27
Q15617994
USER
Which administrative territories do Igor Zaniolo or Vetle Andersen belong to ?
OR((Q3792453,P27,c(Q15617994)), (Q4010473,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q3792453
relation P27
action find
entity Q4010473
relation P27
type Q15617994
{'OR': [['Q3792453', 'P27', {'concept': 'Q15617994'}], ['Q4010473', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?o WHERE { { { resource:Q4010473 property:P27 ?o } UNION { resource:Q3792453 property:P27 ?o } } . ?o rdf:type ontology:Q15617994 }
Vetle Andersen Igor Zaniolo
action filter_type
action union
action find
entity Igor Zaniolo
relation country of citizenship
action find
entity Vetle Andersen
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Igor Zaniolo', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Vetle Andersen', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?o WHERE { { { resource:Vetle_Andersen property:country_of_citizenship ?o } UNION { resource:Igor_Zaniolo property:country_of_citizenship ?o } } . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q20 Q38
SYSTEM
Norway, Italy
Q20 Q38
OR((Q3792453,P27,c(Q15617994)), (Q4010473,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q3792453
relation P27
action find
entity Q4010473
relation P27
type Q15617994
Igor Zaniolo or Vetle Andersen belong to [ANSWERS]
{'OR': [['Q3792453', 'P27', {'concept': 'Q15617994'}], ['Q4010473', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?o WHERE { { { resource:Q4010473 property:P27 ?o } UNION { resource:Q3792453 property:P27 ?o } } . ?o rdf:type ontology:Q15617994 }
Norway Italy
Igor Zaniolo or Vetle Andersen belong to Norway and Italy
Norway Italy
action filter_type
action union
action find
entity Igor Zaniolo
relation country of citizenship
action find
entity Vetle Andersen
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Igor Zaniolo', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Vetle Andersen', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?o WHERE { { { resource:Vetle_Andersen property:country_of_citizenship ?o } UNION { resource:Igor_Zaniolo property:country_of_citizenship ?o } } . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q47596
P17
Q11024
USER
Are Chicago Tribune situated in those administrative territories ?
(Q47596,P17,Q20) (Q47596,P17,Q38)
action is_in
entity prev_answer
action find
entity Q47596
relation P17
['Q47596', 'P17', 'Q20'] ['Q47596', 'P17', 'Q38']
ASK WHERE { VALUES ( ?u ) { ( resource:Q20 ) ( resource:Q38 ) } . resource:Q47596 property:P17 ?u }
Chicago Tribune
action is_in
entity prev_answer
action find
entity Chicago Tribune
relation country
['Chicago Tribune', 'country', 'Norway'] ['Chicago Tribune', 'country', 'Italy']
ASK WHERE { VALUES ( ?u ) { ( resource:Norway ) ( resource:Italy ) } . resource:Chicago_Tribune property:country ?u }
[]
communication
SYSTEM
NO
(Q47596,P17,Q20) (Q47596,P17,Q38)
action is_in
entity prev_answer
action find
entity Q47596
relation P17
[ANSWER]
['Q47596', 'P17', 'Q20'] ['Q47596', 'P17', 'Q38']
ASK WHERE { VALUES ( ?u ) { ( resource:Q20 ) ( resource:Q38 ) } . resource:Q47596 property:P17 ?u }
No
action is_in
entity prev_answer
action find
entity Chicago Tribune
relation country
['Chicago Tribune', 'country', 'Norway'] ['Chicago Tribune', 'country', 'Italy']
ASK WHERE { VALUES ( ?u ) { ( resource:Norway ) ( resource:Italy ) } . resource:Chicago_Tribune property:country ?u }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q38 Q145 Q77
P530
Q15617994
USER
Is Italy known to have diplomatic connections with United Kingdom and Uruguay ?
(Q38,P530,Q145) (Q38,P530,Q77)
action is_in
entity Q38
action intersection
action find_reverse
entity Q145
relation P530
action find_reverse
entity Q77
relation P530
['Q38', 'P530', 'Q145'] ['Q38', 'P530', 'Q77']
ASK WHERE { resource:Q38 property:P530 resource:Q145 . resource:Q38 property:P530 resource:Q77 }
Italy United Kingdom Uruguay
action is_in
entity Italy
action intersection
action find_reverse
entity United Kingdom
relation diplomatic relation
action find_reverse
entity Uruguay
relation diplomatic relation
['Italy', 'diplomatic relation', 'United Kingdom'] ['Italy', 'diplomatic relation', 'Uruguay']
ASK WHERE { resource:Italy property:diplomatic_relation resource:United_Kingdom . resource:Italy property:diplomatic_relation resource:Uruguay }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q38,P530,Q145) (Q38,P530,Q77)
action is_in
entity Q38
action intersection
action find_reverse
entity Q145
relation P530
action find_reverse
entity Q77
relation P530
[ANSWER]
['Q38', 'P530', 'Q145'] ['Q38', 'P530', 'Q77']
ASK WHERE { resource:Q38 property:P530 resource:Q145 . resource:Q38 property:P530 resource:Q77 }
Yes
action is_in
entity Italy
action intersection
action find_reverse
entity United Kingdom
relation diplomatic relation
action find_reverse
entity Uruguay
relation diplomatic relation
['Italy', 'diplomatic relation', 'United Kingdom'] ['Italy', 'diplomatic relation', 'Uruguay']
ASK WHERE { resource:Italy property:diplomatic_relation resource:United_Kingdom . resource:Italy property:diplomatic_relation resource:Uruguay }
[]