Simple Question (Direct)
Simple Question
Q2923430
P106
Q12737077
USER
What are the job of Brad Selwood ?
(Q2923430,P106,c(Q12737077))
action filter_type
action find
entity Q2923430
relation P106
type Q12737077
['Q2923430', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?h WHERE { resource:Q2923430 property:P106 ?h . ?h rdf:type ontology:Q12737077 }
Brad Selwood
action filter_type
action find
entity Brad Selwood
relation occupation
type occupation
['Brad Selwood', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?h WHERE { resource:Brad_Selwood property:occupation ?h . ?h rdf:type ontology:occupation }
[]
occupation
Q11774891 Q41583
SYSTEM
ice hockey player, sports coach
Q11774891 Q41583
(Q2923430,P106,c(Q12737077))
action filter_type
action find
entity Q2923430
relation P106
type Q12737077
The job of Brad Selwood are an [ANSWERS]
['Q2923430', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?h WHERE { resource:Q2923430 property:P106 ?h . ?h rdf:type ontology:Q12737077 }
ice hockey player sports coach
The job of Brad Selwood are an ice hockey player and sports coach
ice hockey player sports coach
action filter_type
action find
entity Brad Selwood
relation occupation
type occupation
['Brad Selwood', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?h WHERE { resource:Brad_Selwood property:occupation ?h . ?h rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2923430
P27
Q1048835
USER
Which political territory is Brad Selwood a civilian of ?
(Q2923430,P27,c(Q1048835))
action filter_type
action find
entity Q2923430
relation P27
type Q1048835
['Q2923430', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?m WHERE { resource:Q2923430 property:P27 ?m . ?m rdf:type ontology:Q1048835 }
Brad Selwood
action filter_type
action find
entity Brad Selwood
relation country of citizenship
type political territorial entity
['Brad Selwood', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?m WHERE { resource:Brad_Selwood property:country_of_citizenship ?m . ?m rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q16
SYSTEM
Canada
Q16
(Q2923430,P27,c(Q1048835))
action filter_type
action find
entity Q2923430
relation P27
type Q1048835
[ANSWER] is Brad Selwood a civilian of
['Q2923430', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?m WHERE { resource:Q2923430 property:P27 ?m . ?m rdf:type ontology:Q1048835 }
Canada
Canada is Brad Selwood a civilian of
Canada
action filter_type
action find
entity Brad Selwood
relation country of citizenship
type political territorial entity
['Brad Selwood', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?m WHERE { resource:Brad_Selwood property:country_of_citizenship ?m . ?m rdf:type ontology:political_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q122942
Q1048835
USER
And how about Marina Langner?
(Q122942,P27,c(Q1048835))
action filter_type
action find
entity Q122942
relation P27
type Q1048835
['Q122942', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q1048835 . resource:Q122942 property:P27 ?u }
Marina Langner
action filter_type
action find
entity Marina Langner
relation country of citizenship
type political territorial entity
['Marina Langner', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:political_territorial_entity . resource:Marina_Langner property:country_of_citizenship ?u }
[]
political territorial entity
Q183
SYSTEM
Germany
Q183
(Q122942,P27,c(Q1048835))
action filter_type
action find
entity Q122942
relation P27
type Q1048835
[ANSWER]
['Q122942', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q1048835 . resource:Q122942 property:P27 ?u }
Germany
Germany
action filter_type
action find
entity Marina Langner
relation country of citizenship
type political territorial entity
['Marina Langner', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:political_territorial_entity . resource:Marina_Langner property:country_of_citizenship ?u }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q183 Q15456622
P27
Q502895
USER
Is Alfred Oberdorfer a citizen of that political territory ?
(Q15456622,P27,Q183)
action is_in
entity Q183
action find
entity Q15456622
relation P27
['Q15456622', 'P27', 'Q183']
ASK WHERE { resource:Q15456622 property:P27 resource:Q183 }
Germany Alfred Oberdorfer
action is_in
entity Germany
action find
entity Alfred Oberdorfer
relation country of citizenship
['Alfred Oberdorfer', 'country of citizenship', 'Germany']
ASK WHERE { resource:Alfred_Oberdorfer property:country_of_citizenship resource:Germany }
[]
common name
SYSTEM
YES
(Q15456622,P27,Q183)
action is_in
entity Q183
action find
entity Q15456622
relation P27
[ANSWER]
['Q15456622', 'P27', 'Q183']
ASK WHERE { resource:Q15456622 property:P27 resource:Q183 }
Yes
action is_in
entity Germany
action find
entity Alfred Oberdorfer
relation country of citizenship
['Alfred Oberdorfer', 'country of citizenship', 'Germany']
ASK WHERE { resource:Alfred_Oberdorfer property:country_of_citizenship resource:Germany }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q183
P1001
Q1076579
USER
Which acts of Parliament have jurisdiction over that political territory ?
action filter_type
action find_reverse
entity Q183
relation P1001
type Q1076579
SELECT DISTINCT ?i WHERE { ?i property:P1001 resource:Q183 . ?i rdf:type ontology:Q1076579 }
Germany
action filter_type
action find_reverse
entity Germany
relation applies to jurisdiction
type act of Parliament
SELECT DISTINCT ?i WHERE { ?i property:applies_to_jurisdiction resource:Germany . ?i rdf:type ontology:act_of_Parliament }
[]
act of Parliament
Q314649 Q1685633 Q850716
SYSTEM
Handelsgesetzbuch, Gun politics in Germany, Betäubungsmittelgesetz
Q314649 Q1685633 Q850716 Q314496
action filter_type
action find_reverse
entity Q183
relation P1001
type Q1076579
[ANSWERS] have jurisdiction over that political territory
SELECT DISTINCT ?i WHERE { ?i property:P1001 resource:Q183 . ?i rdf:type ontology:Q1076579 }
Handelsgesetzbuch Gun politics in Germany Betäubungsmittelgesetz German Renewable Energy Act
Handelsgesetzbuch, Gun politics in Germany and Betäubungsmittelgesetz have jurisdiction over that political territory
Handelsgesetzbuch Gun politics in Germany Betäubungsmittelgesetz
action filter_type
action find_reverse
entity Germany
relation applies to jurisdiction
type act of Parliament
SELECT DISTINCT ?i WHERE { ?i property:applies_to_jurisdiction resource:Germany . ?i rdf:type ontology:act_of_Parliament }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P467
Q35749 Q1076579
USER
Which parliaments were atleast 5 acts of Parliament enacted by ?
(c(Q1076579),P467,c(Q35749))
action atleast
action find_reverse_tuple_counts
relation P467
type Q35749
type Q1076579
value 5
[{'concept': 'Q1076579'}, 'P467', {'concept': 'Q35749'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?z ) AS ?v ) WHERE { ?z property:P467 ?p . ?p rdf:type ontology:Q35749 . ?z rdf:type ontology:Q1076579 } GROUP BY ?p } . FILTER ( ?v >= 5 ) }
action atleast
action find_reverse_tuple_counts
relation legislated by
type parliament
type act of Parliament
value 5
[{'concept': 'act of Parliament'}, 'legislated by', {'concept': 'parliament'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?z ) AS ?v ) WHERE { ?z property:legislated_by ?p . ?p rdf:type ontology:parliament . ?z rdf:type ontology:act_of_Parliament } GROUP BY ?p } . FILTER ( ?v >= 5 ) }
[]
parliament act of Parliament
Q6564780 Q6560903
SYSTEM
Parliament of British Columbia, Legislature of Alberta
Q6564780 Q6560903
(c(Q1076579),P467,c(Q35749))
action atleast
action find_reverse_tuple_counts
relation P467
type Q35749
type Q1076579
value 5
[ANSWERS] were atleast 5 acts of Parliament enacted by
[{'concept': 'Q1076579'}, 'P467', {'concept': 'Q35749'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?z ) AS ?v ) WHERE { ?z property:P467 ?p . ?p rdf:type ontology:Q35749 . ?z rdf:type ontology:Q1076579 } GROUP BY ?p } . FILTER ( ?v >= 5 ) }
Parliament of British Columbia Legislature of Alberta
Parliament of British Columbia and Legislature of Alberta were atleast 5 acts of Parliament enacted by
Parliament of British Columbia Legislature of Alberta
action atleast
action find_reverse_tuple_counts
relation legislated by
type parliament
type act of Parliament
value 5
[{'concept': 'act of Parliament'}, 'legislated by', {'concept': 'parliament'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?z ) AS ?v ) WHERE { ?z property:legislated_by ?p . ?p rdf:type ontology:parliament . ?z rdf:type ontology:act_of_Parliament } GROUP BY ?p } . FILTER ( ?v >= 5 ) }
[]
Clarification
Quantitative|Count|Single entity type|Indirect
P194
Q15617994
USER
How many administrative territories have that parliament as their representative body ?
(c(Q15617994),P194,Q6564780)
[{'concept': 'Q15617994'}, 'P194', 'Q6564780']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:P194 resource:Q6564780 . ?z rdf:type ontology:Q15617994 }
[{'concept': 'designation for an administrative territorial entity'}, 'legislative body', 'Parliament of British Columbia']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:legislative_body resource:Parliament_of_British_Columbia . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Quantitative|Count|Single entity type|Clarification
Q6560903
SYSTEM
Did you mean Legislature of Alberta ?
(c(Q15617994),P194,Q6564780) (c(Q15617994),P194,Q6560903)
[ANSWER]
[{'concept': 'Q15617994'}, 'P194', 'Q6564780'] [{'concept': 'Q15617994'}, 'P194', 'Q6560903']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:P194 resource:Q6564780 . ?z rdf:type ontology:Q15617994 }
Did you mean Legislature of Alberta ?
Legislature of Alberta
[{'concept': 'designation for an administrative territorial entity'}, 'legislative body', 'Parliament of British Columbia'] [{'concept': 'designation for an administrative territorial entity'}, 'legislative body', 'Legislature of Alberta']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:legislative_body resource:Parliament_of_British_Columbia . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Parliament of British Columbia. Could you tell me the answer for that?
(c(Q15617994),P194,Q6564780)
Q6564780
[{'concept': 'Q15617994'}, 'P194', 'Q6564780']
[{'concept': 'designation for an administrative territorial entity'}, 'legislative body', 'Parliament of British Columbia']
[]
SYSTEM
1
Q1974
(c(Q15617994),P194,Q6564780)
[ANSWER]
[{'concept': 'Q15617994'}, 'P194', 'Q6564780']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:P194 resource:Q6564780 . ?z rdf:type ontology:Q15617994 }
British Columbia
1
[{'concept': 'designation for an administrative territorial entity'}, 'legislative body', 'Parliament of British Columbia']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:legislative_body resource:Parliament_of_British_Columbia . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q5040109 Q2923430
P54
Q12973014
USER
Which sports teams have Brad Selwood or Carl Erskine as their member ?
OR((Q2923430,P54,c(Q12973014)), (Q5040109,P54,c(Q12973014)))
action filter_type
action union
action find
entity Q2923430
relation P54
action find
entity Q5040109
relation P54
type Q12973014
{'OR': [['Q2923430', 'P54', {'concept': 'Q12973014'}], ['Q5040109', 'P54', {'concept': 'Q12973014'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Q2923430 property:P54 ?g } UNION { resource:Q5040109 property:P54 ?g } } . ?g rdf:type ontology:Q12973014 }
Carl Erskine Brad Selwood
action filter_type
action union
action find
entity Brad Selwood
relation member of sports team
action find
entity Carl Erskine
relation member of sports team
type sports team
{'OR': [['Brad Selwood', 'member of sports team', {'concept': 'sports team'}], ['Carl Erskine', 'member of sports team', {'concept': 'sports team'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Brad_Selwood property:member_of_sports_team ?g } UNION { resource:Carl_Erskine property:member_of_sports_team ?g } } . ?g rdf:type ontology:sports_team }
[]
sports team
Q203008 Q981266 Q3446304 Q203384
SYSTEM
Los Angeles Kings, Fort Worth Cats, Montreal Royals, Toronto Maple Leafs
Q203008 Q981266 Q3446304 Q203384
OR((Q2923430,P54,c(Q12973014)), (Q5040109,P54,c(Q12973014)))
action filter_type
action union
action find
entity Q2923430
relation P54
action find
entity Q5040109
relation P54
type Q12973014
The [ANSWERS] have Brad Selwood or Carl Erskine as their member
{'OR': [['Q2923430', 'P54', {'concept': 'Q12973014'}], ['Q5040109', 'P54', {'concept': 'Q12973014'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Q2923430 property:P54 ?g } UNION { resource:Q5040109 property:P54 ?g } } . ?g rdf:type ontology:Q12973014 }
Los Angeles Kings Fort Worth Cats Montreal Royals Toronto Maple Leafs
The Los Angeles Kings, Fort Worth Cats, Montreal Royals and Toronto Maple Leafs have Brad Selwood or Carl Erskine as their member
Los Angeles Kings Fort Worth Cats Montreal Royals Toronto Maple Leafs
action filter_type
action union
action find
entity Brad Selwood
relation member of sports team
action find
entity Carl Erskine
relation member of sports team
type sports team
{'OR': [['Brad Selwood', 'member of sports team', {'concept': 'sports team'}], ['Carl Erskine', 'member of sports team', {'concept': 'sports team'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Brad_Selwood property:member_of_sports_team ?g } UNION { resource:Carl_Erskine property:member_of_sports_team ?g } } . ?g rdf:type ontology:sports_team }
[]