Simple Question (Direct)
Simple Question
Q930777
P144
Q2342494
USER
Which collectable does Spider extend upon ?
(Q930777,P144,c(Q2342494))
action filter_type
action find
entity Q930777
relation P144
type Q2342494
['Q930777', 'P144', {'concept': 'Q2342494'}]
SELECT DISTINCT ?o WHERE { resource:Q930777 property:P144 ?o . ?o rdf:type ontology:Q2342494 }
Spider
action filter_type
action find
entity Spider
relation based on
type collectable
['Spider', 'based on', {'concept': 'collectable'}]
SELECT DISTINCT ?o WHERE { resource:Spider property:based_on ?o . ?o rdf:type ontology:collectable }
[]
collectable
Q7577006
SYSTEM
Spider
Q7577006
(Q930777,P144,c(Q2342494))
action filter_type
action find
entity Q930777
relation P144
type Q2342494
Extends [ANSWER] [ANSWER]
['Q930777', 'P144', {'concept': 'Q2342494'}]
SELECT DISTINCT ?o WHERE { resource:Q930777 property:P144 ?o . ?o rdf:type ontology:Q2342494 }
Spider
Extends Spider Spider
Spider
action filter_type
action find
entity Spider
relation based on
type collectable
['Spider', 'based on', {'concept': 'collectable'}]
SELECT DISTINCT ?o WHERE { resource:Spider property:based_on ?o . ?o rdf:type ontology:collectable }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q7577006
P50
Q502895
USER
Who wrote that collectable ?
(Q7577006,P50,c(Q502895))
action filter_type
action find
entity Q7577006
relation P50
type Q502895
['Q7577006', 'P50', {'concept': 'Q502895'}]
SELECT DISTINCT ?e WHERE { resource:Q7577006 property:P50 ?e . ?e rdf:type ontology:Q502895 }
Spider
action filter_type
action find
entity Spider
relation author
type common name
['Spider', 'author', {'concept': 'common name'}]
SELECT DISTINCT ?e WHERE { resource:Spider property:author ?e . ?e rdf:type ontology:common_name }
[]
common name
Q920996
SYSTEM
Patrick McGrath
Q920996
(Q7577006,P50,c(Q502895))
action filter_type
action find
entity Q7577006
relation P50
type Q502895
[ANSWER] wrote that collectable
['Q7577006', 'P50', {'concept': 'Q502895'}]
SELECT DISTINCT ?e WHERE { resource:Q7577006 property:P50 ?e . ?e rdf:type ontology:Q502895 }
Patrick McGrath
Patrick McGrath wrote that collectable
Patrick McGrath
action filter_type
action find
entity Spider
relation author
type common name
['Spider', 'author', {'concept': 'common name'}]
SELECT DISTINCT ?e WHERE { resource:Spider property:author ?e . ?e rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q920996 Q930777
P58
Q838948
USER
Does Spider have that person as screenwriter ?
(Q930777,P58,Q920996)
action is_in
entity Q920996
action find
entity Q930777
relation P58
['Q930777', 'P58', 'Q920996']
ASK WHERE { resource:Q930777 property:P58 resource:Q920996 }
Patrick McGrath Spider
action is_in
entity Patrick McGrath
action find
entity Spider
relation screenwriter
['Spider', 'screenwriter', 'Patrick McGrath']
ASK WHERE { resource:Spider property:screenwriter resource:Patrick_McGrath }
[]
work of art
SYSTEM
YES
(Q930777,P58,Q920996)
action is_in
entity Q920996
action find
entity Q930777
relation P58
[ANSWER]
['Q930777', 'P58', 'Q920996']
ASK WHERE { resource:Q930777 property:P58 resource:Q920996 }
Yes
action is_in
entity Patrick McGrath
action find
entity Spider
relation screenwriter
['Spider', 'screenwriter', 'Patrick McGrath']
ASK WHERE { resource:Spider property:screenwriter resource:Patrick_McGrath }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P1441
Q234460 Q15416 Q502895
USER
Which people are featured in atleast 3 texts and television programs ?
(c(Q502895),P1441,c(Q234460)|c(Q15416))
action atleast
action union
action find_tuple_counts
relation P1441
type Q502895
type Q234460
action find_tuple_counts
relation P1441
type Q502895
type Q15416
value 3
[{'concept': 'Q502895'}, 'P1441', [{'concept': 'Q234460'}, {'concept': 'Q15416'}]]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ?z ( COUNT ( ?t ) AS ?e ) WHERE { { ?z property:P1441 ?t . ?z rdf:type ontology:Q502895 . ?t rdf:type ontology:Q234460 } UNION { ?z property:P1441 ?t . ?z rdf:type ontology:Q502895 . ?t rdf:type ontology:Q15416 } } GROUP BY ?z } . FILTER ( ?e >= 3 ) }
action atleast
action union
action find_tuple_counts
relation present in work
type common name
type text
action find_tuple_counts
relation present in work
type common name
type television program
value 3
[{'concept': 'common name'}, 'present in work', [{'concept': 'text'}, {'concept': 'television program'}]]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ?z ( COUNT ( ?t ) AS ?e ) WHERE { { ?z property:present_in_work ?t . ?z rdf:type ontology:common_name . ?t rdf:type ontology:text } UNION { ?z property:present_in_work ?t . ?z rdf:type ontology:common_name . ?t rdf:type ontology:television_program } } GROUP BY ?z } . FILTER ( ?e >= 3 ) }
[]
text television program common name
Q41370 Q9181 Q9077
SYSTEM
David, Abraham, Moses
Q9077 Q41370 Q81422 Q9181
(c(Q502895),P1441,c(Q234460)|c(Q15416))
action atleast
action union
action find_tuple_counts
relation P1441
type Q502895
type Q234460
action find_tuple_counts
relation P1441
type Q502895
type Q15416
value 3
[ANSWERS] are featured in atleast 3 texts and television programs
[{'concept': 'Q502895'}, 'P1441', [{'concept': 'Q234460'}, {'concept': 'Q15416'}]]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ?z ( COUNT ( ?t ) AS ?e ) WHERE { { ?z property:P1441 ?t . ?z rdf:type ontology:Q502895 . ?t rdf:type ontology:Q234460 } UNION { ?z property:P1441 ?t . ?z rdf:type ontology:Q502895 . ?t rdf:type ontology:Q15416 } } GROUP BY ?z } . FILTER ( ?e >= 3 ) }
Moses David Noah Abraham
David, Abraham and Moses are featured in atleast 3 texts and television programs
David Abraham Moses
action atleast
action union
action find_tuple_counts
relation present in work
type common name
type text
action find_tuple_counts
relation present in work
type common name
type television program
value 3
[{'concept': 'common name'}, 'present in work', [{'concept': 'text'}, {'concept': 'television program'}]]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ?z ( COUNT ( ?t ) AS ?e ) WHERE { { ?z property:present_in_work ?t . ?z rdf:type ontology:common_name . ?t rdf:type ontology:text } UNION { ?z property:present_in_work ?t . ?z rdf:type ontology:common_name . ?t rdf:type ontology:television_program } } GROUP BY ?z } . FILTER ( ?e >= 3 ) }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q12001647 Q7577006
P27 P495
Q15617994
USER
Which administrative territories are the origins of Spider or are the countries of citizenship of Snorre Ness ?
OR((Q7577006,P495,c(Q15617994)), (Q12001647,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q7577006
relation P495
action find
entity Q12001647
relation P27
type Q15617994
{'OR': [['Q7577006', 'P495', {'concept': 'Q15617994'}], ['Q12001647', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?d WHERE { { { resource:Q12001647 property:P27 ?d } UNION { resource:Q7577006 property:P495 ?d } } . ?d rdf:type ontology:Q15617994 }
Snorre Ness Spider
action filter_type
action union
action find
entity Spider
relation country of origin
action find
entity Snorre Ness
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Spider', 'country of origin', {'concept': 'designation for an administrative territorial entity'}], ['Snorre Ness', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?d WHERE { { { resource:Snorre_Ness property:country_of_citizenship ?d } UNION { resource:Spider property:country_of_origin ?d } } . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q20 Q30
SYSTEM
Norway, United States of America
Q20 Q30
OR((Q7577006,P495,c(Q15617994)), (Q12001647,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q7577006
relation P495
action find
entity Q12001647
relation P27
type Q15617994
[ANSWERS] are the origins of Spider or are the countries of citizenship of Snorre Ness
{'OR': [['Q7577006', 'P495', {'concept': 'Q15617994'}], ['Q12001647', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?d WHERE { { { resource:Q12001647 property:P27 ?d } UNION { resource:Q7577006 property:P495 ?d } } . ?d rdf:type ontology:Q15617994 }
Norway United States of America
Norway and United States of America are the origins of Spider or are the countries of citizenship of Snorre Ness
Norway United States of America
action filter_type
action union
action find
entity Spider
relation country of origin
action find
entity Snorre Ness
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Spider', 'country of origin', {'concept': 'designation for an administrative territorial entity'}], ['Snorre Ness', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?d WHERE { { { resource:Snorre_Ness property:country_of_citizenship ?d } UNION { resource:Spider property:country_of_origin ?d } } . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q268870
P27
Q502895
USER
Are Molla Mallory a native of those administrative territories ?
(Q268870,P27,Q20) (Q268870,P27,Q30)
action is_in
entity prev_answer
action find
entity Q268870
relation P27
['Q268870', 'P27', 'Q20'] ['Q268870', 'P27', 'Q30']
ASK WHERE { resource:Q268870 property:P27 ?k . VALUES ( ?k ) { ( resource:Q20 ) ( resource:Q30 ) } }
Molla Mallory
action is_in
entity prev_answer
action find
entity Molla Mallory
relation country of citizenship
['Molla Mallory', 'country of citizenship', 'Norway'] ['Molla Mallory', 'country of citizenship', 'United States of America']
ASK WHERE { resource:Molla_Mallory property:country_of_citizenship ?k . VALUES ( ?k ) { ( resource:Norway ) ( resource:United_States_of_America ) } }
[]
common name
SYSTEM
YES
(Q268870,P27,Q20) (Q268870,P27,Q30)
action is_in
entity prev_answer
action find
entity Q268870
relation P27
[ANSWER]
['Q268870', 'P27', 'Q20'] ['Q268870', 'P27', 'Q30']
ASK WHERE { resource:Q268870 property:P27 ?k . VALUES ( ?k ) { ( resource:Q20 ) ( resource:Q30 ) } }
Yes
action is_in
entity prev_answer
action find
entity Molla Mallory
relation country of citizenship
['Molla Mallory', 'country of citizenship', 'Norway'] ['Molla Mallory', 'country of citizenship', 'United States of America']
ASK WHERE { resource:Molla_Mallory property:country_of_citizenship ?k . VALUES ( ?k ) { ( resource:Norway ) ( resource:United_States_of_America ) } }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q7577006 Q30
P495
Q15617994
USER
Is United States of America the country of origin of that collectable ?
(Q7577006,P495,Q30)
action is_in
entity Q30
action find
entity Q7577006
relation P495
['Q7577006', 'P495', 'Q30']
ASK WHERE { resource:Q7577006 property:P495 resource:Q30 }
Spider United States of America
action is_in
entity United States of America
action find
entity Spider
relation country of origin
['Spider', 'country of origin', 'United States of America']
ASK WHERE { resource:Spider property:country_of_origin resource:United_States_of_America }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q7577006,P495,Q30)
action is_in
entity Q30
action find
entity Q7577006
relation P495
[ANSWER]
['Q7577006', 'P495', 'Q30']
ASK WHERE { resource:Q7577006 property:P495 resource:Q30 }
Yes
action is_in
entity United States of America
action find
entity Spider
relation country of origin
['Spider', 'country of origin', 'United States of America']
ASK WHERE { resource:Spider property:country_of_origin resource:United_States_of_America }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q920996 Q84 Q7228722
P19
Q56061
USER
Does Patrick McGrath have location of birth at London and Poongulam ?
(Q920996,P19,Q84) (Q920996,P19,Q7228722)
action is_in
entity Q920996
action intersection
action find_reverse
entity Q84
relation P19
action find_reverse
entity Q7228722
relation P19
['Q920996', 'P19', 'Q84'] ['Q920996', 'P19', 'Q7228722']
ASK WHERE { resource:Q920996 property:P19 resource:Q7228722 . resource:Q920996 property:P19 resource:Q84 }
Patrick McGrath London Poongulam
action is_in
entity Patrick McGrath
action intersection
action find_reverse
entity London
relation place of birth
action find_reverse
entity Poongulam
relation place of birth
['Patrick McGrath', 'place of birth', 'London'] ['Patrick McGrath', 'place of birth', 'Poongulam']
ASK WHERE { resource:Patrick_McGrath property:place_of_birth resource:Poongulam . resource:Patrick_McGrath property:place_of_birth resource:London }
[]
administrative territorial entity
SYSTEM
YES and NO respectively
(Q920996,P19,Q84) (Q920996,P19,Q7228722)
action is_in
entity Q920996
action intersection
action find_reverse
entity Q84
relation P19
action find_reverse
entity Q7228722
relation P19
[ANSWER]
['Q920996', 'P19', 'Q84'] ['Q920996', 'P19', 'Q7228722']
ASK WHERE { resource:Q920996 property:P19 resource:Q7228722 . resource:Q920996 property:P19 resource:Q84 }
YES and NO respectively
action is_in
entity Patrick McGrath
action intersection
action find_reverse
entity London
relation place of birth
action find_reverse
entity Poongulam
relation place of birth
['Patrick McGrath', 'place of birth', 'London'] ['Patrick McGrath', 'place of birth', 'Poongulam']
ASK WHERE { resource:Patrick_McGrath property:place_of_birth resource:Poongulam . resource:Patrick_McGrath property:place_of_birth resource:London }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q920996
P26
Q502895
USER
Which person is married to that one ?
action filter_type
action find
entity Q920996
relation P26
type Q502895
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q502895 . resource:Q920996 property:P26 ?d }
Patrick McGrath
action filter_type
action find
entity Patrick McGrath
relation spouse
type common name
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:common_name . resource:Patrick_McGrath property:spouse ?d }
[]
common name
Q434312
SYSTEM
Maria Aitken
Q434312
action filter_type
action find
entity Q920996
relation P26
type Q502895
[ANSWER] is married to that one
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q502895 . resource:Q920996 property:P26 ?d }
Maria Aitken
Maria Aitken is married to that one
Maria Aitken
action filter_type
action find
entity Patrick McGrath
relation spouse
type common name
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:common_name . resource:Patrick_McGrath property:spouse ?d }
[]