Simple Question (Direct)
Simple Question
Q6416108
P19
Q123705
USER
Which neighborhood was Kirsten Price born in ?
(Q6416108,P19,c(Q123705))
action filter_type
action find
entity Q6416108
relation P19
type Q123705
['Q6416108', 'P19', {'concept': 'Q123705'}]
SELECT DISTINCT ?p WHERE { resource:Q6416108 property:P19 ?p . ?p rdf:type ontology:Q123705 }
Kirsten Price
action filter_type
action find
entity Kirsten Price
relation place of birth
type neighborhood
['Kirsten Price', 'place of birth', {'concept': 'neighborhood'}]
SELECT DISTINCT ?p WHERE { resource:Kirsten_Price property:place_of_birth ?p . ?p rdf:type ontology:neighborhood }
[]
neighborhood
Q125163
SYSTEM
Islington
Q125163
(Q6416108,P19,c(Q123705))
action filter_type
action find
entity Q6416108
relation P19
type Q123705
Kirsten Price was born in [ANSWER]
['Q6416108', 'P19', {'concept': 'Q123705'}]
SELECT DISTINCT ?p WHERE { resource:Q6416108 property:P19 ?p . ?p rdf:type ontology:Q123705 }
Islington
Kirsten Price was born in Islington
Islington
action filter_type
action find
entity Kirsten Price
relation place of birth
type neighborhood
['Kirsten Price', 'place of birth', {'concept': 'neighborhood'}]
SELECT DISTINCT ?p WHERE { resource:Kirsten_Price property:place_of_birth ?p . ?p rdf:type ontology:neighborhood }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q125163
P17
Q15617994
USER
Which administrative territory is that neighborhood situated in ?
(Q125163,P17,c(Q15617994))
action filter_type
action find
entity Q125163
relation P17
type Q15617994
['Q125163', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q15617994 . resource:Q125163 property:P17 ?t }
Islington
action filter_type
action find
entity Islington
relation country
type designation for an administrative territorial entity
['Islington', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Islington property:country ?t }
[]
designation for an administrative territorial entity
Q145
SYSTEM
United Kingdom
Q145
(Q125163,P17,c(Q15617994))
action filter_type
action find
entity Q125163
relation P17
type Q15617994
That neighborhood is situated in [ANSWER]
['Q125163', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q15617994 . resource:Q125163 property:P17 ?t }
United Kingdom
That neighborhood is situated in United Kingdom
United Kingdom
action filter_type
action find
entity Islington
relation country
type designation for an administrative territorial entity
['Islington', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Islington property:country ?t }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Indirect
P495
Q15617994 Q838948 Q7725634
USER
How many administrative territories are the origins of more number of works of art or literary works than that administrative territory ?
(c(Q838948)|c(Q7725634),P495,c(Q15617994))
action count
action greater
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q838948
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q7725634
action count
action filter_multi_types
action find_reverse
entity Q145
relation P495
type Q838948
type Q7725634
[[{'concept': 'Q838948'}, {'concept': 'Q7725634'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?l ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?q ) AS ?f ) WHERE { VALUES ( ?e ) { ( ontology:Q838948 ) ( ontology:Q7725634 ) } . ?q rdf:type ?e } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?k ) WHERE { ?n property:P495 resource:Q145 . { { ?n rdf:type ontology:Q838948 } UNION { ?n rdf:type ontology:Q7725634 } } } } . FILTER ( ?f > ?k ) }
action count
action greater
action union
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type work of art
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type literary work
action count
action filter_multi_types
action find_reverse
entity United Kingdom
relation country of origin
type work of art
type literary work
[[{'concept': 'work of art'}, {'concept': 'literary work'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?l ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?q ) AS ?f ) WHERE { VALUES ( ?e ) { ( ontology:work_of_art ) ( ontology:literary_work ) } . ?q rdf:type ?e } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?k ) WHERE { ?n property:country_of_origin resource:United_Kingdom . { { ?n rdf:type ontology:work_of_art } UNION { ?n rdf:type ontology:literary_work } } } } . FILTER ( ?f > ?k ) }
[]
designation for an administrative territorial entity work of art literary work
SYSTEM
2
Q668 Q30
(c(Q838948)|c(Q7725634),P495,c(Q15617994))
action count
action greater
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q838948
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q7725634
action count
action filter_multi_types
action find_reverse
entity Q145
relation P495
type Q838948
type Q7725634
[ANSWER]
[[{'concept': 'Q838948'}, {'concept': 'Q7725634'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?l ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?q ) AS ?f ) WHERE { VALUES ( ?e ) { ( ontology:Q838948 ) ( ontology:Q7725634 ) } . ?q rdf:type ?e } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?k ) WHERE { ?n property:P495 resource:Q145 . { { ?n rdf:type ontology:Q838948 } UNION { ?n rdf:type ontology:Q7725634 } } } } . FILTER ( ?f > ?k ) }
India United States of America
2
action count
action greater
action union
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type work of art
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type literary work
action count
action filter_multi_types
action find_reverse
entity United Kingdom
relation country of origin
type work of art
type literary work
[[{'concept': 'work of art'}, {'concept': 'literary work'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?l ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?q ) AS ?f ) WHERE { VALUES ( ?e ) { ( ontology:work_of_art ) ( ontology:literary_work ) } . ?q rdf:type ?e } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?k ) WHERE { ?n property:country_of_origin resource:United_Kingdom . { { ?n rdf:type ontology:work_of_art } UNION { ?n rdf:type ontology:literary_work } } } } . FILTER ( ?f > ?k ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q6416108
P175
Q2031291
USER
Which release performed Kirsten Price ?
(c(Q2031291),P175,Q6416108)
action filter_type
action find_reverse
entity Q6416108
relation P175
type Q2031291
[{'concept': 'Q2031291'}, 'P175', 'Q6416108']
SELECT DISTINCT ?q WHERE { ?q property:P175 resource:Q6416108 . ?q rdf:type ontology:Q2031291 }
Kirsten Price
action filter_type
action find_reverse
entity Kirsten Price
relation performer
type release
[{'concept': 'release'}, 'performer', 'Kirsten Price']
SELECT DISTINCT ?q WHERE { ?q property:performer resource:Kirsten_Price . ?q rdf:type ontology:release }
[]
release
Q4971733
SYSTEM
Brixton to Brooklyn
Q4971733
(c(Q2031291),P175,Q6416108)
action filter_type
action find_reverse
entity Q6416108
relation P175
type Q2031291
[ANSWER] performed Kirsten Price
[{'concept': 'Q2031291'}, 'P175', 'Q6416108']
SELECT DISTINCT ?q WHERE { ?q property:P175 resource:Q6416108 . ?q rdf:type ontology:Q2031291 }
Brixton to Brooklyn
Brixton to Brooklyn performed Kirsten Price
Brixton to Brooklyn
action filter_type
action find_reverse
entity Kirsten Price
relation performer
type release
[{'concept': 'release'}, 'performer', 'Kirsten Price']
SELECT DISTINCT ?q WHERE { ?q property:performer resource:Kirsten_Price . ?q rdf:type ontology:release }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P609
Q123705 Q83620 Q34442
USER
Which neighborhoods serves as the terminus locations of max number of thoroughfares or roads ?
(c(Q83620)|c(Q34442),P609,c(Q123705))
action argmax
action union
action find_reverse_tuple_counts
relation P609
type Q123705
type Q83620
action find_reverse_tuple_counts
relation P609
type Q123705
type Q34442
[[{'concept': 'Q83620'}, {'concept': 'Q34442'}], 'P609', {'concept': 'Q123705'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( MAX ( ?r ) AS ?w ) { SELECT DISTINCT ?g ( COUNT ( ?a ) AS ?r ) WHERE { { ?a property:P609 ?g . ?a rdf:type ontology:Q83620 . ?g rdf:type ontology:Q123705 } UNION { ?a property:P609 ?g . ?g rdf:type ontology:Q123705 . ?a rdf:type ontology:Q34442 } } GROUP BY ?g } } . { SELECT DISTINCT ?c ( COUNT ( ?z ) AS ?t ) WHERE { { ?c rdf:type ontology:Q123705 . ?z rdf:type ontology:Q83620 . ?z property:P609 ?c } UNION { ?c rdf:type ontology:Q123705 . ?z rdf:type ontology:Q34442 . ?z property:P609 ?c } } GROUP BY ?c } . FILTER ( ?t = ?w ) }
action argmax
action union
action find_reverse_tuple_counts
relation terminus location
type neighborhood
type thoroughfare
action find_reverse_tuple_counts
relation terminus location
type neighborhood
type road
[[{'concept': 'thoroughfare'}, {'concept': 'road'}], 'terminus location', {'concept': 'neighborhood'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( MAX ( ?r ) AS ?w ) { SELECT DISTINCT ?g ( COUNT ( ?a ) AS ?r ) WHERE { { ?a property:terminus_location ?g . ?a rdf:type ontology:thoroughfare . ?g rdf:type ontology:neighborhood } UNION { ?a property:terminus_location ?g . ?g rdf:type ontology:neighborhood . ?a rdf:type ontology:road } } GROUP BY ?g } } . { SELECT DISTINCT ?c ( COUNT ( ?z ) AS ?t ) WHERE { { ?c rdf:type ontology:neighborhood . ?z rdf:type ontology:thoroughfare . ?z property:terminus_location ?c } UNION { ?c rdf:type ontology:neighborhood . ?z rdf:type ontology:road . ?z property:terminus_location ?c } } GROUP BY ?c } . FILTER ( ?t = ?w ) }
[]
neighborhood thoroughfare road
Q14229145
SYSTEM
Perth
Q14229145
(c(Q83620)|c(Q34442),P609,c(Q123705))
action argmax
action union
action find_reverse_tuple_counts
relation P609
type Q123705
type Q83620
action find_reverse_tuple_counts
relation P609
type Q123705
type Q34442
[ANSWER] serves as the terminus locations of max number of thoroughfares or roads
[[{'concept': 'Q83620'}, {'concept': 'Q34442'}], 'P609', {'concept': 'Q123705'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( MAX ( ?r ) AS ?w ) { SELECT DISTINCT ?g ( COUNT ( ?a ) AS ?r ) WHERE { { ?a property:P609 ?g . ?a rdf:type ontology:Q83620 . ?g rdf:type ontology:Q123705 } UNION { ?a property:P609 ?g . ?g rdf:type ontology:Q123705 . ?a rdf:type ontology:Q34442 } } GROUP BY ?g } } . { SELECT DISTINCT ?c ( COUNT ( ?z ) AS ?t ) WHERE { { ?c rdf:type ontology:Q123705 . ?z rdf:type ontology:Q83620 . ?z property:P609 ?c } UNION { ?c rdf:type ontology:Q123705 . ?z rdf:type ontology:Q34442 . ?z property:P609 ?c } } GROUP BY ?c } . FILTER ( ?t = ?w ) }
Perth
Perth serves as the terminus locations of max number of thoroughfares or roads
Perth
action argmax
action union
action find_reverse_tuple_counts
relation terminus location
type neighborhood
type thoroughfare
action find_reverse_tuple_counts
relation terminus location
type neighborhood
type road
[[{'concept': 'thoroughfare'}, {'concept': 'road'}], 'terminus location', {'concept': 'neighborhood'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( MAX ( ?r ) AS ?w ) { SELECT DISTINCT ?g ( COUNT ( ?a ) AS ?r ) WHERE { { ?a property:terminus_location ?g . ?a rdf:type ontology:thoroughfare . ?g rdf:type ontology:neighborhood } UNION { ?a property:terminus_location ?g . ?g rdf:type ontology:neighborhood . ?a rdf:type ontology:road } } GROUP BY ?g } } . { SELECT DISTINCT ?c ( COUNT ( ?z ) AS ?t ) WHERE { { ?c rdf:type ontology:neighborhood . ?z rdf:type ontology:thoroughfare . ?z property:terminus_location ?c } UNION { ?c rdf:type ontology:neighborhood . ?z rdf:type ontology:road . ?z property:terminus_location ?c } } GROUP BY ?c } . FILTER ( ?t = ?w ) }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P609
Q123705 Q83620
USER
Which thoroughfares have exactly 1 neighborhood as their departure point ?
(c(Q83620),P609,c(Q123705))
action equal
action find_tuple_counts
relation P609
type Q83620
type Q123705
value 1
[{'concept': 'Q83620'}, 'P609', {'concept': 'Q123705'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?x ) AS ?y ) WHERE { ?g property:P609 ?x . ?g rdf:type ontology:Q83620 . ?x rdf:type ontology:Q123705 } GROUP BY ?g } . FILTER ( ?y = 1 ) }
action equal
action find_tuple_counts
relation terminus location
type thoroughfare
type neighborhood
value 1
[{'concept': 'thoroughfare'}, 'terminus location', {'concept': 'neighborhood'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?x ) AS ?y ) WHERE { ?g property:terminus_location ?x . ?g rdf:type ontology:thoroughfare . ?x rdf:type ontology:neighborhood } GROUP BY ?g } . FILTER ( ?y = 1 ) }
[]
neighborhood thoroughfare
Q4863162 Q18014862 Q1939502
SYSTEM
Barrack Street, Bulwer Street, Mitchell Freeway
Q1939502 Q1763041 Q1638174 Q6939479 Q4863162 Q11893194 Q4649212 Q4649129 Q18014862 Q1481366 Q5123401
(c(Q83620),P609,c(Q123705))
action equal
action find_tuple_counts
relation P609
type Q83620
type Q123705
value 1
[ANSWERS] have exactly 1 neighborhood as their departure point
[{'concept': 'Q83620'}, 'P609', {'concept': 'Q123705'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?x ) AS ?y ) WHERE { ?g property:P609 ?x . ?g rdf:type ontology:Q83620 . ?x rdf:type ontology:Q123705 } GROUP BY ?g } . FILTER ( ?y = 1 ) }
Mitchell Freeway Victoria Road M4 motorway Murray Street Barrack Street Regional road 815 A400 road A3220 road Bulwer Street M11 motorway City Road
Barrack Street, Bulwer Street and Mitchell Freeway have exactly 1 neighborhood as their departure point
Barrack Street Bulwer Street Mitchell Freeway
action equal
action find_tuple_counts
relation terminus location
type thoroughfare
type neighborhood
value 1
[{'concept': 'thoroughfare'}, 'terminus location', {'concept': 'neighborhood'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?x ) AS ?y ) WHERE { ?g property:terminus_location ?x . ?g rdf:type ontology:thoroughfare . ?x rdf:type ontology:neighborhood } GROUP BY ?g } . FILTER ( ?y = 1 ) }
[]
Clarification
Simple Question|Single Entity|Indirect
Q18014862
P559
Q83620
USER
What are a terminus for that one ?
(Q18014862,P559,c(Q83620))
action filter_type
action find
entity Q18014862
relation P559
type Q83620
['Q18014862', 'P559', {'concept': 'Q83620'}]
SELECT DISTINCT ?j WHERE { resource:Q18014862 property:P559 ?j . ?j rdf:type ontology:Q83620 }
Bulwer Street
action filter_type
action find
entity Bulwer Street
relation terminus
type thoroughfare
['Bulwer Street', 'terminus', {'concept': 'thoroughfare'}]
SELECT DISTINCT ?j WHERE { resource:Bulwer_Street property:terminus ?j . ?j rdf:type ontology:thoroughfare }
[]
thoroughfare
Clarification for simple ques.
Q18014862
SYSTEM
Did you mean Bulwer Street ?
Q4863162 Q18014862 Q1939502
(Q4863162,P559,c(Q83620)) (Q18014862,P559,c(Q83620)) (Q1939502,P559,c(Q83620))
[ANSWER]
['Q4863162', 'P559', {'concept': 'Q83620'}] ['Q18014862', 'P559', {'concept': 'Q83620'}] ['Q1939502', 'P559', {'concept': 'Q83620'}]
SELECT DISTINCT ?j WHERE { resource:Q18014862 property:P559 ?j . ?j rdf:type ontology:Q83620 }
Barrack Street Bulwer Street Mitchell Freeway
Did you mean Bulwer Street ?
Bulwer Street
['Barrack Street', 'terminus', {'concept': 'thoroughfare'}] ['Bulwer Street', 'terminus', {'concept': 'thoroughfare'}] ['Mitchell Freeway', 'terminus', {'concept': 'thoroughfare'}]
SELECT DISTINCT ?j WHERE { resource:Bulwer_Street property:terminus ?j . ?j rdf:type ontology:thoroughfare }
[]
Simple Question (Coreferenced)
USER
Yes
(Q18014862,P559,c(Q83620))
['Q18014862', 'P559', {'concept': 'Q83620'}]
['Bulwer Street', 'terminus', {'concept': 'thoroughfare'}]
[]
Q18001615 Q16363942
SYSTEM
Lord Street, Vincent Street
Q18001615 Q16363942
(Q18014862,P559,c(Q83620))
action filter_type
action find
entity Q18014862
relation P559
type Q83620
A terminus for that one are at [ANSWERS]
['Q18014862', 'P559', {'concept': 'Q83620'}]
SELECT DISTINCT ?j WHERE { resource:Q18014862 property:P559 ?j . ?j rdf:type ontology:Q83620 }
Lord Street Vincent Street
A terminus for that one are at Lord Street and Vincent Street
Lord Street Vincent Street
action filter_type
action find
entity Bulwer Street
relation terminus
type thoroughfare
['Bulwer Street', 'terminus', {'concept': 'thoroughfare'}]
SELECT DISTINCT ?j WHERE { resource:Bulwer_Street property:terminus ?j . ?j rdf:type ontology:thoroughfare }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P609
Q123705 Q83620 Q34442
USER
How many neighborhoods are the terminus locations of around 1 thoroughfares or roads ?
(c(Q83620)|c(Q34442),P609,c(Q123705))
action count
action approx
action union
action find_reverse_tuple_counts
relation P609
type Q123705
type Q83620
action find_reverse_tuple_counts
relation P609
type Q123705
type Q34442
value 1
[[{'concept': 'Q83620'}, {'concept': 'Q34442'}], 'P609', {'concept': 'Q123705'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?c ) WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?j ) ?w WHERE { { ?z property:P609 ?w . ?w rdf:type ontology:Q123705 . ?z rdf:type ontology:Q83620 } UNION { ?z property:P609 ?w . ?w rdf:type ontology:Q123705 . ?z rdf:type ontology:Q34442 } } GROUP BY ?w } . FILTER ( ?j = 1 ) }
action count
action approx
action union
action find_reverse_tuple_counts
relation terminus location
type neighborhood
type thoroughfare
action find_reverse_tuple_counts
relation terminus location
type neighborhood
type road
value 1
[[{'concept': 'thoroughfare'}, {'concept': 'road'}], 'terminus location', {'concept': 'neighborhood'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?c ) WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?j ) ?w WHERE { { ?z property:terminus_location ?w . ?w rdf:type ontology:neighborhood . ?z rdf:type ontology:thoroughfare } UNION { ?z property:terminus_location ?w . ?w rdf:type ontology:neighborhood . ?z rdf:type ontology:road } } GROUP BY ?w } . FILTER ( ?j = 1 ) }
[]
neighborhood thoroughfare road
SYSTEM
16
Q3417728 Q3469 Q2246577 Q7568961 Q11898461 Q18658619 Q11864401 Q6811747 Q1006232 Q1772186 Q3815354 Q11886866 Q21319 Q123369 Q122527 Q15030864
(c(Q83620)|c(Q34442),P609,c(Q123705))
action count
action approx
action union
action find_reverse_tuple_counts
relation P609
type Q123705
type Q83620
action find_reverse_tuple_counts
relation P609
type Q123705
type Q34442
value 1
[ANSWER]
[[{'concept': 'Q83620'}, {'concept': 'Q34442'}], 'P609', {'concept': 'Q123705'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?c ) WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?j ) ?w WHERE { { ?z property:P609 ?w . ?w rdf:type ontology:Q123705 . ?z rdf:type ontology:Q83620 } UNION { ?z property:P609 ?w . ?w rdf:type ontology:Q123705 . ?z rdf:type ontology:Q34442 } } GROUP BY ?w } . FILTER ( ?j = 1 ) }
Beckton Eißendorf North Woolwich South Woodford Tuira Korvensuora Iinatti Melbourne Woolwich Kruununhaka Pokkinen Pateniemi Parramatta Archway Angel Ladbroke Grove
16
action count
action approx
action union
action find_reverse_tuple_counts
relation terminus location
type neighborhood
type thoroughfare
action find_reverse_tuple_counts
relation terminus location
type neighborhood
type road
value 1
[[{'concept': 'thoroughfare'}, {'concept': 'road'}], 'terminus location', {'concept': 'neighborhood'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?c ) WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?j ) ?w WHERE { { ?z property:terminus_location ?w . ?w rdf:type ontology:neighborhood . ?z rdf:type ontology:thoroughfare } UNION { ?z property:terminus_location ?w . ?w rdf:type ontology:neighborhood . ?z rdf:type ontology:road } } GROUP BY ?w } . FILTER ( ?j = 1 ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q638735 Q18014862
P17
Q1048835
USER
Which political territories are Bulwer Street or Wairoa River located in ?
OR((Q18014862,P17,c(Q1048835)), (Q638735,P17,c(Q1048835)))
action filter_type
action union
action find
entity Q18014862
relation P17
action find
entity Q638735
relation P17
type Q1048835
{'OR': [['Q18014862', 'P17', {'concept': 'Q1048835'}], ['Q638735', 'P17', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?x WHERE { { { resource:Q638735 property:P17 ?x } UNION { resource:Q18014862 property:P17 ?x } } . ?x rdf:type ontology:Q1048835 }
Wairoa River Bulwer Street
action filter_type
action union
action find
entity Bulwer Street
relation country
action find
entity Wairoa River
relation country
type political territorial entity
{'OR': [['Bulwer Street', 'country', {'concept': 'political territorial entity'}], ['Wairoa River', 'country', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?x WHERE { { { resource:Wairoa_River property:country ?x } UNION { resource:Bulwer_Street property:country ?x } } . ?x rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q408 Q664
SYSTEM
Australia, New Zealand
Q408 Q664
OR((Q18014862,P17,c(Q1048835)), (Q638735,P17,c(Q1048835)))
action filter_type
action union
action find
entity Q18014862
relation P17
action find
entity Q638735
relation P17
type Q1048835
[ANSWERS]
{'OR': [['Q18014862', 'P17', {'concept': 'Q1048835'}], ['Q638735', 'P17', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?x WHERE { { { resource:Q638735 property:P17 ?x } UNION { resource:Q18014862 property:P17 ?x } } . ?x rdf:type ontology:Q1048835 }
Australia New Zealand
Which political territories are Bulwer Street or Wairoa River located in
Australia New Zealand
action filter_type
action union
action find
entity Bulwer Street
relation country
action find
entity Wairoa River
relation country
type political territorial entity
{'OR': [['Bulwer Street', 'country', {'concept': 'political territorial entity'}], ['Wairoa River', 'country', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?x WHERE { { { resource:Wairoa_River property:country ?x } UNION { resource:Bulwer_Street property:country ?x } } . ?x rdf:type ontology:political_territorial_entity }
[]