Simple Question (Direct)
Simple Question
Q8015
P26
Q502895
USER
Who is married to Artur Mas ?
(Q8015,P26,c(Q502895))
action filter_type
action find
entity Q8015
relation P26
type Q502895
['Q8015', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?p WHERE { resource:Q8015 property:P26 ?p . ?p rdf:type ontology:Q502895 }
Artur Mas
action filter_type
action find
entity Artur Mas
relation spouse
type common name
['Artur Mas', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?p WHERE { resource:Artur_Mas property:spouse ?p . ?p rdf:type ontology:common_name }
[]
common name
Q20002921
SYSTEM
Helena Rakòsnik
Q20002921
(Q8015,P26,c(Q502895))
action filter_type
action find
entity Q8015
relation P26
type Q502895
[ANSWER] is married to Artur Mas
['Q8015', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?p WHERE { resource:Q8015 property:P26 ?p . ?p rdf:type ontology:Q502895 }
Helena Rakòsnik
Helena Rakòsnik is married to Artur Mas
Helena Rakòsnik
action filter_type
action find
entity Artur Mas
relation spouse
type common name
['Artur Mas', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?p WHERE { resource:Artur_Mas property:spouse ?p . ?p rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q20002921 Q1129443
P102
Q7278
USER
Is that person affiliated with Democratic Convergence of Catalonia ?
(Q20002921,P102,Q1129443)
action is_in
entity Q1129443
action find
entity Q20002921
relation P102
['Q20002921', 'P102', 'Q1129443']
ASK WHERE { resource:Q20002921 property:P102 resource:Q1129443 }
Helena Rakòsnik Democratic Convergence of Catalonia
action is_in
entity Democratic Convergence of Catalonia
action find
entity Helena Rakòsnik
relation member of political party
['Helena Rakòsnik', 'member of political party', 'Democratic Convergence of Catalonia']
ASK WHERE { resource:Helena_Rakòsnik property:member_of_political_party resource:Democratic_Convergence_of_Catalonia }
[]
political party
SYSTEM
YES
(Q20002921,P102,Q1129443)
action is_in
entity Q1129443
action find
entity Q20002921
relation P102
[ANSWER]
['Q20002921', 'P102', 'Q1129443']
ASK WHERE { resource:Q20002921 property:P102 resource:Q1129443 }
Yes
action is_in
entity Democratic Convergence of Catalonia
action find
entity Helena Rakòsnik
relation member of political party
['Helena Rakòsnik', 'member of political party', 'Democratic Convergence of Catalonia']
ASK WHERE { resource:Helena_Rakòsnik property:member_of_political_party resource:Democratic_Convergence_of_Catalonia }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q8015 Q3461643 Q1492
P937
Q56061
USER
Does Artur Mas work at Figheldean and Barcelona ?
(Q8015,P937,Q3461643) (Q8015,P937,Q1492)
action is_in
entity Q8015
action intersection
action find_reverse
entity Q3461643
relation P937
action find_reverse
entity Q1492
relation P937
['Q8015', 'P937', 'Q3461643'] ['Q8015', 'P937', 'Q1492']
ASK WHERE { resource:Q8015 property:P937 resource:Q3461643 . resource:Q8015 property:P937 resource:Q1492 }
Artur Mas Figheldean Barcelona
action is_in
entity Artur Mas
action intersection
action find_reverse
entity Figheldean
relation work location
action find_reverse
entity Barcelona
relation work location
['Artur Mas', 'work location', 'Figheldean'] ['Artur Mas', 'work location', 'Barcelona']
ASK WHERE { resource:Artur_Mas property:work_location resource:Figheldean . resource:Artur_Mas property:work_location resource:Barcelona }
[]
administrative territorial entity
SYSTEM
NO and YES respectively
(Q8015,P937,Q3461643) (Q8015,P937,Q1492)
action is_in
entity Q8015
action intersection
action find_reverse
entity Q3461643
relation P937
action find_reverse
entity Q1492
relation P937
[ANSWER]
['Q8015', 'P937', 'Q3461643'] ['Q8015', 'P937', 'Q1492']
ASK WHERE { resource:Q8015 property:P937 resource:Q3461643 . resource:Q8015 property:P937 resource:Q1492 }
NO and YES respectively
action is_in
entity Artur Mas
action intersection
action find_reverse
entity Figheldean
relation work location
action find_reverse
entity Barcelona
relation work location
['Artur Mas', 'work location', 'Figheldean'] ['Artur Mas', 'work location', 'Barcelona']
ASK WHERE { resource:Artur_Mas property:work_location resource:Figheldean . resource:Artur_Mas property:work_location resource:Barcelona }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q8015
P488
Q7278
USER
How many political parties have Artur Mas as their chairperson ?
(c(Q7278),P488,Q8015)
action count
action filter_type
action find_reverse
entity Q8015
relation P488
type Q7278
[{'concept': 'Q7278'}, 'P488', 'Q8015']
SELECT DISTINCT ( COUNT ( ?m ) AS ?s ) WHERE { ?m property:P488 resource:Q8015 . ?m rdf:type ontology:Q7278 }
Artur Mas
action count
action filter_type
action find_reverse
entity Artur Mas
relation chairperson
type political party
[{'concept': 'political party'}, 'chairperson', 'Artur Mas']
SELECT DISTINCT ( COUNT ( ?m ) AS ?s ) WHERE { ?m property:chairperson resource:Artur_Mas . ?m rdf:type ontology:political_party }
[]
political party
SYSTEM
2
Q25713876 Q1129443
(c(Q7278),P488,Q8015)
action count
action filter_type
action find_reverse
entity Q8015
relation P488
type Q7278
[ANSWER]
[{'concept': 'Q7278'}, 'P488', 'Q8015']
SELECT DISTINCT ( COUNT ( ?m ) AS ?s ) WHERE { ?m property:P488 resource:Q8015 . ?m rdf:type ontology:Q7278 }
Catalan European Democratic Party Democratic Convergence of Catalonia
2
action count
action filter_type
action find_reverse
entity Artur Mas
relation chairperson
type political party
[{'concept': 'political party'}, 'chairperson', 'Artur Mas']
SELECT DISTINCT ( COUNT ( ?m ) AS ?s ) WHERE { ?m property:chairperson resource:Artur_Mas . ?m rdf:type ontology:political_party }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q8015
P6
Q1048835
USER
Which political territory has that person as its administrative leader ?
action filter_type
action find_reverse
entity Q8015
relation P6
type Q1048835
SELECT DISTINCT ?k WHERE { ?k property:P6 resource:Q8015 . ?k rdf:type ontology:Q1048835 }
Artur Mas
action filter_type
action find_reverse
entity Artur Mas
relation head of government
type political territorial entity
SELECT DISTINCT ?k WHERE { ?k property:head_of_government resource:Artur_Mas . ?k rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q5705
SYSTEM
Catalonia
Q5705
action filter_type
action find_reverse
entity Q8015
relation P6
type Q1048835
[ANSWER] has that person as its administrative leader
SELECT DISTINCT ?k WHERE { ?k property:P6 resource:Q8015 . ?k rdf:type ontology:Q1048835 }
Catalonia
Catalonia has that person as its administrative leader
Catalonia
action filter_type
action find_reverse
entity Artur Mas
relation head of government
type political territorial entity
SELECT DISTINCT ?k WHERE { ?k property:head_of_government resource:Artur_Mas . ?k rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q5705
P793
Q180684 Q1190554
USER
How many conflicts and events are the significant events associated with Catalonia ?
(Q5705,P793,c(Q180684)) (Q5705,P793,c(Q1190554))
action count
action union
action filter_type
action find
entity Q5705
relation P793
type Q180684
action filter_type
action find
entity Q5705
relation P793
type Q1190554
['Q5705', 'P793', {'concept': 'Q180684'}] ['Q5705', 'P793', {'concept': 'Q1190554'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?l ) WHERE { { resource:Q5705 property:P793 ?h . ?h rdf:type ontology:Q180684 } UNION { resource:Q5705 property:P793 ?h . ?h rdf:type ontology:Q1190554 } }
Catalonia
action count
action union
action filter_type
action find
entity Catalonia
relation significant event
type conflict
action filter_type
action find
entity Catalonia
relation significant event
type event
['Catalonia', 'significant event', {'concept': 'conflict'}] ['Catalonia', 'significant event', {'concept': 'event'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?l ) WHERE { { resource:Catalonia property:significant_event ?h . ?h rdf:type ontology:conflict } UNION { resource:Catalonia property:significant_event ?h . ?h rdf:type ontology:event } }
[]
conflict event
SYSTEM
1 conflicts and 1 events
Q166495 Q1348955
(Q5705,P793,c(Q180684)) (Q5705,P793,c(Q1190554))
action count
action union
action filter_type
action find
entity Q5705
relation P793
type Q180684
action filter_type
action find
entity Q5705
relation P793
type Q1190554
[ANSWER]
['Q5705', 'P793', {'concept': 'Q180684'}] ['Q5705', 'P793', {'concept': 'Q1190554'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?l ) WHERE { { resource:Q5705 property:P793 ?h . ?h rdf:type ontology:Q180684 } UNION { resource:Q5705 property:P793 ?h . ?h rdf:type ontology:Q1190554 } }
Catalonia Offensive Catalan Revolt
1 conflicts and 1 events
action count
action union
action filter_type
action find
entity Catalonia
relation significant event
type conflict
action filter_type
action find
entity Catalonia
relation significant event
type event
['Catalonia', 'significant event', {'concept': 'conflict'}] ['Catalonia', 'significant event', {'concept': 'event'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?l ) WHERE { { resource:Catalonia property:significant_event ?h . ?h rdf:type ontology:conflict } UNION { resource:Catalonia property:significant_event ?h . ?h rdf:type ontology:event } }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q7954975 Q1492
P1408 P190
Q486972
USER
Which human settlements are sister towns of Barcelona or can WREH broadcast to as per their license ?
OR((Q1492,P190,c(Q486972)), (Q7954975,P1408,c(Q486972)))
action filter_type
action union
action find
entity Q1492
relation P190
action find
entity Q7954975
relation P1408
type Q486972
{'OR': [['Q1492', 'P190', {'concept': 'Q486972'}], ['Q7954975', 'P1408', {'concept': 'Q486972'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Q7954975 property:P1408 ?g } UNION { resource:Q1492 property:P190 ?g } } . ?g rdf:type ontology:Q486972 }
WREH Barcelona
action filter_type
action union
action find
entity Barcelona
relation sister city
action find
entity WREH
relation licensed to broadcast to
type human settlement
{'OR': [['Barcelona', 'sister city', {'concept': 'human settlement'}], ['WREH', 'licensed to broadcast to', {'concept': 'human settlement'}]]}
SELECT DISTINCT ?g WHERE { { { resource:WREH property:licensed_to_broadcast_to ?g } UNION { resource:Barcelona property:sister_city ?g } } . ?g rdf:type ontology:human_settlement }
[]
human settlement
Q1792 Q520499
SYSTEM
Gdańsk, Cypress Quarters
Q1792 Q520499
OR((Q1492,P190,c(Q486972)), (Q7954975,P1408,c(Q486972)))
action filter_type
action union
action find
entity Q1492
relation P190
action find
entity Q7954975
relation P1408
type Q486972
[ANSWERS] are sister towns of Barcelona or can WREH broadcast to as per their license
{'OR': [['Q1492', 'P190', {'concept': 'Q486972'}], ['Q7954975', 'P1408', {'concept': 'Q486972'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Q7954975 property:P1408 ?g } UNION { resource:Q1492 property:P190 ?g } } . ?g rdf:type ontology:Q486972 }
Gdańsk Cypress Quarters
Gdańsk and Cypress Quarters are sister towns of Barcelona or can WREH broadcast to as per their license
Gdańsk Cypress Quarters
action filter_type
action union
action find
entity Barcelona
relation sister city
action find
entity WREH
relation licensed to broadcast to
type human settlement
{'OR': [['Barcelona', 'sister city', {'concept': 'human settlement'}], ['WREH', 'licensed to broadcast to', {'concept': 'human settlement'}]]}
SELECT DISTINCT ?g WHERE { { { resource:WREH property:licensed_to_broadcast_to ?g } UNION { resource:Barcelona property:sister_city ?g } } . ?g rdf:type ontology:human_settlement }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1376
Q914262 Q486972
USER
Which administrative territory of Swedens have atleast 1 human settlement have their center of administration ?
(c(Q486972),P1376,c(Q914262))
action atleast
action find_reverse_tuple_counts
relation P1376
type Q914262
type Q486972
value 1
[{'concept': 'Q486972'}, 'P1376', {'concept': 'Q914262'}]
SELECT DISTINCT ?h WHERE { FILTER ( ?o >= 1 ) . { SELECT DISTINCT ?h ( COUNT ( ?m ) AS ?o ) WHERE { ?m property:P1376 ?h . ?h rdf:type ontology:Q914262 . ?m rdf:type ontology:Q486972 } GROUP BY ?h } }
action atleast
action find_reverse_tuple_counts
relation capital of
type administrative territorial entity of Sweden
type human settlement
value 1
[{'concept': 'human settlement'}, 'capital of', {'concept': 'administrative territorial entity of Sweden'}]
SELECT DISTINCT ?h WHERE { FILTER ( ?o >= 1 ) . { SELECT DISTINCT ?h ( COUNT ( ?m ) AS ?o ) WHERE { ?m property:capital_of ?h . ?h rdf:type ontology:administrative_territorial_entity_of_Sweden . ?m rdf:type ontology:human_settlement } GROUP BY ?h } }
[]
administrative territorial entity of Sweden human settlement
Q503162 Q508168 Q182007
SYSTEM
Alingsås Municipality, Falkenberg Municipality, Alvesta Municipality
Q508168 Q266401 Q515519 Q493855 Q946647 Q503162 Q503167 Q431271 Q182007
(c(Q486972),P1376,c(Q914262))
action atleast
action find_reverse_tuple_counts
relation P1376
type Q914262
type Q486972
value 1
[ANSWERS] have atleast 1 human settlement have their center of administration
[{'concept': 'Q486972'}, 'P1376', {'concept': 'Q914262'}]
SELECT DISTINCT ?h WHERE { FILTER ( ?o >= 1 ) . { SELECT DISTINCT ?h ( COUNT ( ?m ) AS ?o ) WHERE { ?m property:P1376 ?h . ?h rdf:type ontology:Q914262 . ?m rdf:type ontology:Q486972 } GROUP BY ?h } }
Falkenberg Municipality Höör Municipality Tomelilla Municipality Arjeplog Municipality Nacka Municipality Alingsås Municipality Aneby Municipality Arboga Municipality Alvesta Municipality
Alingsås Municipality, Falkenberg Municipality and Alvesta Municipality have atleast 1 human settlement have their center of administration
Alingsås Municipality Falkenberg Municipality Alvesta Municipality
action atleast
action find_reverse_tuple_counts
relation capital of
type administrative territorial entity of Sweden
type human settlement
value 1
[{'concept': 'human settlement'}, 'capital of', {'concept': 'administrative territorial entity of Sweden'}]
SELECT DISTINCT ?h WHERE { FILTER ( ?o >= 1 ) . { SELECT DISTINCT ?h ( COUNT ( ?m ) AS ?o ) WHERE { ?m property:capital_of ?h . ?h rdf:type ontology:administrative_territorial_entity_of_Sweden . ?m rdf:type ontology:human_settlement } GROUP BY ?h } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q16898296
P1376
Q914262 Q486972
USER
How many human settlements are the county seat for greater number of administrative territory of Swedens than Odorheiu Secuiesc ?
(c(Q486972),P1376,c(Q914262))
action count
action greater
action find_tuple_counts
relation P1376
type Q486972
type Q914262
action count
action filter_type
action find
entity Q16898296
relation P1376
type Q486972
[{'concept': 'Q486972'}, 'P1376', {'concept': 'Q914262'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?p ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?s ) AS ?j ) WHERE { ?t property:P1376 ?s . ?s rdf:type ontology:Q914262 . ?t rdf:type ontology:Q486972 } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?g ) WHERE { resource:Q16898296 property:P1376 ?c . ?c rdf:type ontology:Q486972 } } . FILTER ( ?j > ?g ) }
Odorheiu Secuiesc
action count
action greater
action find_tuple_counts
relation capital of
type human settlement
type administrative territorial entity of Sweden
action count
action filter_type
action find
entity Odorheiu Secuiesc
relation capital of
type human settlement
[{'concept': 'human settlement'}, 'capital of', {'concept': 'administrative territorial entity of Sweden'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?p ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?s ) AS ?j ) WHERE { ?t property:capital_of ?s . ?s rdf:type ontology:administrative_territorial_entity_of_Sweden . ?t rdf:type ontology:human_settlement } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?g ) WHERE { resource:Odorheiu_Secuiesc property:capital_of ?c . ?c rdf:type ontology:human_settlement } } . FILTER ( ?j > ?g ) }
[]
administrative territorial entity of Sweden human settlement
SYSTEM
9
Q1940596 Q674988 Q54743 Q765434 Q669660 Q2604885 Q983681 Q671330 Q13383459
(c(Q486972),P1376,c(Q914262))
action count
action greater
action find_tuple_counts
relation P1376
type Q486972
type Q914262
action count
action filter_type
action find
entity Q16898296
relation P1376
type Q486972
[ANSWER]
[{'concept': 'Q486972'}, 'P1376', {'concept': 'Q914262'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?p ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?s ) AS ?j ) WHERE { ?t property:P1376 ?s . ?s rdf:type ontology:Q914262 . ?t rdf:type ontology:Q486972 } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?g ) WHERE { resource:Q16898296 property:P1376 ?c . ?c rdf:type ontology:Q486972 } } . FILTER ( ?j > ?g ) }
Aneby Falkenberg Alingsås Höör Arboga Alvesta Tomelilla Arjeplog Nacka
9
action count
action greater
action find_tuple_counts
relation capital of
type human settlement
type administrative territorial entity of Sweden
action count
action filter_type
action find
entity Odorheiu Secuiesc
relation capital of
type human settlement
[{'concept': 'human settlement'}, 'capital of', {'concept': 'administrative territorial entity of Sweden'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?p ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?s ) AS ?j ) WHERE { ?t property:capital_of ?s . ?s rdf:type ontology:administrative_territorial_entity_of_Sweden . ?t rdf:type ontology:human_settlement } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?g ) WHERE { resource:Odorheiu_Secuiesc property:capital_of ?c . ?c rdf:type ontology:human_settlement } } . FILTER ( ?j > ?g ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q465833
P1376
Q914262 Q486972
USER
And how about Schagen?
(c(Q486972),P1376,c(Q914262))
action count
action greater
action find_tuple_counts
relation P1376
type Q486972
type Q914262
action count
action filter_type
action find
entity Q465833
relation P1376
type Q486972
[{'concept': 'Q486972'}, 'P1376', {'concept': 'Q914262'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?y ) WHERE { { SELECT DISTINCT ?k ( COUNT ( ?x ) AS ?b ) WHERE { ?k property:P1376 ?x . ?k rdf:type ontology:Q486972 . ?x rdf:type ontology:Q914262 } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?e ) WHERE { resource:Q465833 property:P1376 ?t . ?t rdf:type ontology:Q486972 } } . FILTER ( ?b > ?e ) }
Schagen
action count
action greater
action find_tuple_counts
relation capital of
type human settlement
type administrative territorial entity of Sweden
action count
action filter_type
action find
entity Schagen
relation capital of
type human settlement
[{'concept': 'human settlement'}, 'capital of', {'concept': 'administrative territorial entity of Sweden'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?y ) WHERE { { SELECT DISTINCT ?k ( COUNT ( ?x ) AS ?b ) WHERE { ?k property:capital_of ?x . ?k rdf:type ontology:human_settlement . ?x rdf:type ontology:administrative_territorial_entity_of_Sweden } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?e ) WHERE { resource:Schagen property:capital_of ?t . ?t rdf:type ontology:human_settlement } } . FILTER ( ?b > ?e ) }
[]
administrative territorial entity of Sweden human settlement
SYSTEM
9
Q1940596 Q674988 Q54743 Q765434 Q669660 Q2604885 Q983681 Q671330 Q13383459
(c(Q486972),P1376,c(Q914262))
action count
action greater
action find_tuple_counts
relation P1376
type Q486972
type Q914262
action count
action filter_type
action find
entity Q465833
relation P1376
type Q486972
[ANSWER]
[{'concept': 'Q486972'}, 'P1376', {'concept': 'Q914262'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?y ) WHERE { { SELECT DISTINCT ?k ( COUNT ( ?x ) AS ?b ) WHERE { ?k property:P1376 ?x . ?k rdf:type ontology:Q486972 . ?x rdf:type ontology:Q914262 } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?e ) WHERE { resource:Q465833 property:P1376 ?t . ?t rdf:type ontology:Q486972 } } . FILTER ( ?b > ?e ) }
Aneby Falkenberg Alingsås Höör Arboga Alvesta Tomelilla Arjeplog Nacka
9
action count
action greater
action find_tuple_counts
relation capital of
type human settlement
type administrative territorial entity of Sweden
action count
action filter_type
action find
entity Schagen
relation capital of
type human settlement
[{'concept': 'human settlement'}, 'capital of', {'concept': 'administrative territorial entity of Sweden'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?y ) WHERE { { SELECT DISTINCT ?k ( COUNT ( ?x ) AS ?b ) WHERE { ?k property:capital_of ?x . ?k rdf:type ontology:human_settlement . ?x rdf:type ontology:administrative_territorial_entity_of_Sweden } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?e ) WHERE { resource:Schagen property:capital_of ?t . ?t rdf:type ontology:human_settlement } } . FILTER ( ?b > ?e ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q2215582
P609
Q486972 Q83620 Q12280
USER
Which human settlements serves as the terminus locations of around the same number of thoroughfares or bridges as Parmelee ?
(c(Q83620)|c(Q12280),P609,c(Q486972))
action approx
action union
action find_reverse_tuple_counts
relation P609
type Q486972
type Q83620
action find_reverse_tuple_counts
relation P609
type Q486972
type Q12280
action count
action filter_multi_types
action find_reverse
entity Q2215582
relation P609
type Q83620
type Q12280
[[{'concept': 'Q83620'}, {'concept': 'Q12280'}], 'P609', {'concept': 'Q486972'}]
SELECT DISTINCT ?g WHERE { FILTER ( ?q = ?o ) . { SELECT DISTINCT ( COUNT ( ?r ) AS ?o ) WHERE { ?r property:P609 resource:Q2215582 . { { ?r rdf:type ontology:Q12280 } UNION { ?r rdf:type ontology:Q83620 } } } } . { SELECT DISTINCT ?g ( COUNT ( ?c ) AS ?q ) WHERE { { ?c property:P609 ?g . ?g rdf:type ontology:Q486972 . ?c rdf:type ontology:Q83620 } UNION { ?c property:P609 ?g . ?c rdf:type ontology:Q12280 . ?g rdf:type ontology:Q486972 } } GROUP BY ?g } }
Parmelee
action approx
action union
action find_reverse_tuple_counts
relation terminus location
type human settlement
type thoroughfare
action find_reverse_tuple_counts
relation terminus location
type human settlement
type bridge
action count
action filter_multi_types
action find_reverse
entity Parmelee
relation terminus location
type thoroughfare
type bridge
[[{'concept': 'thoroughfare'}, {'concept': 'bridge'}], 'terminus location', {'concept': 'human settlement'}]
SELECT DISTINCT ?g WHERE { FILTER ( ?q = ?o ) . { SELECT DISTINCT ( COUNT ( ?r ) AS ?o ) WHERE { ?r property:terminus_location resource:Parmelee . { { ?r rdf:type ontology:bridge } UNION { ?r rdf:type ontology:thoroughfare } } } } . { SELECT DISTINCT ?g ( COUNT ( ?c ) AS ?q ) WHERE { { ?c property:terminus_location ?g . ?g rdf:type ontology:human_settlement . ?c rdf:type ontology:thoroughfare } UNION { ?c property:terminus_location ?g . ?c rdf:type ontology:bridge . ?g rdf:type ontology:human_settlement } } GROUP BY ?g } }
[]
human settlement thoroughfare bridge
Q3126518 Q199440 Q494504
SYSTEM
Hammarby Sjöstad, Mexicali, Bludenz
Q679219 Q1020984 Q586805 Q2361618 Q3458263 Q22086061 Q1776138 Q146436 Q7563690 Q1438770 Q6389213 Q1889583 Q1928388 Q2394499 Q1043538 Q987262 Q8039977 Q462894 Q5329043 Q12020174 Q662075 Q754345 Q2097028 Q1020993 Q3350222 Q199440 Q494504 Q590710 Q548856 Q7972623 Q7074391 Q664293 Q3458232 Q2215582 Q3458709 Q3470756 Q755281 Q3458226 Q3490765 Q6646538 Q3126518 Q582954
(c(Q83620)|c(Q12280),P609,c(Q486972))
action approx
action union
action find_reverse_tuple_counts
relation P609
type Q486972
type Q83620
action find_reverse_tuple_counts
relation P609
type Q486972
type Q12280
action count
action filter_multi_types
action find_reverse
entity Q2215582
relation P609
type Q83620
type Q12280
[ANSWERS] serve as the terminus locations of around the same number of thoroughfares or bridges as Parmelee
[[{'concept': 'Q83620'}, {'concept': 'Q12280'}], 'P609', {'concept': 'Q486972'}]
SELECT DISTINCT ?g WHERE { FILTER ( ?q = ?o ) . { SELECT DISTINCT ( COUNT ( ?r ) AS ?o ) WHERE { ?r property:P609 resource:Q2215582 . { { ?r rdf:type ontology:Q12280 } UNION { ?r rdf:type ontology:Q83620 } } } } . { SELECT DISTINCT ?g ( COUNT ( ?c ) AS ?q ) WHERE { { ?c property:P609 ?g . ?g rdf:type ontology:Q486972 . ?c rdf:type ontology:Q83620 } UNION { ?c property:P609 ?g . ?c rdf:type ontology:Q12280 . ?g rdf:type ontology:Q486972 } } GROUP BY ?g } }
Schurz Dayton Edgemoor Desert Center Winterhaven Cross Village Hawthorne Waterloo Sorrento Valley Fort Thompson Oasis Blue Diamond Ramona San Lucas Carmel Valley Virginia City Wymering Point Loma East Nicolaus Horní Heršpice Rodney Village Wilmington Manor Mecca Stateline Old Town Mexicali Bludenz New Town Eureka Washoe Valley Oasis Gerasdorf bei Wien Potrero Parmelee Boulevard Alsea Rising Sun-Lebanon Descanso Věřňovice Mountain Center Hammarby Sjöstad Ocotillo
Hammarby Sjöstad, Mexicali and Bludenz serve as the terminus locations of around the same number of thoroughfares or bridges as Parmelee
Hammarby Sjöstad Mexicali Bludenz
action approx
action union
action find_reverse_tuple_counts
relation terminus location
type human settlement
type thoroughfare
action find_reverse_tuple_counts
relation terminus location
type human settlement
type bridge
action count
action filter_multi_types
action find_reverse
entity Parmelee
relation terminus location
type thoroughfare
type bridge
[[{'concept': 'thoroughfare'}, {'concept': 'bridge'}], 'terminus location', {'concept': 'human settlement'}]
SELECT DISTINCT ?g WHERE { FILTER ( ?q = ?o ) . { SELECT DISTINCT ( COUNT ( ?r ) AS ?o ) WHERE { ?r property:terminus_location resource:Parmelee . { { ?r rdf:type ontology:bridge } UNION { ?r rdf:type ontology:thoroughfare } } } } . { SELECT DISTINCT ?g ( COUNT ( ?c ) AS ?q ) WHERE { { ?c property:terminus_location ?g . ?g rdf:type ontology:human_settlement . ?c rdf:type ontology:thoroughfare } UNION { ?c property:terminus_location ?g . ?c rdf:type ontology:bridge . ?g rdf:type ontology:human_settlement } } GROUP BY ?g } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q3458709
P609
Q486972 Q83620 Q12280
USER
And what about Boulevard?
(c(Q83620)|c(Q12280),P609,c(Q486972))
action approx
action union
action find_reverse_tuple_counts
relation P609
type Q486972
type Q83620
action find_reverse_tuple_counts
relation P609
type Q486972
type Q12280
action count
action filter_multi_types
action find_reverse
entity Q3458709
relation P609
type Q83620
type Q12280
[[{'concept': 'Q83620'}, {'concept': 'Q12280'}], 'P609', {'concept': 'Q486972'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?c ) ?r WHERE { { ?i property:P609 ?r . ?r rdf:type ontology:Q486972 . ?i rdf:type ontology:Q83620 } UNION { ?i property:P609 ?r . ?r rdf:type ontology:Q486972 . ?i rdf:type ontology:Q12280 } } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?z ) WHERE { ?b property:P609 resource:Q3458709 . { ?b rdf:type ?d . VALUES ( ?d ) { ( ontology:Q83620 ) ( ontology:Q12280 ) } } } } . FILTER ( ?c = ?z ) }
Boulevard
action approx
action union
action find_reverse_tuple_counts
relation terminus location
type human settlement
type thoroughfare
action find_reverse_tuple_counts
relation terminus location
type human settlement
type bridge
action count
action filter_multi_types
action find_reverse
entity Boulevard
relation terminus location
type thoroughfare
type bridge
[[{'concept': 'thoroughfare'}, {'concept': 'bridge'}], 'terminus location', {'concept': 'human settlement'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?c ) ?r WHERE { { ?i property:terminus_location ?r . ?r rdf:type ontology:human_settlement . ?i rdf:type ontology:thoroughfare } UNION { ?i property:terminus_location ?r . ?r rdf:type ontology:human_settlement . ?i rdf:type ontology:bridge } } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?z ) WHERE { ?b property:terminus_location resource:Boulevard . { ?b rdf:type ?d . VALUES ( ?d ) { ( ontology:thoroughfare ) ( ontology:bridge ) } } } } . FILTER ( ?c = ?z ) }
[]
human settlement thoroughfare bridge
Q3126518 Q199440 Q494504
SYSTEM
Hammarby Sjöstad, Mexicali, Bludenz
Q679219 Q1020984 Q586805 Q2361618 Q3458263 Q22086061 Q1776138 Q146436 Q7563690 Q1438770 Q6389213 Q1889583 Q1928388 Q2394499 Q1043538 Q987262 Q8039977 Q462894 Q5329043 Q12020174 Q662075 Q754345 Q2097028 Q1020993 Q3350222 Q199440 Q494504 Q590710 Q548856 Q7972623 Q7074391 Q664293 Q3458232 Q2215582 Q3458709 Q3470756 Q755281 Q3458226 Q3490765 Q6646538 Q3126518 Q582954
(c(Q83620)|c(Q12280),P609,c(Q486972))
action approx
action union
action find_reverse_tuple_counts
relation P609
type Q486972
type Q83620
action find_reverse_tuple_counts
relation P609
type Q486972
type Q12280
action count
action filter_multi_types
action find_reverse
entity Q3458709
relation P609
type Q83620
type Q12280
[ANSWERS]
[[{'concept': 'Q83620'}, {'concept': 'Q12280'}], 'P609', {'concept': 'Q486972'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?c ) ?r WHERE { { ?i property:P609 ?r . ?r rdf:type ontology:Q486972 . ?i rdf:type ontology:Q83620 } UNION { ?i property:P609 ?r . ?r rdf:type ontology:Q486972 . ?i rdf:type ontology:Q12280 } } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?z ) WHERE { ?b property:P609 resource:Q3458709 . { ?b rdf:type ?d . VALUES ( ?d ) { ( ontology:Q83620 ) ( ontology:Q12280 ) } } } } . FILTER ( ?c = ?z ) }
Schurz Dayton Edgemoor Desert Center Winterhaven Cross Village Hawthorne Waterloo Sorrento Valley Fort Thompson Oasis Blue Diamond Ramona San Lucas Carmel Valley Virginia City Wymering Point Loma East Nicolaus Horní Heršpice Rodney Village Wilmington Manor Mecca Stateline Old Town Mexicali Bludenz New Town Eureka Washoe Valley Oasis Gerasdorf bei Wien Potrero Parmelee Boulevard Alsea Rising Sun-Lebanon Descanso Věřňovice Mountain Center Hammarby Sjöstad Ocotillo
Hammarby Sjöstad Mexicali Bludenz
action approx
action union
action find_reverse_tuple_counts
relation terminus location
type human settlement
type thoroughfare
action find_reverse_tuple_counts
relation terminus location
type human settlement
type bridge
action count
action filter_multi_types
action find_reverse
entity Boulevard
relation terminus location
type thoroughfare
type bridge
[[{'concept': 'thoroughfare'}, {'concept': 'bridge'}], 'terminus location', {'concept': 'human settlement'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?c ) ?r WHERE { { ?i property:terminus_location ?r . ?r rdf:type ontology:human_settlement . ?i rdf:type ontology:thoroughfare } UNION { ?i property:terminus_location ?r . ?r rdf:type ontology:human_settlement . ?i rdf:type ontology:bridge } } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?z ) WHERE { ?b property:terminus_location resource:Boulevard . { ?b rdf:type ?d . VALUES ( ?d ) { ( ontology:thoroughfare ) ( ontology:bridge ) } } } } . FILTER ( ?c = ?z ) }
[]
Clarification
Simple Question|Single Entity|Indirect
Q199440
P17
Q15617994
USER
Which administrative territory is that human settlement situated in ?
(Q199440,P17,c(Q15617994))
action filter_type
action find
entity Q199440
relation P17
type Q15617994
['Q199440', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?h WHERE { resource:Q199440 property:P17 ?h . ?h rdf:type ontology:Q15617994 }
Mexicali
action filter_type
action find
entity Mexicali
relation country
type designation for an administrative territorial entity
['Mexicali', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:Mexicali property:country ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Clarification for simple ques.
Q494504
SYSTEM
Did you mean Bludenz ?
Q3126518 Q199440 Q494504
(Q3126518,P17,c(Q15617994)) (Q199440,P17,c(Q15617994)) (Q494504,P17,c(Q15617994))
[ANSWER]
['Q3126518', 'P17', {'concept': 'Q15617994'}] ['Q199440', 'P17', {'concept': 'Q15617994'}] ['Q494504', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?h WHERE { resource:Q199440 property:P17 ?h . ?h rdf:type ontology:Q15617994 }
Hammarby Sjöstad Mexicali Bludenz
Did you mean Bludenz ?
Bludenz
['Hammarby Sjöstad', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Mexicali', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Bludenz', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:Mexicali property:country ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
USER
No, I meant Mexicali. Could you tell me the answer for that?
(Q199440,P17,c(Q15617994))
Q199440
['Q199440', 'P17', {'concept': 'Q15617994'}]
['Mexicali', 'country', {'concept': 'designation for an administrative territorial entity'}]
[]
Q96
SYSTEM
Mexico
Q96
(Q199440,P17,c(Q15617994))
action filter_type
action find
entity Q199440
relation P17
type Q15617994
That human settlement is situated in [ANSWER]
['Q199440', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?h WHERE { resource:Q199440 property:P17 ?h . ?h rdf:type ontology:Q15617994 }
Mexico
That human settlement is situated in Mexico
Mexico
action filter_type
action find
entity Mexicali
relation country
type designation for an administrative territorial entity
['Mexicali', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:Mexicali property:country ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]