Simple Question (Direct)
Simple Question
Q4527389
P39
Q12737077
USER
What was the position for which William Gordon, 2nd Earl of Aberdeen was appointed ?
(Q4527389,P39,c(Q12737077))
action filter_type
action find
entity Q4527389
relation P39
type Q12737077
['Q4527389', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?s WHERE { resource:Q4527389 property:P39 ?s . ?s rdf:type ontology:Q12737077 }
William Gordon, 2nd Earl of Aberdeen
action filter_type
action find
entity William Gordon, 2nd Earl of Aberdeen
relation position held
type occupation
['William Gordon, 2nd Earl of Aberdeen', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?s WHERE { resource:William_Gordon,_2nd_Earl_of_Aberdeen property:position_held ?s . ?s rdf:type ontology:occupation }
[]
occupation
Q18015642
SYSTEM
Member of Parliament in the Parliament of Great Britain
Q18015642
(Q4527389,P39,c(Q12737077))
action filter_type
action find
entity Q4527389
relation P39
type Q12737077
The [ANSWER]
['Q4527389', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?s WHERE { resource:Q4527389 property:P39 ?s . ?s rdf:type ontology:Q12737077 }
Member of Parliament in the Parliament of Great Britain
The Member of Parliament in the Parliament of Great Britain
Member of Parliament in the Parliament of Great Britain
action filter_type
action find
entity William Gordon, 2nd Earl of Aberdeen
relation position held
type occupation
['William Gordon, 2nd Earl of Aberdeen', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?s WHERE { resource:William_Gordon,_2nd_Earl_of_Aberdeen property:position_held ?s . ?s rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q18015642
P106
Q502895
USER
Who has a job as that occupation ?
(c(Q502895),P106,Q18015642)
action filter_type
action find_reverse
entity Q18015642
relation P106
type Q502895
[{'concept': 'Q502895'}, 'P106', 'Q18015642']
SELECT DISTINCT ?n WHERE { ?n property:P106 resource:Q18015642 . ?n rdf:type ontology:Q502895 }
Member of Parliament in the Parliament of Great Britain
action filter_type
action find_reverse
entity Member of Parliament in the Parliament of Great Britain
relation occupation
type common name
[{'concept': 'common name'}, 'occupation', 'Member of Parliament in the Parliament of Great Britain']
SELECT DISTINCT ?n WHERE { ?n property:occupation resource:Member_of_Parliament_in_the_Parliament_of_Great_Britain . ?n rdf:type ontology:common_name }
[]
common name
Q22087320
SYSTEM
Francis Gregg
Q22087320
(c(Q502895),P106,Q18015642)
action filter_type
action find_reverse
entity Q18015642
relation P106
type Q502895
The [ANSWER] has a job as that occupation
[{'concept': 'Q502895'}, 'P106', 'Q18015642']
SELECT DISTINCT ?n WHERE { ?n property:P106 resource:Q18015642 . ?n rdf:type ontology:Q502895 }
Francis Gregg
The Francis Gregg has a job as that occupation
Francis Gregg
action filter_type
action find_reverse
entity Member of Parliament in the Parliament of Great Britain
relation occupation
type common name
[{'concept': 'common name'}, 'occupation', 'Member of Parliament in the Parliament of Great Britain']
SELECT DISTINCT ?n WHERE { ?n property:occupation resource:Member_of_Parliament_in_the_Parliament_of_Great_Britain . ?n rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q22087320
P22
Q502895
USER
Who has that one as a father ?
(c(Q502895),P22,Q22087320)
action filter_type
action find_reverse
entity Q22087320
relation P22
type Q502895
[{'concept': 'Q502895'}, 'P22', 'Q22087320']
SELECT DISTINCT ?o WHERE { ?o property:P22 resource:Q22087320 . ?o rdf:type ontology:Q502895 }
Francis Gregg
action filter_type
action find_reverse
entity Francis Gregg
relation father
type common name
[{'concept': 'common name'}, 'father', 'Francis Gregg']
SELECT DISTINCT ?o WHERE { ?o property:father resource:Francis_Gregg . ?o rdf:type ontology:common_name }
[]
common name
Q21166849
SYSTEM
Henry Gregg
Q21166849
(c(Q502895),P22,Q22087320)
action filter_type
action find_reverse
entity Q22087320
relation P22
type Q502895
[ANSWER] has that one as a father
[{'concept': 'Q502895'}, 'P22', 'Q22087320']
SELECT DISTINCT ?o WHERE { ?o property:P22 resource:Q22087320 . ?o rdf:type ontology:Q502895 }
Henry Gregg
Henry Gregg has that one as a father
Henry Gregg
action filter_type
action find_reverse
entity Francis Gregg
relation father
type common name
[{'concept': 'common name'}, 'father', 'Francis Gregg']
SELECT DISTINCT ?o WHERE { ?o property:father resource:Francis_Gregg . ?o rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q21166849
P40
Q502895
USER
Which person has that one as an offspring ?
(c(Q502895),P40,Q21166849)
action filter_type
action find_reverse
entity Q21166849
relation P40
type Q502895
[{'concept': 'Q502895'}, 'P40', 'Q21166849']
SELECT DISTINCT ?u WHERE { ?u property:P40 resource:Q21166849 . ?u rdf:type ontology:Q502895 }
Henry Gregg
action filter_type
action find_reverse
entity Henry Gregg
relation child
type common name
[{'concept': 'common name'}, 'child', 'Henry Gregg']
SELECT DISTINCT ?u WHERE { ?u property:child resource:Henry_Gregg . ?u rdf:type ontology:common_name }
[]
common name
Q22087320
SYSTEM
Francis Gregg
Q22087320
(c(Q502895),P40,Q21166849)
action filter_type
action find_reverse
entity Q21166849
relation P40
type Q502895
[ANSWER] has that one as an offspring
[{'concept': 'Q502895'}, 'P40', 'Q21166849']
SELECT DISTINCT ?u WHERE { ?u property:P40 resource:Q21166849 . ?u rdf:type ontology:Q502895 }
Francis Gregg
Francis Gregg has that one as an offspring
Francis Gregg
action filter_type
action find_reverse
entity Henry Gregg
relation child
type common name
[{'concept': 'common name'}, 'child', 'Henry Gregg']
SELECT DISTINCT ?u WHERE { ?u property:child resource:Henry_Gregg . ?u rdf:type ontology:common_name }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P725
Q502895 Q6619679
USER
Which fictional humanoids had their voice dubbing done by around 6 people ?
(c(Q6619679),P725,c(Q502895))
action approx
action find_tuple_counts
relation P725
type Q6619679
type Q502895
value 6
[{'concept': 'Q6619679'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ?v WHERE { FILTER ( ?o = 6 ) . { SELECT DISTINCT ?v ( COUNT ( ?c ) AS ?o ) WHERE { ?v property:P725 ?c . ?c rdf:type ontology:Q502895 . ?v rdf:type ontology:Q6619679 } GROUP BY ?v } }
action approx
action find_tuple_counts
relation voice actor
type fictional humanoid
type common name
value 6
[{'concept': 'fictional humanoid'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ?v WHERE { FILTER ( ?o = 6 ) . { SELECT DISTINCT ?v ( COUNT ( ?c ) AS ?o ) WHERE { ?v property:voice_actor ?c . ?c rdf:type ontology:common_name . ?v rdf:type ontology:fictional_humanoid } GROUP BY ?v } }
[]
common name fictional humanoid
Q15711517
SYSTEM
Granny Smith
Q15711517
(c(Q6619679),P725,c(Q502895))
action approx
action find_tuple_counts
relation P725
type Q6619679
type Q502895
value 6
[ANSWER] had their voice dubbing done by around 6 people
[{'concept': 'Q6619679'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ?v WHERE { FILTER ( ?o = 6 ) . { SELECT DISTINCT ?v ( COUNT ( ?c ) AS ?o ) WHERE { ?v property:P725 ?c . ?c rdf:type ontology:Q502895 . ?v rdf:type ontology:Q6619679 } GROUP BY ?v } }
Granny Smith
Granny Smith had their voice dubbing done by around 6 people
Granny Smith
action approx
action find_tuple_counts
relation voice actor
type fictional humanoid
type common name
value 6
[{'concept': 'fictional humanoid'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ?v WHERE { FILTER ( ?o = 6 ) . { SELECT DISTINCT ?v ( COUNT ( ?c ) AS ?o ) WHERE { ?v property:voice_actor ?c . ?c rdf:type ontology:common_name . ?v rdf:type ontology:fictional_humanoid } GROUP BY ?v } }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q15711517 Q11414170 Q286052
P725
Q502895
USER
Did Asami Yoshida and Émile Lachapelle dub for Granny Smith ?
(Q15711517,P725,Q11414170) (Q15711517,P725,Q286052)
action is_in
entity Q15711517
action intersection
action find_reverse
entity Q11414170
relation P725
action find_reverse
entity Q286052
relation P725
['Q15711517', 'P725', 'Q11414170'] ['Q15711517', 'P725', 'Q286052']
ASK WHERE { resource:Q15711517 property:P725 resource:Q11414170 . resource:Q15711517 property:P725 resource:Q286052 }
Granny Smith Asami Yoshida Émile Lachapelle
action is_in
entity Granny Smith
action intersection
action find_reverse
entity Asami Yoshida
relation voice actor
action find_reverse
entity Émile Lachapelle
relation voice actor
['Granny Smith', 'voice actor', 'Asami Yoshida'] ['Granny Smith', 'voice actor', 'Émile Lachapelle']
ASK WHERE { resource:Granny_Smith property:voice_actor resource:Asami_Yoshida . resource:Granny_Smith property:voice_actor resource:Émile_Lachapelle }
[]
common name
SYSTEM
YES and NO respectively
(Q15711517,P725,Q11414170) (Q15711517,P725,Q286052)
action is_in
entity Q15711517
action intersection
action find_reverse
entity Q11414170
relation P725
action find_reverse
entity Q286052
relation P725
[ANSWER]
['Q15711517', 'P725', 'Q11414170'] ['Q15711517', 'P725', 'Q286052']
ASK WHERE { resource:Q15711517 property:P725 resource:Q11414170 . resource:Q15711517 property:P725 resource:Q286052 }
YES and NO respectively
action is_in
entity Granny Smith
action intersection
action find_reverse
entity Asami Yoshida
relation voice actor
action find_reverse
entity Émile Lachapelle
relation voice actor
['Granny Smith', 'voice actor', 'Asami Yoshida'] ['Granny Smith', 'voice actor', 'Émile Lachapelle']
ASK WHERE { resource:Granny_Smith property:voice_actor resource:Asami_Yoshida . resource:Granny_Smith property:voice_actor resource:Émile_Lachapelle }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q21166849 Q3088495
P22
Q502895
USER
Was Saho Harada the father of Henry Gregg ?
(Q21166849,P22,Q3088495)
action is_in
entity Q3088495
action find
entity Q21166849
relation P22
['Q21166849', 'P22', 'Q3088495']
ASK WHERE { resource:Q21166849 property:P22 resource:Q3088495 }
Henry Gregg Saho Harada
action is_in
entity Saho Harada
action find
entity Henry Gregg
relation father
['Henry Gregg', 'father', 'Saho Harada']
ASK WHERE { resource:Henry_Gregg property:father resource:Saho_Harada }
[]
common name
SYSTEM
NO
(Q21166849,P22,Q3088495)
action is_in
entity Q3088495
action find
entity Q21166849
relation P22
[ANSWER]
['Q21166849', 'P22', 'Q3088495']
ASK WHERE { resource:Q21166849 property:P22 resource:Q3088495 }
No
action is_in
entity Saho Harada
action find
entity Henry Gregg
relation father
['Henry Gregg', 'father', 'Saho Harada']
ASK WHERE { resource:Henry_Gregg property:father resource:Saho_Harada }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P157
Q6619679 Q95074
USER
Which fictional characters were murdered by max number of fictional humanoids ?
(c(Q95074),P157,c(Q6619679))
action argmax
action find_tuple_counts
relation P157
type Q95074
type Q6619679
[{'concept': 'Q95074'}, 'P157', {'concept': 'Q6619679'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( MAX ( ?i ) AS ?j ) { SELECT DISTINCT ?w ( COUNT ( ?q ) AS ?i ) WHERE { ?w property:P157 ?q . ?q rdf:type ontology:Q6619679 . ?w rdf:type ontology:Q95074 } GROUP BY ?w } } . { SELECT DISTINCT ?a ( COUNT ( ?x ) AS ?f ) WHERE { ?a property:P157 ?x . ?x rdf:type ontology:Q6619679 . ?a rdf:type ontology:Q95074 } GROUP BY ?a } . FILTER ( ?f = ?j ) }
action argmax
action find_tuple_counts
relation killed by
type fictional character
type fictional humanoid
[{'concept': 'fictional character'}, 'killed by', {'concept': 'fictional humanoid'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( MAX ( ?i ) AS ?j ) { SELECT DISTINCT ?w ( COUNT ( ?q ) AS ?i ) WHERE { ?w property:killed_by ?q . ?q rdf:type ontology:fictional_humanoid . ?w rdf:type ontology:fictional_character } GROUP BY ?w } } . { SELECT DISTINCT ?a ( COUNT ( ?x ) AS ?f ) WHERE { ?a property:killed_by ?x . ?x rdf:type ontology:fictional_humanoid . ?a rdf:type ontology:fictional_character } GROUP BY ?a } . FILTER ( ?f = ?j ) }
[]
fictional humanoid fictional character
Q2552079
SYSTEM
Tara Maclay
Q2552079
(c(Q95074),P157,c(Q6619679))
action argmax
action find_tuple_counts
relation P157
type Q95074
type Q6619679
[ANSWER] was murdered by max number of fictional humanoids
[{'concept': 'Q95074'}, 'P157', {'concept': 'Q6619679'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( MAX ( ?i ) AS ?j ) { SELECT DISTINCT ?w ( COUNT ( ?q ) AS ?i ) WHERE { ?w property:P157 ?q . ?q rdf:type ontology:Q6619679 . ?w rdf:type ontology:Q95074 } GROUP BY ?w } } . { SELECT DISTINCT ?a ( COUNT ( ?x ) AS ?f ) WHERE { ?a property:P157 ?x . ?x rdf:type ontology:Q6619679 . ?a rdf:type ontology:Q95074 } GROUP BY ?a } . FILTER ( ?f = ?j ) }
Tara Maclay
Tara Maclay was murdered by max number of fictional humanoids
Tara Maclay
action argmax
action find_tuple_counts
relation killed by
type fictional character
type fictional humanoid
[{'concept': 'fictional character'}, 'killed by', {'concept': 'fictional humanoid'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( MAX ( ?i ) AS ?j ) { SELECT DISTINCT ?w ( COUNT ( ?q ) AS ?i ) WHERE { ?w property:killed_by ?q . ?q rdf:type ontology:fictional_humanoid . ?w rdf:type ontology:fictional_character } GROUP BY ?w } } . { SELECT DISTINCT ?a ( COUNT ( ?x ) AS ?f ) WHERE { ?a property:killed_by ?x . ?x rdf:type ontology:fictional_humanoid . ?a rdf:type ontology:fictional_character } GROUP BY ?a } . FILTER ( ?f = ?j ) }
[]