Simple Question (Direct)
Simple Question
Q471841
P21
Q290
USER
What is the sex of Brian Urlacher ?
(Q471841,P21,c(Q290))
action filter_type
action find
entity Q471841
relation P21
type Q290
['Q471841', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?r WHERE { resource:Q471841 property:P21 ?r . ?r rdf:type ontology:Q290 }
Brian Urlacher
action filter_type
action find
entity Brian Urlacher
relation gender
type sex
['Brian Urlacher', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?r WHERE { resource:Brian_Urlacher property:gender ?r . ?r rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q471841,P21,c(Q290))
action filter_type
action find
entity Q471841
relation P21
type Q290
The sex of Brian Urlacher is a [ANSWER]
['Q471841', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?r WHERE { resource:Q471841 property:P21 ?r . ?r rdf:type ontology:Q290 }
male
The sex of Brian Urlacher is a male
male
action filter_type
action find
entity Brian Urlacher
relation gender
type sex
['Brian Urlacher', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?r WHERE { resource:Brian_Urlacher property:gender ?r . ?r rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q471841
P19
Q56061
USER
Which administrative territory was Brian Urlacher born at ?
(Q471841,P19,c(Q56061))
action filter_type
action find
entity Q471841
relation P19
type Q56061
['Q471841', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?v WHERE { resource:Q471841 property:P19 ?v . ?v rdf:type ontology:Q56061 }
Brian Urlacher
action filter_type
action find
entity Brian Urlacher
relation place of birth
type administrative territorial entity
['Brian Urlacher', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { resource:Brian_Urlacher property:place_of_birth ?v . ?v rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q844016
SYSTEM
Pasco
Q844016
(Q471841,P19,c(Q56061))
action filter_type
action find
entity Q471841
relation P19
type Q56061
Brian Urlacher was born in [ANSWER]
['Q471841', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?v WHERE { resource:Q471841 property:P19 ?v . ?v rdf:type ontology:Q56061 }
Pasco
Brian Urlacher was born in Pasco
Pasco
action filter_type
action find
entity Brian Urlacher
relation place of birth
type administrative territorial entity
['Brian Urlacher', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { resource:Brian_Urlacher property:place_of_birth ?v . ?v rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q3048562
Q56061
USER
And what about Edward James Gage?
(Q3048562,P19,c(Q56061))
action filter_type
action find
entity Q3048562
relation P19
type Q56061
['Q3048562', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?m WHERE { resource:Q3048562 property:P19 ?m . ?m rdf:type ontology:Q56061 }
Edward James Gage
action filter_type
action find
entity Edward James Gage
relation place of birth
type administrative territorial entity
['Edward James Gage', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { resource:Edward_James_Gage property:place_of_birth ?m . ?m rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q65
SYSTEM
Los Angeles
Q65
(Q3048562,P19,c(Q56061))
action filter_type
action find
entity Q3048562
relation P19
type Q56061
[ANSWER]
['Q3048562', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?m WHERE { resource:Q3048562 property:P19 ?m . ?m rdf:type ontology:Q56061 }
Los Angeles
Los Angeles
action filter_type
action find
entity Edward James Gage
relation place of birth
type administrative territorial entity
['Edward James Gage', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { resource:Edward_James_Gage property:place_of_birth ?m . ?m rdf:type ontology:administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q65 Q1880599 Q61
P937
Q56061
USER
Do that administrative territory have Bamboo, Jamaica and Washington, D.C. as their work location ?
(Q65,P937,Q1880599) (Q65,P937,Q61)
action is_in
entity Q65
action intersection
action find_reverse
entity Q1880599
relation P937
action find_reverse
entity Q61
relation P937
['Q65', 'P937', 'Q1880599'] ['Q65', 'P937', 'Q61']
ASK WHERE { resource:Q65 property:P937 resource:Q1880599 . resource:Q65 property:P937 resource:Q61 }
Los Angeles Bamboo, Jamaica Washington, D.C.
action is_in
entity Los Angeles
action intersection
action find_reverse
entity Bamboo, Jamaica
relation work location
action find_reverse
entity Washington, D.C.
relation work location
['Los Angeles', 'work location', 'Bamboo, Jamaica'] ['Los Angeles', 'work location', 'Washington, D.C.']
ASK WHERE { resource:Los_Angeles property:work_location resource:Bamboo,_Jamaica . resource:Los_Angeles property:work_location resource:Washington,_D.C. }
[]
administrative territorial entity
SYSTEM
NO and YES respectively
(Q65,P937,Q1880599) (Q65,P937,Q61)
action is_in
entity Q65
action intersection
action find_reverse
entity Q1880599
relation P937
action find_reverse
entity Q61
relation P937
[ANSWER]
['Q65', 'P937', 'Q1880599'] ['Q65', 'P937', 'Q61']
ASK WHERE { resource:Q65 property:P937 resource:Q1880599 . resource:Q65 property:P937 resource:Q61 }
NO and YES respectively
action is_in
entity Los Angeles
action intersection
action find_reverse
entity Bamboo, Jamaica
relation work location
action find_reverse
entity Washington, D.C.
relation work location
['Los Angeles', 'work location', 'Bamboo, Jamaica'] ['Los Angeles', 'work location', 'Washington, D.C.']
ASK WHERE { resource:Los_Angeles property:work_location resource:Bamboo,_Jamaica . resource:Los_Angeles property:work_location resource:Washington,_D.C. }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q8016
P941
Q502895 Q340169 Q6619679
USER
Which people were the sources of inspiration for more number of medias or fictional humanoids than Winston Churchill ?
(c(Q340169)|c(Q6619679),P941,c(Q502895))
action greater
action union
action find_reverse_tuple_counts
relation P941
type Q502895
type Q340169
action find_reverse_tuple_counts
relation P941
type Q502895
type Q6619679
action count
action filter_multi_types
action find_reverse
entity Q8016
relation P941
type Q340169
type Q6619679
[[{'concept': 'Q340169'}, {'concept': 'Q6619679'}], 'P941', {'concept': 'Q502895'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?z ) ?k WHERE { { ?s property:P941 ?k . ?k rdf:type ontology:Q502895 . ?s rdf:type ontology:Q6619679 } UNION { ?s property:P941 ?k . ?k rdf:type ontology:Q502895 . ?s rdf:type ontology:Q340169 } } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?y ) WHERE { ?t property:P941 resource:Q8016 . { { ?t rdf:type ontology:Q340169 } UNION { ?t rdf:type ontology:Q6619679 } } } } . FILTER ( ?z > ?y ) }
Winston Churchill
action greater
action union
action find_reverse_tuple_counts
relation inspired by
type common name
type media
action find_reverse_tuple_counts
relation inspired by
type common name
type fictional humanoid
action count
action filter_multi_types
action find_reverse
entity Winston Churchill
relation inspired by
type media
type fictional humanoid
[[{'concept': 'media'}, {'concept': 'fictional humanoid'}], 'inspired by', {'concept': 'common name'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?z ) ?k WHERE { { ?s property:inspired_by ?k . ?k rdf:type ontology:common_name . ?s rdf:type ontology:fictional_humanoid } UNION { ?s property:inspired_by ?k . ?k rdf:type ontology:common_name . ?s rdf:type ontology:media } } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?y ) WHERE { ?t property:inspired_by resource:Winston_Churchill . { { ?t rdf:type ontology:media } UNION { ?t rdf:type ontology:fictional_humanoid } } } } . FILTER ( ?z > ?y ) }
[]
common name media fictional humanoid
Q22686 Q183458 Q2907490
SYSTEM
Donald Trump, Andrea del Verrocchio, Bo Gritz
Q2907490 Q183458 Q22686 Q2409128
(c(Q340169)|c(Q6619679),P941,c(Q502895))
action greater
action union
action find_reverse_tuple_counts
relation P941
type Q502895
type Q340169
action find_reverse_tuple_counts
relation P941
type Q502895
type Q6619679
action count
action filter_multi_types
action find_reverse
entity Q8016
relation P941
type Q340169
type Q6619679
[ANSWERS] were the sources of inspiration for more number of medias or fictional humanoids than Winston Churchill
[[{'concept': 'Q340169'}, {'concept': 'Q6619679'}], 'P941', {'concept': 'Q502895'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?z ) ?k WHERE { { ?s property:P941 ?k . ?k rdf:type ontology:Q502895 . ?s rdf:type ontology:Q6619679 } UNION { ?s property:P941 ?k . ?k rdf:type ontology:Q502895 . ?s rdf:type ontology:Q340169 } } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?y ) WHERE { ?t property:P941 resource:Q8016 . { { ?t rdf:type ontology:Q340169 } UNION { ?t rdf:type ontology:Q6619679 } } } } . FILTER ( ?z > ?y ) }
Bo Gritz Andrea del Verrocchio Donald Trump Dušan Popov
Donald Trump, Andrea del Verrocchio and Bo Gritz were the sources of inspiration for more number of medias or fictional humanoids than Winston Churchill
Donald Trump Andrea del Verrocchio Bo Gritz
action greater
action union
action find_reverse_tuple_counts
relation inspired by
type common name
type media
action find_reverse_tuple_counts
relation inspired by
type common name
type fictional humanoid
action count
action filter_multi_types
action find_reverse
entity Winston Churchill
relation inspired by
type media
type fictional humanoid
[[{'concept': 'media'}, {'concept': 'fictional humanoid'}], 'inspired by', {'concept': 'common name'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?z ) ?k WHERE { { ?s property:inspired_by ?k . ?k rdf:type ontology:common_name . ?s rdf:type ontology:fictional_humanoid } UNION { ?s property:inspired_by ?k . ?k rdf:type ontology:common_name . ?s rdf:type ontology:media } } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?y ) WHERE { ?t property:inspired_by resource:Winston_Churchill . { { ?t rdf:type ontology:media } UNION { ?t rdf:type ontology:fictional_humanoid } } } } . FILTER ( ?z > ?y ) }
[]