Simple Question (Direct)
Simple Question
Q7292264
P551
Q56061
USER
Which administrative territory was the place of residence of Randy Johnson ?
(Q7292264,P551,c(Q56061))
action filter_type
action find
entity Q7292264
relation P551
type Q56061
['Q7292264', 'P551', {'concept': 'Q56061'}]
SELECT DISTINCT ?s WHERE { resource:Q7292264 property:P551 ?s . ?s rdf:type ontology:Q56061 }
Randy Johnson
action filter_type
action find
entity Randy Johnson
relation residence
type administrative territorial entity
['Randy Johnson', 'residence', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { resource:Randy_Johnson property:residence ?s . ?s rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q490737
SYSTEM
Bloomington
Q490737
(Q7292264,P551,c(Q56061))
action filter_type
action find
entity Q7292264
relation P551
type Q56061
Was [ANSWER] was the place of residence of Randy Johnson
['Q7292264', 'P551', {'concept': 'Q56061'}]
SELECT DISTINCT ?s WHERE { resource:Q7292264 property:P551 ?s . ?s rdf:type ontology:Q56061 }
Bloomington
Was Bloomington was the place of residence of Randy Johnson
Bloomington
action filter_type
action find
entity Randy Johnson
relation residence
type administrative territorial entity
['Randy Johnson', 'residence', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { resource:Randy_Johnson property:residence ?s . ?s rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q490737
P47
Q852446
USER
Which US administrative territory has a shared border with that administrative territory ?
(Q490737,P47,c(Q852446))
action filter_type
action find
entity Q490737
relation P47
type Q852446
['Q490737', 'P47', {'concept': 'Q852446'}]
SELECT DISTINCT ?u WHERE { resource:Q490737 property:P47 ?u . ?u rdf:type ontology:Q852446 }
Bloomington
action filter_type
action find
entity Bloomington
relation shares border with
type administrative territorial entity of the United States
['Bloomington', 'shares border with', {'concept': 'administrative territorial entity of the United States'}]
SELECT DISTINCT ?u WHERE { resource:Bloomington property:shares_border_with ?u . ?u rdf:type ontology:administrative_territorial_entity_of_the_United_States }
[]
administrative territorial entity of the United States
Q10835711
SYSTEM
Fort Snelling
Q10835711
(Q490737,P47,c(Q852446))
action filter_type
action find
entity Q490737
relation P47
type Q852446
[ANSWER] has a shared border with that administrative territory
['Q490737', 'P47', {'concept': 'Q852446'}]
SELECT DISTINCT ?u WHERE { resource:Q490737 property:P47 ?u . ?u rdf:type ontology:Q852446 }
Fort Snelling
Fort Snelling has a shared border with that administrative territory
Fort Snelling
action filter_type
action find
entity Bloomington
relation shares border with
type administrative territorial entity of the United States
['Bloomington', 'shares border with', {'concept': 'administrative territorial entity of the United States'}]
SELECT DISTINCT ?u WHERE { resource:Bloomington property:shares_border_with ?u . ?u rdf:type ontology:administrative_territorial_entity_of_the_United_States }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q490737
P47
Q56061
USER
How many administrative territories share the border with Bloomington ?
(Q490737,P47,c(Q56061))
action count
action filter_type
action find
entity Q490737
relation P47
type Q56061
['Q490737', 'P47', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?u ) WHERE { resource:Q490737 property:P47 ?z . ?z rdf:type ontology:Q56061 }
Bloomington
action count
action filter_type
action find
entity Bloomington
relation shares border with
type administrative territorial entity
['Bloomington', 'shares border with', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?u ) WHERE { resource:Bloomington property:shares_border_with ?z . ?z rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
SYSTEM
1
Q988916
(Q490737,P47,c(Q56061))
action count
action filter_type
action find
entity Q490737
relation P47
type Q56061
[ANSWER]
['Q490737', 'P47', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?u ) WHERE { resource:Q490737 property:P47 ?z . ?z rdf:type ontology:Q56061 }
Richfield
1
action count
action filter_type
action find
entity Bloomington
relation shares border with
type administrative territorial entity
['Bloomington', 'shares border with', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?u ) WHERE { resource:Bloomington property:shares_border_with ?z . ?z rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Incomplete count-based ques
Q393298
Q56061
USER
And what about Žabeň?
(Q393298,P47,c(Q56061))
action count
action filter_type
action find
entity Q393298
relation P47
type Q56061
['Q393298', 'P47', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?v ) WHERE { ?h rdf:type ontology:Q56061 . resource:Q393298 property:P47 ?h }
Žabeň
action count
action filter_type
action find
entity Žabeň
relation shares border with
type administrative territorial entity
['Žabeň', 'shares border with', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?v ) WHERE { ?h rdf:type ontology:administrative_territorial_entity . resource:Žabeň property:shares_border_with ?h }
[]
administrative territorial entity
SYSTEM
1
(Q393298,P47,c(Q56061))
action count
action filter_type
action find
entity Q393298
relation P47
type Q56061
[ANSWER]
['Q393298', 'P47', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?v ) WHERE { ?h rdf:type ontology:Q56061 . resource:Q393298 property:P47 ?h }
1
action count
action filter_type
action find
entity Žabeň
relation shares border with
type administrative territorial entity
['Žabeň', 'shares border with', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?v ) WHERE { ?h rdf:type ontology:administrative_territorial_entity . resource:Žabeň property:shares_border_with ?h }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q490737 Q1414016
P47
Q20667921
USER
How many french administrative divisions are bordered by Bloomington or Rouvrois-sur-Meuse ?
(Q490737,P47,c(Q20667921)) (Q1414016,P47,c(Q20667921))
action count
action union
action filter_type
action find
entity Q490737
relation P47
type Q20667921
action filter_type
action find
entity Q1414016
relation P47
type Q20667921
['Q490737', 'P47', {'concept': 'Q20667921'}] ['Q1414016', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?n ) WHERE { { resource:Q490737 property:P47 ?l . ?l rdf:type ontology:Q20667921 } UNION { ?l rdf:type ontology:Q20667921 . resource:Q1414016 property:P47 ?l } }
Bloomington Rouvrois-sur-Meuse
action count
action union
action filter_type
action find
entity Bloomington
relation shares border with
type type of french administrative division
action filter_type
action find
entity Rouvrois-sur-Meuse
relation shares border with
type type of french administrative division
['Bloomington', 'shares border with', {'concept': 'type of french administrative division'}] ['Rouvrois-sur-Meuse', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?n ) WHERE { { resource:Bloomington property:shares_border_with ?l . ?l rdf:type ontology:type_of_french_administrative_division } UNION { ?l rdf:type ontology:type_of_french_administrative_division . resource:Rouvrois-sur-Meuse property:shares_border_with ?l } }
[]
type of french administrative division
SYSTEM
4
Q430643 Q216722 Q1386775 Q1159503
(Q490737,P47,c(Q20667921)) (Q1414016,P47,c(Q20667921))
action count
action union
action filter_type
action find
entity Q490737
relation P47
type Q20667921
action filter_type
action find
entity Q1414016
relation P47
type Q20667921
[ANSWER]
['Q490737', 'P47', {'concept': 'Q20667921'}] ['Q1414016', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?n ) WHERE { { resource:Q490737 property:P47 ?l . ?l rdf:type ontology:Q20667921 } UNION { ?l rdf:type ontology:Q20667921 . resource:Q1414016 property:P47 ?l } }
Bannoncourt Lamorville Maizey Lacroix-sur-Meuse
4
action count
action union
action filter_type
action find
entity Bloomington
relation shares border with
type type of french administrative division
action filter_type
action find
entity Rouvrois-sur-Meuse
relation shares border with
type type of french administrative division
['Bloomington', 'shares border with', {'concept': 'type of french administrative division'}] ['Rouvrois-sur-Meuse', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?n ) WHERE { { resource:Bloomington property:shares_border_with ?l . ?l rdf:type ontology:type_of_french_administrative_division } UNION { ?l rdf:type ontology:type_of_french_administrative_division . resource:Rouvrois-sur-Meuse property:shares_border_with ?l } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q1384
P840
Q852446 Q2342494 Q838948
USER
How many US administrative territories are more number of collectables or works of art set in than New York ?
(c(Q2342494)|c(Q838948),P840,c(Q852446))
action count
action greater
action union
action find_reverse_tuple_counts
relation P840
type Q852446
type Q2342494
action find_reverse_tuple_counts
relation P840
type Q852446
type Q838948
action count
action filter_multi_types
action find_reverse
entity Q1384
relation P840
type Q2342494
type Q838948
[[{'concept': 'Q2342494'}, {'concept': 'Q838948'}], 'P840', {'concept': 'Q852446'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?z ) WHERE { { SELECT DISTINCT ?a ( COUNT ( ?m ) AS ?i ) WHERE { ?m rdf:type ?b . VALUES ( ?b ) { ( ontology:Q2342494 ) ( ontology:Q838948 ) } } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?x ) WHERE { { { ?g rdf:type ontology:Q838948 } UNION { ?g rdf:type ontology:Q2342494 } } . ?g property:P840 resource:Q1384 } } . FILTER ( ?i > ?x ) }
New York
action count
action greater
action union
action find_reverse_tuple_counts
relation narrative location
type administrative territorial entity of the United States
type collectable
action find_reverse_tuple_counts
relation narrative location
type administrative territorial entity of the United States
type work of art
action count
action filter_multi_types
action find_reverse
entity New York
relation narrative location
type collectable
type work of art
[[{'concept': 'collectable'}, {'concept': 'work of art'}], 'narrative location', {'concept': 'administrative territorial entity of the United States'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?z ) WHERE { { SELECT DISTINCT ?a ( COUNT ( ?m ) AS ?i ) WHERE { ?m rdf:type ?b . VALUES ( ?b ) { ( ontology:collectable ) ( ontology:work_of_art ) } } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?x ) WHERE { { { ?g rdf:type ontology:work_of_art } UNION { ?g rdf:type ontology:collectable } } . ?g property:narrative_location resource:New_York } } . FILTER ( ?i > ?x ) }
[]
administrative territorial entity of the United States collectable work of art
SYSTEM
4
Q1439 Q99 Q812 Q1408
(c(Q2342494)|c(Q838948),P840,c(Q852446))
action count
action greater
action union
action find_reverse_tuple_counts
relation P840
type Q852446
type Q2342494
action find_reverse_tuple_counts
relation P840
type Q852446
type Q838948
action count
action filter_multi_types
action find_reverse
entity Q1384
relation P840
type Q2342494
type Q838948
[ANSWER]
[[{'concept': 'Q2342494'}, {'concept': 'Q838948'}], 'P840', {'concept': 'Q852446'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?z ) WHERE { { SELECT DISTINCT ?a ( COUNT ( ?m ) AS ?i ) WHERE { ?m rdf:type ?b . VALUES ( ?b ) { ( ontology:Q2342494 ) ( ontology:Q838948 ) } } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?x ) WHERE { { { ?g rdf:type ontology:Q838948 } UNION { ?g rdf:type ontology:Q2342494 } } . ?g property:P840 resource:Q1384 } } . FILTER ( ?i > ?x ) }
Texas California Florida New Jersey
4
action count
action greater
action union
action find_reverse_tuple_counts
relation narrative location
type administrative territorial entity of the United States
type collectable
action find_reverse_tuple_counts
relation narrative location
type administrative territorial entity of the United States
type work of art
action count
action filter_multi_types
action find_reverse
entity New York
relation narrative location
type collectable
type work of art
[[{'concept': 'collectable'}, {'concept': 'work of art'}], 'narrative location', {'concept': 'administrative territorial entity of the United States'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?z ) WHERE { { SELECT DISTINCT ?a ( COUNT ( ?m ) AS ?i ) WHERE { ?m rdf:type ?b . VALUES ( ?b ) { ( ontology:collectable ) ( ontology:work_of_art ) } } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?x ) WHERE { { { ?g rdf:type ontology:work_of_art } UNION { ?g rdf:type ontology:collectable } } . ?g property:narrative_location resource:New_York } } . FILTER ( ?i > ?x ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q1558
P840
Q852446 Q2342494 Q838948
USER
And what about Kansas?
(c(Q2342494)|c(Q838948),P840,c(Q852446))
action count
action greater
action union
action find_reverse_tuple_counts
relation P840
type Q852446
type Q2342494
action find_reverse_tuple_counts
relation P840
type Q852446
type Q838948
action count
action filter_multi_types
action find_reverse
entity Q1558
relation P840
type Q2342494
type Q838948
[[{'concept': 'Q2342494'}, {'concept': 'Q838948'}], 'P840', {'concept': 'Q852446'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?l ) WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?z ) ?b WHERE { { ?b rdf:type ontology:Q852446 . ?i rdf:type ontology:Q2342494 . ?i property:P840 ?b } UNION { ?i property:P840 ?b . ?b rdf:type ontology:Q852446 . ?i rdf:type ontology:Q838948 } } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?m ) WHERE { ?g property:P840 resource:Q1558 . { { ?g rdf:type ontology:Q2342494 } UNION { ?g rdf:type ontology:Q838948 } } } } . FILTER ( ?z > ?m ) }
Kansas
action count
action greater
action union
action find_reverse_tuple_counts
relation narrative location
type administrative territorial entity of the United States
type collectable
action find_reverse_tuple_counts
relation narrative location
type administrative territorial entity of the United States
type work of art
action count
action filter_multi_types
action find_reverse
entity Kansas
relation narrative location
type collectable
type work of art
[[{'concept': 'collectable'}, {'concept': 'work of art'}], 'narrative location', {'concept': 'administrative territorial entity of the United States'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?l ) WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?z ) ?b WHERE { { ?b rdf:type ontology:administrative_territorial_entity_of_the_United_States . ?i rdf:type ontology:collectable . ?i property:narrative_location ?b } UNION { ?i property:narrative_location ?b . ?b rdf:type ontology:administrative_territorial_entity_of_the_United_States . ?i rdf:type ontology:work_of_art } } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?m ) WHERE { ?g property:narrative_location resource:Kansas . { { ?g rdf:type ontology:collectable } UNION { ?g rdf:type ontology:work_of_art } } } } . FILTER ( ?z > ?m ) }
[]
administrative territorial entity of the United States collectable work of art
SYSTEM
18
Q829 Q724 Q1537 Q1439 Q1384 Q99 Q1522 Q824 Q1223 Q1166 Q816 Q812 Q1509 Q1261 Q779 Q1408 Q173 Q1553
(c(Q2342494)|c(Q838948),P840,c(Q852446))
action count
action greater
action union
action find_reverse_tuple_counts
relation P840
type Q852446
type Q2342494
action find_reverse_tuple_counts
relation P840
type Q852446
type Q838948
action count
action filter_multi_types
action find_reverse
entity Q1558
relation P840
type Q2342494
type Q838948
[ANSWER]
[[{'concept': 'Q2342494'}, {'concept': 'Q838948'}], 'P840', {'concept': 'Q852446'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?l ) WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?z ) ?b WHERE { { ?b rdf:type ontology:Q852446 . ?i rdf:type ontology:Q2342494 . ?i property:P840 ?b } UNION { ?i property:P840 ?b . ?b rdf:type ontology:Q852446 . ?i rdf:type ontology:Q838948 } } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?m ) WHERE { ?g property:P840 resource:Q1558 . { { ?g rdf:type ontology:Q2342494 } UNION { ?g rdf:type ontology:Q838948 } } } } . FILTER ( ?z > ?m ) }
Utah Maine Wisconsin Texas New York California New Mexico Oregon Washington Michigan Arizona Florida Tennessee Colorado Connecticut New Jersey Alabama Nebraska
18
action count
action greater
action union
action find_reverse_tuple_counts
relation narrative location
type administrative territorial entity of the United States
type collectable
action find_reverse_tuple_counts
relation narrative location
type administrative territorial entity of the United States
type work of art
action count
action filter_multi_types
action find_reverse
entity Kansas
relation narrative location
type collectable
type work of art
[[{'concept': 'collectable'}, {'concept': 'work of art'}], 'narrative location', {'concept': 'administrative territorial entity of the United States'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?l ) WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?z ) ?b WHERE { { ?b rdf:type ontology:administrative_territorial_entity_of_the_United_States . ?i rdf:type ontology:collectable . ?i property:narrative_location ?b } UNION { ?i property:narrative_location ?b . ?b rdf:type ontology:administrative_territorial_entity_of_the_United_States . ?i rdf:type ontology:work_of_art } } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?m ) WHERE { ?g property:narrative_location resource:Kansas . { { ?g rdf:type ontology:collectable } UNION { ?g rdf:type ontology:work_of_art } } } } . FILTER ( ?z > ?m ) }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q7609862
Q56061
USER
And what about Stephen M. Studdert?
(Q7609862,P108,c(Q56061))
action filter_type
action find
entity Q7609862
relation P108
type Q56061
['Q7609862', 'P108', {'concept': 'Q56061'}]
SELECT DISTINCT ?s WHERE { resource:Q7609862 property:P108 ?s . ?s rdf:type ontology:Q56061 }
Stephen M. Studdert
action filter_type
action find
entity Stephen M. Studdert
relation employer
type administrative territorial entity
['Stephen M. Studdert', 'employer', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { resource:Stephen_M._Studdert property:employer ?s . ?s rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q483219 Q482976
SYSTEM
Bountiful, Brigham City
Q483219 Q482976
(Q7609862,P108,c(Q56061))
action filter_type
action find
entity Q7609862
relation P108
type Q56061
[ANSWERS]
['Q7609862', 'P108', {'concept': 'Q56061'}]
SELECT DISTINCT ?s WHERE { resource:Q7609862 property:P108 ?s . ?s rdf:type ontology:Q56061 }
Bountiful Brigham City
Bountiful Brigham City
action filter_type
action find
entity Stephen M. Studdert
relation employer
type administrative territorial entity
['Stephen M. Studdert', 'employer', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { resource:Stephen_M._Studdert property:employer ?s . ?s rdf:type ontology:administrative_territorial_entity }
[]