Simple Question (Direct)
Simple Question
Q4885357
P69
Q1244442
USER
Where was Ben Brown educated ?
(Q4885357,P69,c(Q1244442))
action filter_type
action find
entity Q4885357
relation P69
type Q1244442
['Q4885357', 'P69', {'concept': 'Q1244442'}]
SELECT DISTINCT ?e WHERE { resource:Q4885357 property:P69 ?e . ?e rdf:type ontology:Q1244442 }
Ben Brown
action filter_type
action find
entity Ben Brown
relation educated at
type school building
['Ben Brown', 'educated at', {'concept': 'school building'}]
SELECT DISTINCT ?e WHERE { resource:Ben_Brown property:educated_at ?e . ?e rdf:type ontology:school_building }
[]
school building
Q1276338
SYSTEM
Keble College
Q1276338
(Q4885357,P69,c(Q1244442))
action filter_type
action find
entity Q4885357
relation P69
type Q1244442
Ben Brown was educated at [ANSWER]
['Q4885357', 'P69', {'concept': 'Q1244442'}]
SELECT DISTINCT ?e WHERE { resource:Q4885357 property:P69 ?e . ?e rdf:type ontology:Q1244442 }
Keble College
Ben Brown was educated at Keble College
Keble College
action filter_type
action find
entity Ben Brown
relation educated at
type school building
['Ben Brown', 'educated at', {'concept': 'school building'}]
SELECT DISTINCT ?e WHERE { resource:Ben_Brown property:educated_at ?e . ?e rdf:type ontology:school_building }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q1276338 Q82922
P17
Q15617994
USER
Is that school building located in Hirschberg an der Bergstraße ?
(Q1276338,P17,Q82922)
action is_in
entity Q82922
action find
entity Q1276338
relation P17
['Q1276338', 'P17', 'Q82922']
ASK WHERE { resource:Q1276338 property:P17 resource:Q82922 }
Keble College Hirschberg an der Bergstraße
action is_in
entity Hirschberg an der Bergstraße
action find
entity Keble College
relation country
['Keble College', 'country', 'Hirschberg an der Bergstraße']
ASK WHERE { resource:Keble_College property:country resource:Hirschberg_an_der_Bergstraße }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q1276338,P17,Q82922)
action is_in
entity Q82922
action find
entity Q1276338
relation P17
[ANSWER]
['Q1276338', 'P17', 'Q82922']
ASK WHERE { resource:Q1276338 property:P17 resource:Q82922 }
No
action is_in
entity Hirschberg an der Bergstraße
action find
entity Keble College
relation country
['Keble College', 'country', 'Hirschberg an der Bergstraße']
ASK WHERE { resource:Keble_College property:country resource:Hirschberg_an_der_Bergstraße }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q4885357 Q6579845 Q9531
P108
Q43229
USER
Does Ben Brown work for PTT Exploration and Production Public Company Limited and BBC ?
(Q4885357,P108,Q6579845) (Q4885357,P108,Q9531)
action is_in
entity Q4885357
action intersection
action find_reverse
entity Q6579845
relation P108
action find_reverse
entity Q9531
relation P108
['Q4885357', 'P108', 'Q6579845'] ['Q4885357', 'P108', 'Q9531']
ASK WHERE { resource:Q4885357 property:P108 resource:Q6579845 . resource:Q4885357 property:P108 resource:Q9531 }
Ben Brown PTT Exploration and Production Public Company Limited BBC
action is_in
entity Ben Brown
action intersection
action find_reverse
entity PTT Exploration and Production Public Company Limited
relation employer
action find_reverse
entity BBC
relation employer
['Ben Brown', 'employer', 'PTT Exploration and Production Public Company Limited'] ['Ben Brown', 'employer', 'BBC']
ASK WHERE { resource:Ben_Brown property:employer resource:PTT_Exploration_and_Production_Public_Company_Limited . resource:Ben_Brown property:employer resource:BBC }
[]
organization
SYSTEM
NO and YES respectively
(Q4885357,P108,Q6579845) (Q4885357,P108,Q9531)
action is_in
entity Q4885357
action intersection
action find_reverse
entity Q6579845
relation P108
action find_reverse
entity Q9531
relation P108
[ANSWER]
['Q4885357', 'P108', 'Q6579845'] ['Q4885357', 'P108', 'Q9531']
ASK WHERE { resource:Q4885357 property:P108 resource:Q6579845 . resource:Q4885357 property:P108 resource:Q9531 }
NO and YES respectively
action is_in
entity Ben Brown
action intersection
action find_reverse
entity PTT Exploration and Production Public Company Limited
relation employer
action find_reverse
entity BBC
relation employer
['Ben Brown', 'employer', 'PTT Exploration and Production Public Company Limited'] ['Ben Brown', 'employer', 'BBC']
ASK WHERE { resource:Ben_Brown property:employer resource:PTT_Exploration_and_Production_Public_Company_Limited . resource:Ben_Brown property:employer resource:BBC }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q4885357
P108
Q43229
USER
How many organizations do Ben Brown work for ?
(Q4885357,P108,c(Q43229))
action count
action filter_type
action find
entity Q4885357
relation P108
type Q43229
['Q4885357', 'P108', {'concept': 'Q43229'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?i ) WHERE { resource:Q4885357 property:P108 ?b . ?b rdf:type ontology:Q43229 }
Ben Brown
action count
action filter_type
action find
entity Ben Brown
relation employer
type organization
['Ben Brown', 'employer', {'concept': 'organization'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?i ) WHERE { resource:Ben_Brown property:employer ?b . ?b rdf:type ontology:organization }
[]
organization
SYSTEM
1
Q9531
(Q4885357,P108,c(Q43229))
action count
action filter_type
action find
entity Q4885357
relation P108
type Q43229
[ANSWER]
['Q4885357', 'P108', {'concept': 'Q43229'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?i ) WHERE { resource:Q4885357 property:P108 ?b . ?b rdf:type ontology:Q43229 }
BBC
1
action count
action filter_type
action find
entity Ben Brown
relation employer
type organization
['Ben Brown', 'employer', {'concept': 'organization'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?i ) WHERE { resource:Ben_Brown property:employer ?b . ?b rdf:type ontology:organization }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Incomplete
Q10070
P108
Q43229
USER
And what about Jacob Appelbaum?
(Q10070,P108,c(Q43229))
action count
action filter_type
action find
entity Q10070
relation P108
type Q43229
['Q10070', 'P108', {'concept': 'Q43229'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?v ) WHERE { ?d rdf:type ontology:Q43229 . resource:Q10070 property:P108 ?d }
Jacob Appelbaum
action count
action filter_type
action find
entity Jacob Appelbaum
relation employer
type organization
['Jacob Appelbaum', 'employer', {'concept': 'organization'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?v ) WHERE { ?d rdf:type ontology:organization . resource:Jacob_Appelbaum property:employer ?d }
[]
organization
SYSTEM
2
Q359 Q20857740
(Q10070,P108,c(Q43229))
action count
action filter_type
action find
entity Q10070
relation P108
type Q43229
[ANSWER]
['Q10070', 'P108', {'concept': 'Q43229'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?v ) WHERE { ?d rdf:type ontology:Q43229 . resource:Q10070 property:P108 ?d }
WikiLeaks The Tor Project, Inc
2
action count
action filter_type
action find
entity Jacob Appelbaum
relation employer
type organization
['Jacob Appelbaum', 'employer', {'concept': 'organization'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?v ) WHERE { ?d rdf:type ontology:organization . resource:Jacob_Appelbaum property:employer ?d }
[]
Quantitative Reasoning (Count) (All)
Incomplete count-based ques
Q110436
Q43229
USER
And how about Cory Doctorow?
(Q110436,P108,c(Q43229))
action count
action filter_type
action find
entity Q110436
relation P108
type Q43229
['Q110436', 'P108', {'concept': 'Q43229'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?y ) WHERE { resource:Q110436 property:P108 ?h . ?h rdf:type ontology:Q43229 }
Cory Doctorow
action count
action filter_type
action find
entity Cory Doctorow
relation employer
type organization
['Cory Doctorow', 'employer', {'concept': 'organization'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?y ) WHERE { resource:Cory_Doctorow property:employer ?h . ?h rdf:type ontology:organization }
[]
organization
SYSTEM
1
(Q110436,P108,c(Q43229))
action count
action filter_type
action find
entity Q110436
relation P108
type Q43229
[ANSWER]
['Q110436', 'P108', {'concept': 'Q43229'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?y ) WHERE { resource:Q110436 property:P108 ?h . ?h rdf:type ontology:Q43229 }
1
action count
action filter_type
action find
entity Cory Doctorow
relation employer
type organization
['Cory Doctorow', 'employer', {'concept': 'organization'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?y ) WHERE { resource:Cory_Doctorow property:employer ?h . ?h rdf:type ontology:organization }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q5606484 Q4885357
P127 P108
Q43229
USER
Which organizations are the employers of Ben Brown or are the owners of Gregg's ?
OR((Q4885357,P108,c(Q43229)), (Q5606484,P127,c(Q43229)))
action filter_type
action union
action find
entity Q4885357
relation P108
action find
entity Q5606484
relation P127
type Q43229
{'OR': [['Q4885357', 'P108', {'concept': 'Q43229'}], ['Q5606484', 'P127', {'concept': 'Q43229'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Q4885357 property:P108 ?j } UNION { resource:Q5606484 property:P127 ?j } } . ?j rdf:type ontology:Q43229 }
Gregg's Ben Brown
action filter_type
action union
action find
entity Ben Brown
relation employer
action find
entity Gregg's
relation owned by
type organization
{'OR': [['Ben Brown', 'employer', {'concept': 'organization'}], ["Gregg's", 'owned by', {'concept': 'organization'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Ben_Brown property:employer ?j } UNION { resource:Gregg's property:owned_by ?j } } . ?j rdf:type ontology:organization }
[]
organization
Q9531 Q1345267
SYSTEM
BBC, Suntory
Q9531 Q1345267
OR((Q4885357,P108,c(Q43229)), (Q5606484,P127,c(Q43229)))
action filter_type
action union
action find
entity Q4885357
relation P108
action find
entity Q5606484
relation P127
type Q43229
[ANSWERS] are the employers of Ben Brown or are the owners of Gregg's
{'OR': [['Q4885357', 'P108', {'concept': 'Q43229'}], ['Q5606484', 'P127', {'concept': 'Q43229'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Q4885357 property:P108 ?j } UNION { resource:Q5606484 property:P127 ?j } } . ?j rdf:type ontology:Q43229 }
BBC Suntory
BBC and Suntory are the employers of Ben Brown or are the owners of Gregg's
BBC Suntory
action filter_type
action union
action find
entity Ben Brown
relation employer
action find
entity Gregg's
relation owned by
type organization
{'OR': [['Ben Brown', 'employer', {'concept': 'organization'}], ["Gregg's", 'owned by', {'concept': 'organization'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Ben_Brown property:employer ?j } UNION { resource:Gregg's property:owned_by ?j } } . ?j rdf:type ontology:organization }
[]
Clarification
Comparative|Count over More/Less|Mult. entity type|Indirect
P3301
Q43229 Q5398426 Q13406554
USER
How many organizations do greater number of television series or sport competitions air on than that organization ?
(c(Q5398426)|c(Q13406554),P3301,c(Q43229))
[[{'concept': 'Q5398426'}, {'concept': 'Q13406554'}], 'P3301', {'concept': 'Q43229'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:P3301 ?y } UNION { ?x property:P3301 ?y } } . ?z rdf:type ontology:Q5398426 . ?y rdf:type ontology:Q43229 . ?x rdf:type ontology:Q13406554 }
[[{'concept': 'television series'}, {'concept': 'sport competition'}], 'broadcast by', {'concept': 'organization'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:broadcast_by ?y } UNION { ?x property:broadcast_by ?y } } . ?z rdf:type ontology:television_series . ?y rdf:type ontology:organization . ?x rdf:type ontology:sport_competition }
[]
organization television series sport competition
Comparative|Count over More/Less|Mult. entity type|Clarification
Q9531
SYSTEM
Did you mean BBC ?
(c(Q5398426)|c(Q13406554),P3301,c(Q43229))
[ANSWER]
[[{'concept': 'Q5398426'}, {'concept': 'Q13406554'}], 'P3301', {'concept': 'Q43229'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:P3301 ?y } UNION { ?x property:P3301 ?y } } . ?z rdf:type ontology:Q5398426 . ?y rdf:type ontology:Q43229 . ?x rdf:type ontology:Q13406554 }
Did you mean BBC ?
BBC
[[{'concept': 'television series'}, {'concept': 'sport competition'}], 'broadcast by', {'concept': 'organization'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:broadcast_by ?y } UNION { ?x property:broadcast_by ?y } } . ?z rdf:type ontology:television_series . ?y rdf:type ontology:organization . ?x rdf:type ontology:sport_competition }
[]
Comparative Reasoning (Count) (All)
USER
Yes
(c(Q5398426)|c(Q13406554),P3301,c(Q43229))
[[{'concept': 'Q5398426'}, {'concept': 'Q13406554'}], 'P3301', {'concept': 'Q43229'}]
[[{'concept': 'television series'}, {'concept': 'sport competition'}], 'broadcast by', {'concept': 'organization'}]
[]
SYSTEM
1
Q7243224
(c(Q5398426)|c(Q13406554),P3301,c(Q43229))
[ANSWER]
[[{'concept': 'Q5398426'}, {'concept': 'Q13406554'}], 'P3301', {'concept': 'Q43229'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:P3301 ?y } UNION { ?x property:P3301 ?y } } . ?z rdf:type ontology:Q5398426 . ?y rdf:type ontology:Q43229 . ?x rdf:type ontology:Q13406554 }
PrimeTel
1
[[{'concept': 'television series'}, {'concept': 'sport competition'}], 'broadcast by', {'concept': 'organization'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:broadcast_by ?y } UNION { ?x property:broadcast_by ?y } } . ?z rdf:type ontology:television_series . ?y rdf:type ontology:organization . ?x rdf:type ontology:sport_competition }
[]