Simple Question (Direct)
Simple Question
Q5263024
P734
Q82799
USER
Who is associated with Derrick Graham ?
(Q5263024,P734,c(Q82799))
action filter_type
action find
entity Q5263024
relation P734
type Q82799
['Q5263024', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?a WHERE { resource:Q5263024 property:P734 ?a . ?a rdf:type ontology:Q82799 }
Derrick Graham
action filter_type
action find
entity Derrick Graham
relation family name
type name
['Derrick Graham', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?a WHERE { resource:Derrick_Graham property:family_name ?a . ?a rdf:type ontology:name }
[]
name
Q2702454
SYSTEM
Graham
Q2702454
(Q5263024,P734,c(Q82799))
action filter_type
action find
entity Q5263024
relation P734
type Q82799
[ANSWER] is associated with Derrick [ANSWER]
['Q5263024', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?a WHERE { resource:Q5263024 property:P734 ?a . ?a rdf:type ontology:Q82799 }
Graham
Graham is associated with Derrick Graham
Graham
action filter_type
action find
entity Derrick Graham
relation family name
type name
['Derrick Graham', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?a WHERE { resource:Derrick_Graham property:family_name ?a . ?a rdf:type ontology:name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q5263024
P27
Q15617994
USER
Which administrative territory is the native country of that person ?
(Q2702454,P27,c(Q15617994))
action filter_type
action find
entity Q5263024
relation P27
type Q15617994
['Q2702454', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?o WHERE { resource:Q5263024 property:P27 ?o . ?o rdf:type ontology:Q15617994 }
Derrick Graham
action filter_type
action find
entity Derrick Graham
relation country of citizenship
type designation for an administrative territorial entity
['Graham', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { resource:Derrick_Graham property:country_of_citizenship ?o . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
(Q2702454,P27,c(Q15617994))
action filter_type
action find
entity Q5263024
relation P27
type Q15617994
The [ANSWER] is the native country of that person
['Q2702454', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?o WHERE { resource:Q5263024 property:P27 ?o . ?o rdf:type ontology:Q15617994 }
United States of America
The United States of America is the native country of that person
United States of America
action filter_type
action find
entity Derrick Graham
relation country of citizenship
type designation for an administrative territorial entity
['Graham', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { resource:Derrick_Graham property:country_of_citizenship ?o . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q30 Q6777139 Q8940173
P6
Q502895
USER
Does that administrative territory have a government lead by Martinho do Nascimento and Chen Peisi ?
(Q30,P6,Q6777139) (Q30,P6,Q8940173)
action is_in
entity Q30
action intersection
action find_reverse
entity Q6777139
relation P6
action find_reverse
entity Q8940173
relation P6
['Q30', 'P6', 'Q6777139'] ['Q30', 'P6', 'Q8940173']
ASK WHERE { resource:Q30 property:P6 resource:Q8940173 . resource:Q30 property:P6 resource:Q6777139 }
United States of America Martinho do Nascimento Chen Peisi
action is_in
entity United States of America
action intersection
action find_reverse
entity Martinho do Nascimento
relation head of government
action find_reverse
entity Chen Peisi
relation head of government
['United States of America', 'head of government', 'Martinho do Nascimento'] ['United States of America', 'head of government', 'Chen Peisi']
ASK WHERE { resource:United_States_of_America property:head_of_government resource:Chen_Peisi . resource:United_States_of_America property:head_of_government resource:Martinho_do_Nascimento }
[]
common name
SYSTEM
NO
(Q30,P6,Q6777139) (Q30,P6,Q8940173)
action is_in
entity Q30
action intersection
action find_reverse
entity Q6777139
relation P6
action find_reverse
entity Q8940173
relation P6
[ANSWER]
['Q30', 'P6', 'Q6777139'] ['Q30', 'P6', 'Q8940173']
ASK WHERE { resource:Q30 property:P6 resource:Q8940173 . resource:Q30 property:P6 resource:Q6777139 }
No
action is_in
entity United States of America
action intersection
action find_reverse
entity Martinho do Nascimento
relation head of government
action find_reverse
entity Chen Peisi
relation head of government
['United States of America', 'head of government', 'Martinho do Nascimento'] ['United States of America', 'head of government', 'Chen Peisi']
ASK WHERE { resource:United_States_of_America property:head_of_government resource:Chen_Peisi . resource:United_States_of_America property:head_of_government resource:Martinho_do_Nascimento }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q5263024 Q19204627
P106
Q12737077
USER
Is American football player the profession of Derrick Graham ?
(Q5263024,P106,Q19204627)
action is_in
entity Q19204627
action find
entity Q5263024
relation P106
['Q5263024', 'P106', 'Q19204627']
ASK WHERE { resource:Q5263024 property:P106 resource:Q19204627 }
Derrick Graham American football player
action is_in
entity American football player
action find
entity Derrick Graham
relation occupation
['Derrick Graham', 'occupation', 'American football player']
ASK WHERE { resource:Derrick_Graham property:occupation resource:American_football_player }
[]
occupation
SYSTEM
YES
(Q5263024,P106,Q19204627)
action is_in
entity Q19204627
action find
entity Q5263024
relation P106
[ANSWER]
['Q5263024', 'P106', 'Q19204627']
ASK WHERE { resource:Q5263024 property:P106 resource:Q19204627 }
Yes
action is_in
entity American football player
action find
entity Derrick Graham
relation occupation
['Derrick Graham', 'occupation', 'American football player']
ASK WHERE { resource:Derrick_Graham property:occupation resource:American_football_player }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q2317147 Q5263024
P106
Q12737077
USER
Which occupations have Derrick Graham or Kenn Navarro as his/her as a career ?
OR((Q5263024,P106,c(Q12737077)), (Q2317147,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q5263024
relation P106
action find
entity Q2317147
relation P106
type Q12737077
{'OR': [['Q5263024', 'P106', {'concept': 'Q12737077'}], ['Q2317147', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Q5263024 property:P106 ?y } UNION { resource:Q2317147 property:P106 ?y } } . ?y rdf:type ontology:Q12737077 }
Kenn Navarro Derrick Graham
action filter_type
action union
action find
entity Derrick Graham
relation occupation
action find
entity Kenn Navarro
relation occupation
type occupation
{'OR': [['Derrick Graham', 'occupation', {'concept': 'occupation'}], ['Kenn Navarro', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Derrick_Graham property:occupation ?y } UNION { resource:Kenn_Navarro property:occupation ?y } } . ?y rdf:type ontology:occupation }
[]
occupation
Q1114448 Q2405480 Q19204627 Q36180
SYSTEM
cartoonist, voice actor, American football player, writer
Q1114448 Q2405480 Q19204627 Q36180
OR((Q5263024,P106,c(Q12737077)), (Q2317147,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q5263024
relation P106
action find
entity Q2317147
relation P106
type Q12737077
The [ANSWERS] have Derrick Graham or Kenn Navarro as his/her as a career
{'OR': [['Q5263024', 'P106', {'concept': 'Q12737077'}], ['Q2317147', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Q5263024 property:P106 ?y } UNION { resource:Q2317147 property:P106 ?y } } . ?y rdf:type ontology:Q12737077 }
cartoonist voice actor American football player writer
The cartoonist, voice actor, American football player and writer have Derrick Graham or Kenn Navarro as his/her as a career
cartoonist voice actor American football player writer
action filter_type
action union
action find
entity Derrick Graham
relation occupation
action find
entity Kenn Navarro
relation occupation
type occupation
{'OR': [['Derrick Graham', 'occupation', {'concept': 'occupation'}], ['Kenn Navarro', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Derrick_Graham property:occupation ?y } UNION { resource:Kenn_Navarro property:occupation ?y } } . ?y rdf:type ontology:occupation }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q30
P463
Q874405 Q1129645
USER
How many social groups or trade blocs had United States of America as their member ?
(Q30,P463,c(Q874405)) (Q30,P463,c(Q1129645))
action count
action union
action filter_type
action find
entity Q30
relation P463
type Q874405
action filter_type
action find
entity Q30
relation P463
type Q1129645
['Q30', 'P463', {'concept': 'Q874405'}] ['Q30', 'P463', {'concept': 'Q1129645'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?h ) WHERE { { resource:Q30 property:P463 ?l . ?l rdf:type ontology:Q874405 } UNION { resource:Q30 property:P463 ?l . ?l rdf:type ontology:Q1129645 } }
United States of America
action count
action union
action filter_type
action find
entity United States of America
relation member of
type social group
action filter_type
action find
entity United States of America
relation member of
type trade bloc
['United States of America', 'member of', {'concept': 'social group'}] ['United States of America', 'member of', {'concept': 'trade bloc'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?h ) WHERE { { resource:United_States_of_America property:member_of ?l . ?l rdf:type ontology:social_group } UNION { resource:United_States_of_America property:member_of ?l . ?l rdf:type ontology:trade_bloc } }
[]
social group trade bloc
SYSTEM
3
Q782942 Q181574 Q295875
(Q30,P463,c(Q874405)) (Q30,P463,c(Q1129645))
action count
action union
action filter_type
action find
entity Q30
relation P463
type Q874405
action filter_type
action find
entity Q30
relation P463
type Q1129645
[ANSWER]
['Q30', 'P463', {'concept': 'Q874405'}] ['Q30', 'P463', {'concept': 'Q1129645'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?h ) WHERE { { resource:Q30 property:P463 ?l . ?l rdf:type ontology:Q874405 } UNION { resource:Q30 property:P463 ?l . ?l rdf:type ontology:Q1129645 } }
Australia Group North American Free Trade Agreement ANZUS
3
action count
action union
action filter_type
action find
entity United States of America
relation member of
type social group
action filter_type
action find
entity United States of America
relation member of
type trade bloc
['United States of America', 'member of', {'concept': 'social group'}] ['United States of America', 'member of', {'concept': 'trade bloc'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?h ) WHERE { { resource:United_States_of_America property:member_of ?l . ?l rdf:type ontology:social_group } UNION { resource:United_States_of_America property:member_of ?l . ?l rdf:type ontology:trade_bloc } }
[]