Simple Question (Direct)
Simple Question
Q3161161
P39
Q12737077
USER
What were the positions held by James Horace King ?
(Q3161161,P39,c(Q12737077))
action filter_type
action find
entity Q3161161
relation P39
type Q12737077
['Q3161161', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?c WHERE { resource:Q3161161 property:P39 ?c . ?c rdf:type ontology:Q12737077 }
James Horace King
action filter_type
action find
entity James Horace King
relation position held
type occupation
['James Horace King', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?c WHERE { resource:James_Horace_King property:position_held ?c . ?c rdf:type ontology:occupation }
[]
occupation
Q15964890 Q18524027
SYSTEM
member of the House of Commons of Canada, Member of the Senate of Canada
Q15964890 Q18524027
(Q3161161,P39,c(Q12737077))
action filter_type
action find
entity Q3161161
relation P39
type Q12737077
The positions held by James Horace King were [ANSWERS]
['Q3161161', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?c WHERE { resource:Q3161161 property:P39 ?c . ?c rdf:type ontology:Q12737077 }
member of the House of Commons of Canada Member of the Senate of Canada
The positions held by James Horace King were member of the House of Commons of Canada and Member of the Senate of Canada
member of the House of Commons of Canada Member of the Senate of Canada
action filter_type
action find
entity James Horace King
relation position held
type occupation
['James Horace King', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?c WHERE { resource:James_Horace_King property:position_held ?c . ?c rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3161161
P102
Q7210356
USER
Which party does James Horace King belong to ?
(Q3161161,P102,c(Q7210356))
action filter_type
action find
entity Q3161161
relation P102
type Q7210356
['Q3161161', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?o WHERE { resource:Q3161161 property:P102 ?o . ?o rdf:type ontology:Q7210356 }
James Horace King
action filter_type
action find
entity James Horace King
relation member of political party
type political organization
['James Horace King', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?o WHERE { resource:James_Horace_King property:member_of_political_party ?o . ?o rdf:type ontology:political_organization }
[]
political organization
Q138345
SYSTEM
Liberal Party of Canada
Q138345
(Q3161161,P102,c(Q7210356))
action filter_type
action find
entity Q3161161
relation P102
type Q7210356
James Horace King belongs to [ANSWER]
['Q3161161', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?o WHERE { resource:Q3161161 property:P102 ?o . ?o rdf:type ontology:Q7210356 }
Liberal Party of Canada
James Horace King belongs to Liberal Party of Canada
Liberal Party of Canada
action filter_type
action find
entity James Horace King
relation member of political party
type political organization
['James Horace King', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?o WHERE { resource:James_Horace_King property:member_of_political_party ?o . ?o rdf:type ontology:political_organization }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3161161
P21
Q290
USER
Which sex does that person belong to ?
(Q138345,P21,c(Q290))
action filter_type
action find
entity Q3161161
relation P21
type Q290
['Q138345', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q290 . resource:Q3161161 property:P21 ?j }
James Horace King
action filter_type
action find
entity James Horace King
relation gender
type sex
['Liberal Party of Canada', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:sex . resource:James_Horace_King property:gender ?j }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q138345,P21,c(Q290))
action filter_type
action find
entity Q3161161
relation P21
type Q290
That person belongs to [ANSWER]
['Q138345', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q290 . resource:Q3161161 property:P21 ?j }
male
That person belongs to male
male
action filter_type
action find
entity James Horace King
relation gender
type sex
['Liberal Party of Canada', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:sex . resource:James_Horace_King property:gender ?j }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation|Incomplete
Q1381747 Q3161161
P21
Q290
USER
Or Evelyn Grill?
OR((Q3161161,P21,c(Q290)), (Q1381747,P21,c(Q290)))
action filter_type
action union
action find
entity Q3161161
relation P21
action find
entity Q1381747
relation P21
type Q290
{'OR': [['Q3161161', 'P21', {'concept': 'Q290'}], ['Q1381747', 'P21', {'concept': 'Q290'}]]}
SELECT DISTINCT ?e WHERE { { { resource:Q3161161 property:P21 ?e } UNION { resource:Q1381747 property:P21 ?e } } . ?e rdf:type ontology:Q290 }
Evelyn Grill James Horace King
action filter_type
action union
action find
entity James Horace King
relation gender
action find
entity Evelyn Grill
relation gender
type sex
{'OR': [['James Horace King', 'gender', {'concept': 'sex'}], ['Evelyn Grill', 'gender', {'concept': 'sex'}]]}
SELECT DISTINCT ?e WHERE { { { resource:James_Horace_King property:gender ?e } UNION { resource:Evelyn_Grill property:gender ?e } } . ?e rdf:type ontology:sex }
[]
sex
Q6581097 Q6581072
SYSTEM
male, female
Q6581097 Q6581072
OR((Q3161161,P21,c(Q290)), (Q1381747,P21,c(Q290)))
action filter_type
action union
action find
entity Q3161161
relation P21
action find
entity Q1381747
relation P21
type Q290
[ANSWERS]
{'OR': [['Q3161161', 'P21', {'concept': 'Q290'}], ['Q1381747', 'P21', {'concept': 'Q290'}]]}
SELECT DISTINCT ?e WHERE { { { resource:Q3161161 property:P21 ?e } UNION { resource:Q1381747 property:P21 ?e } } . ?e rdf:type ontology:Q290 }
male female
male female
action filter_type
action union
action find
entity James Horace King
relation gender
action find
entity Evelyn Grill
relation gender
type sex
{'OR': [['James Horace King', 'gender', {'concept': 'sex'}], ['Evelyn Grill', 'gender', {'concept': 'sex'}]]}
SELECT DISTINCT ?e WHERE { { { resource:James_Horace_King property:gender ?e } UNION { resource:Evelyn_Grill property:gender ?e } } . ?e rdf:type ontology:sex }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q15436266
P21
Q502895
USER
Are Ellery Burton Paine a those sexes ?
(Q15436266,P21,Q6581097) (Q15436266,P21,Q6581072)
action is_in
entity prev_answer
action find
entity Q15436266
relation P21
['Q15436266', 'P21', 'Q6581097'] ['Q15436266', 'P21', 'Q6581072']
ASK WHERE { VALUES ( ?m ) { ( resource:Q6581097 ) ( resource:Q6581072 ) } . resource:Q15436266 property:P21 ?m }
Ellery Burton Paine
action is_in
entity prev_answer
action find
entity Ellery Burton Paine
relation gender
['Ellery Burton Paine', 'gender', 'male'] ['Ellery Burton Paine', 'gender', 'female']
ASK WHERE { VALUES ( ?m ) { ( resource:male ) ( resource:female ) } . resource:Ellery_Burton_Paine property:gender ?m }
[]
common name
SYSTEM
NO
(Q15436266,P21,Q6581097) (Q15436266,P21,Q6581072)
action is_in
entity prev_answer
action find
entity Q15436266
relation P21
[ANSWER]
['Q15436266', 'P21', 'Q6581097'] ['Q15436266', 'P21', 'Q6581072']
ASK WHERE { VALUES ( ?m ) { ( resource:Q6581097 ) ( resource:Q6581072 ) } . resource:Q15436266 property:P21 ?m }
No
action is_in
entity prev_answer
action find
entity Ellery Burton Paine
relation gender
['Ellery Burton Paine', 'gender', 'male'] ['Ellery Burton Paine', 'gender', 'female']
ASK WHERE { VALUES ( ?m ) { ( resource:male ) ( resource:female ) } . resource:Ellery_Burton_Paine property:gender ?m }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q18524027
P1001
Q1048835
USER
How many political territories come under the jurisdiction of Member of the Senate of Canada ?
(Q18524027,P1001,c(Q1048835))
action count
action filter_type
action find
entity Q18524027
relation P1001
type Q1048835
['Q18524027', 'P1001', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?t ) WHERE { resource:Q18524027 property:P1001 ?r . ?r rdf:type ontology:Q1048835 }
Member of the Senate of Canada
action count
action filter_type
action find
entity Member of the Senate of Canada
relation applies to jurisdiction
type political territorial entity
['Member of the Senate of Canada', 'applies to jurisdiction', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?t ) WHERE { resource:Member_of_the_Senate_of_Canada property:applies_to_jurisdiction ?r . ?r rdf:type ontology:political_territorial_entity }
[]
political territorial entity
SYSTEM
1
Q16
(Q18524027,P1001,c(Q1048835))
action count
action filter_type
action find
entity Q18524027
relation P1001
type Q1048835
[ANSWER]
['Q18524027', 'P1001', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?t ) WHERE { resource:Q18524027 property:P1001 ?r . ?r rdf:type ontology:Q1048835 }
Canada
1
action count
action filter_type
action find
entity Member of the Senate of Canada
relation applies to jurisdiction
type political territorial entity
['Member of the Senate of Canada', 'applies to jurisdiction', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?t ) WHERE { resource:Member_of_the_Senate_of_Canada property:applies_to_jurisdiction ?r . ?r rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Incomplete count-based ques
Q26690876
Q1048835
USER
And how about mayor of Rupiá?
(Q26690876,P1001,c(Q1048835))
action count
action filter_type
action find
entity Q26690876
relation P1001
type Q1048835
['Q26690876', 'P1001', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?o ) WHERE { resource:Q26690876 property:P1001 ?j . ?j rdf:type ontology:Q1048835 }
mayor of Rupiá
action count
action filter_type
action find
entity mayor of Rupiá
relation applies to jurisdiction
type political territorial entity
['mayor of Rupiá', 'applies to jurisdiction', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?o ) WHERE { resource:mayor_of_Rupiá property:applies_to_jurisdiction ?j . ?j rdf:type ontology:political_territorial_entity }
[]
political territorial entity
SYSTEM
1
(Q26690876,P1001,c(Q1048835))
action count
action filter_type
action find
entity Q26690876
relation P1001
type Q1048835
[ANSWER]
['Q26690876', 'P1001', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?o ) WHERE { resource:Q26690876 property:P1001 ?j . ?j rdf:type ontology:Q1048835 }
1
action count
action filter_type
action find
entity mayor of Rupiá
relation applies to jurisdiction
type political territorial entity
['mayor of Rupiá', 'applies to jurisdiction', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?o ) WHERE { resource:mayor_of_Rupiá property:applies_to_jurisdiction ?j . ?j rdf:type ontology:political_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3161161
P106
Q12737077
USER
Which occupation has James Horace King as his/her 's career ?
(Q3161161,P106,c(Q12737077))
action filter_type
action find
entity Q3161161
relation P106
type Q12737077
['Q3161161', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?m WHERE { resource:Q3161161 property:P106 ?m . ?m rdf:type ontology:Q12737077 }
James Horace King
action filter_type
action find
entity James Horace King
relation occupation
type occupation
['James Horace King', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?m WHERE { resource:James_Horace_King property:occupation ?m . ?m rdf:type ontology:occupation }
[]
occupation
Q82955
SYSTEM
politician
Q82955
(Q3161161,P106,c(Q12737077))
action filter_type
action find
entity Q3161161
relation P106
type Q12737077
The [ANSWER] has James Horace King as his/her 's career
['Q3161161', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?m WHERE { resource:Q3161161 property:P106 ?m . ?m rdf:type ontology:Q12737077 }
politician
The politician has James Horace King as his/her 's career
politician
action filter_type
action find
entity James Horace King
relation occupation
type occupation
['James Horace King', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?m WHERE { resource:James_Horace_King property:occupation ?m . ?m rdf:type ontology:occupation }
[]