Simple Question (Direct)
Simple Question
Q2275252
P1412
Q34770
USER
Which language is José María Sobral capable of writing ?
(Q2275252,P1412,c(Q34770))
action filter_type
action find
entity Q2275252
relation P1412
type Q34770
['Q2275252', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?o WHERE { resource:Q2275252 property:P1412 ?o . ?o rdf:type ontology:Q34770 }
José María Sobral
action filter_type
action find
entity José María Sobral
relation languages spoken, written or signed
type language
['José María Sobral', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?o WHERE { resource:José_María_Sobral property:languages_spoken,_written_or_signed ?o . ?o rdf:type ontology:language }
[]
language
Q1321
SYSTEM
Spanish
Q1321
(Q2275252,P1412,c(Q34770))
action filter_type
action find
entity Q2275252
relation P1412
type Q34770
[ANSWER] is José María Sobral capable of writing
['Q2275252', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?o WHERE { resource:Q2275252 property:P1412 ?o . ?o rdf:type ontology:Q34770 }
Spanish
Spanish is José María Sobral capable of writing
Spanish
action filter_type
action find
entity José María Sobral
relation languages spoken, written or signed
type language
['José María Sobral', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?o WHERE { resource:José_María_Sobral property:languages_spoken,_written_or_signed ?o . ?o rdf:type ontology:language }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2275252
P20
Q515
USER
Where did the demise of José María Sobral occur ?
(Q2275252,P20,c(Q515))
action filter_type
action find
entity Q2275252
relation P20
type Q515
['Q2275252', 'P20', {'concept': 'Q515'}]
SELECT DISTINCT ?v WHERE { resource:Q2275252 property:P20 ?v . ?v rdf:type ontology:Q515 }
José María Sobral
action filter_type
action find
entity José María Sobral
relation place of death
type city
['José María Sobral', 'place of death', {'concept': 'city'}]
SELECT DISTINCT ?v WHERE { resource:José_María_Sobral property:place_of_death ?v . ?v rdf:type ontology:city }
[]
city
Q1486
SYSTEM
Buenos Aires
Q1486
(Q2275252,P20,c(Q515))
action filter_type
action find
entity Q2275252
relation P20
type Q515
The demise of José María Sobral occurred in [ANSWER]
['Q2275252', 'P20', {'concept': 'Q515'}]
SELECT DISTINCT ?v WHERE { resource:Q2275252 property:P20 ?v . ?v rdf:type ontology:Q515 }
Buenos Aires
The demise of José María Sobral occurred in Buenos Aires
Buenos Aires
action filter_type
action find
entity José María Sobral
relation place of death
type city
['José María Sobral', 'place of death', {'concept': 'city'}]
SELECT DISTINCT ?v WHERE { resource:José_María_Sobral property:place_of_death ?v . ?v rdf:type ontology:city }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Indirect
P163
Q14660 Q17335294 Q515
USER
How many cities have flag named around the same number of flags or coats of arms as that city ?
(c(Q515),P163,c(Q14660)|c(Q17335294))
action count
action approx
action union
action find_tuple_counts
relation P163
type Q515
type Q14660
action find_tuple_counts
relation P163
type Q515
type Q17335294
action count
action filter_multi_types
action find
entity Q1486
relation P163
type Q14660
type Q17335294
[{'concept': 'Q515'}, 'P163', [{'concept': 'Q14660'}, {'concept': 'Q17335294'}]]
SELECT DISTINCT ( COUNT ( ?z ) AS ?v ) WHERE { { SELECT DISTINCT ?z ( COUNT ( ?c ) AS ?l ) WHERE { VALUES ( ?d ) { ( ontology:Q14660 ) ( ontology:Q17335294 ) } . ?c rdf:type ?d } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?u ) WHERE { { ?w rdf:type ?j . VALUES ( ?j ) { ( ontology:Q17335294 ) ( ontology:Q14660 ) } } . resource:Q1486 property:P163 ?w } } . FILTER ( ?l = ?u ) }
action count
action approx
action union
action find_tuple_counts
relation flag
type city
type flag
action find_tuple_counts
relation flag
type city
type flag or coat of arms
action count
action filter_multi_types
action find
entity Buenos Aires
relation flag
type flag
type flag or coat of arms
[{'concept': 'city'}, 'flag', [{'concept': 'flag'}, {'concept': 'flag or coat of arms'}]]
SELECT DISTINCT ( COUNT ( ?z ) AS ?v ) WHERE { { SELECT DISTINCT ?z ( COUNT ( ?c ) AS ?l ) WHERE { VALUES ( ?d ) { ( ontology:flag ) ( ontology:flag_or_coat_of_arms ) } . ?c rdf:type ?d } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?u ) WHERE { { ?w rdf:type ?j . VALUES ( ?j ) { ( ontology:flag_or_coat_of_arms ) ( ontology:flag ) } } . resource:Buenos_Aires property:flag ?w } } . FILTER ( ?l = ?u ) }
[]
flag flag or coat of arms city
SYSTEM
4
Q841296 Q5540 Q494777 Q2337
(c(Q515),P163,c(Q14660)|c(Q17335294))
action count
action approx
action union
action find_tuple_counts
relation P163
type Q515
type Q14660
action find_tuple_counts
relation P163
type Q515
type Q17335294
action count
action filter_multi_types
action find
entity Q1486
relation P163
type Q14660
type Q17335294
[ANSWER]
[{'concept': 'Q515'}, 'P163', [{'concept': 'Q14660'}, {'concept': 'Q17335294'}]]
SELECT DISTINCT ( COUNT ( ?z ) AS ?v ) WHERE { { SELECT DISTINCT ?z ( COUNT ( ?c ) AS ?l ) WHERE { VALUES ( ?d ) { ( ontology:Q14660 ) ( ontology:Q17335294 ) } . ?c rdf:type ?d } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?u ) WHERE { { ?w rdf:type ?j . VALUES ( ?j ) { ( ontology:Q17335294 ) ( ontology:Q14660 ) } } . resource:Q1486 property:P163 ?w } } . FILTER ( ?l = ?u ) }
Příbram Penza Alcoi Smolensk
4
action count
action approx
action union
action find_tuple_counts
relation flag
type city
type flag
action find_tuple_counts
relation flag
type city
type flag or coat of arms
action count
action filter_multi_types
action find
entity Buenos Aires
relation flag
type flag
type flag or coat of arms
[{'concept': 'city'}, 'flag', [{'concept': 'flag'}, {'concept': 'flag or coat of arms'}]]
SELECT DISTINCT ( COUNT ( ?z ) AS ?v ) WHERE { { SELECT DISTINCT ?z ( COUNT ( ?c ) AS ?l ) WHERE { VALUES ( ?d ) { ( ontology:flag ) ( ontology:flag_or_coat_of_arms ) } . ?c rdf:type ?d } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?u ) WHERE { { ?w rdf:type ?j . VALUES ( ?j ) { ( ontology:flag_or_coat_of_arms ) ( ontology:flag ) } } . resource:Buenos_Aires property:flag ?w } } . FILTER ( ?l = ?u ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1486
P127
Q811430
USER
Which construction is owned by Buenos Aires ?
(c(Q811430),P127,Q1486)
action filter_type
action find_reverse
entity Q1486
relation P127
type Q811430
[{'concept': 'Q811430'}, 'P127', 'Q1486']
SELECT DISTINCT ?w WHERE { ?w property:P127 resource:Q1486 . ?w rdf:type ontology:Q811430 }
Buenos Aires
action filter_type
action find_reverse
entity Buenos Aires
relation owned by
type construction
[{'concept': 'construction'}, 'owned by', 'Buenos Aires']
SELECT DISTINCT ?w WHERE { ?w property:owned_by resource:Buenos_Aires . ?w rdf:type ontology:construction }
[]
construction
Q7691915
SYSTEM
Teatro General San Martín
Q7691915
(c(Q811430),P127,Q1486)
action filter_type
action find_reverse
entity Q1486
relation P127
type Q811430
[ANSWER] is owned by Buenos Aires
[{'concept': 'Q811430'}, 'P127', 'Q1486']
SELECT DISTINCT ?w WHERE { ?w property:P127 resource:Q1486 . ?w rdf:type ontology:Q811430 }
Teatro General San Martín
Teatro General San Martín is owned by Buenos Aires
Teatro General San Martín
action filter_type
action find_reverse
entity Buenos Aires
relation owned by
type construction
[{'concept': 'construction'}, 'owned by', 'Buenos Aires']
SELECT DISTINCT ?w WHERE { ?w property:owned_by resource:Buenos_Aires . ?w rdf:type ontology:construction }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1486
P6
Q502895
USER
Which person has Buenos Aires as its head of government ?
(Q1486,P6,c(Q502895))
action filter_type
action find
entity Q1486
relation P6
type Q502895
['Q1486', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?k WHERE { resource:Q1486 property:P6 ?k . ?k rdf:type ontology:Q502895 }
Buenos Aires
action filter_type
action find
entity Buenos Aires
relation head of government
type common name
['Buenos Aires', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?k WHERE { resource:Buenos_Aires property:head_of_government ?k . ?k rdf:type ontology:common_name }
[]
common name
Q2843714
SYSTEM
Horacio Rodríguez Larreta
Q2843714
(Q1486,P6,c(Q502895))
action filter_type
action find
entity Q1486
relation P6
type Q502895
[ANSWER] has Buenos Aires as its head of government
['Q1486', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?k WHERE { resource:Q1486 property:P6 ?k . ?k rdf:type ontology:Q502895 }
Horacio Rodríguez Larreta
Horacio Rodríguez Larreta has Buenos Aires as its head of government
Horacio Rodríguez Larreta
action filter_type
action find
entity Buenos Aires
relation head of government
type common name
['Buenos Aires', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?k WHERE { resource:Buenos_Aires property:head_of_government ?k . ?k rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1486
P190
Q56061
USER
Which administrative territories are twin cities of Buenos Aires ?
(Q1486,P190,c(Q56061))
action filter_type
action find
entity Q1486
relation P190
type Q56061
['Q1486', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q56061 . resource:Q1486 property:P190 ?a }
Buenos Aires
action filter_type
action find
entity Buenos Aires
relation sister city
type administrative territorial entity
['Buenos Aires', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:administrative_territorial_entity . resource:Buenos_Aires property:sister_city ?a }
[]
administrative territorial entity
Q1085 Q649 Q2807
SYSTEM
Prague, Moscow, Madrid
Q8678 Q3766 Q628 Q649 Q8745 Q15682 Q1449 Q2807 Q34820 Q25395 Q15695 Q1524 Q2634 Q1489 Q1218 Q71 Q8692 Q518431 Q3711 Q2868 Q33935 Q2656 Q84 Q85 Q34370 Q7880 Q13678 Q40269 Q406 Q1930 Q10400 Q174 Q244324 Q270 Q8717 Q490 Q14314 Q597 Q956 Q1335 Q64 Q1492 Q3820 Q5465 Q1085 Q1897
(Q1486,P190,c(Q56061))
action filter_type
action find
entity Q1486
relation P190
type Q56061
[ANSWERS] are twin cities of Buenos Aires
['Q1486', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q56061 . resource:Q1486 property:P190 ?a }
Rio de Janeiro Damascus Bergamo Moscow Vigo Cádiz Genoa Madrid Santo Domingo Newark Salamanca Athens Naples Mexico City Jerusalem Geneva Bilbao Chimbote Belgrade Lima Tel Aviv Palermo London Cairo Rotterdam Toulouse Agrigento Porto Alegre Istanbul Ottawa Almería São Paulo Guadix Warsaw Seville Milan Santiago de Compostela Lisbon Beijing Montevideo Berlin Barcelona Beirut Cape Town Prague Cagliari
Prague, Moscow and Madrid are twin cities of Buenos Aires
Prague Moscow Madrid
action filter_type
action find
entity Buenos Aires
relation sister city
type administrative territorial entity
['Buenos Aires', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:administrative_territorial_entity . resource:Buenos_Aires property:sister_city ?a }
[]
Simple Question (Ellipsis)
Incomplete|object parent is changed, subject and predicate remain same
Q1486
Q852446
USER
And which US administrative territory?
(Q1486,P190,c(Q852446))
action filter_type
action find
entity Q1486
relation P190
type Q852446
['Q1486', 'P190', {'concept': 'Q852446'}]
SELECT DISTINCT ?i WHERE { resource:Q1486 property:P190 ?i . ?i rdf:type ontology:Q852446 }
Buenos Aires
action filter_type
action find
entity Buenos Aires
relation sister city
type administrative territorial entity of the United States
['Buenos Aires', 'sister city', {'concept': 'administrative territorial entity of the United States'}]
SELECT DISTINCT ?i WHERE { resource:Buenos_Aires property:sister_city ?i . ?i rdf:type ontology:administrative_territorial_entity_of_the_United_States }
[]
administrative territorial entity of the United States
Q1397
SYSTEM
Ohio
Q1397
(Q1486,P190,c(Q852446))
action filter_type
action find
entity Q1486
relation P190
type Q852446
[ANSWER]
['Q1486', 'P190', {'concept': 'Q852446'}]
SELECT DISTINCT ?i WHERE { resource:Q1486 property:P190 ?i . ?i rdf:type ontology:Q852446 }
Ohio
Ohio
action filter_type
action find
entity Buenos Aires
relation sister city
type administrative territorial entity of the United States
['Buenos Aires', 'sister city', {'concept': 'administrative territorial entity of the United States'}]
SELECT DISTINCT ?i WHERE { resource:Buenos_Aires property:sister_city ?i . ?i rdf:type ontology:administrative_territorial_entity_of_the_United_States }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q1397 Q146317 Q845794
P190
Q515
USER
Is that US administrative territory twin town of Veszprém and Takashima ?
(Q1397,P190,Q146317) (Q1397,P190,Q845794)
action is_in
entity Q1397
action intersection
action find_reverse
entity Q146317
relation P190
action find_reverse
entity Q845794
relation P190
['Q1397', 'P190', 'Q146317'] ['Q1397', 'P190', 'Q845794']
ASK WHERE { resource:Q1397 property:P190 resource:Q146317 . resource:Q1397 property:P190 resource:Q845794 }
Ohio Veszprém Takashima
action is_in
entity Ohio
action intersection
action find_reverse
entity Veszprém
relation sister city
action find_reverse
entity Takashima
relation sister city
['Ohio', 'sister city', 'Veszprém'] ['Ohio', 'sister city', 'Takashima']
ASK WHERE { resource:Ohio property:sister_city resource:Veszprém . resource:Ohio property:sister_city resource:Takashima }
[]
city
SYSTEM
NO
(Q1397,P190,Q146317) (Q1397,P190,Q845794)
action is_in
entity Q1397
action intersection
action find_reverse
entity Q146317
relation P190
action find_reverse
entity Q845794
relation P190
[ANSWER]
['Q1397', 'P190', 'Q146317'] ['Q1397', 'P190', 'Q845794']
ASK WHERE { resource:Q1397 property:P190 resource:Q146317 . resource:Q1397 property:P190 resource:Q845794 }
No
action is_in
entity Ohio
action intersection
action find_reverse
entity Veszprém
relation sister city
action find_reverse
entity Takashima
relation sister city
['Ohio', 'sister city', 'Veszprém'] ['Ohio', 'sister city', 'Takashima']
ASK WHERE { resource:Ohio property:sister_city resource:Veszprém . resource:Ohio property:sister_city resource:Takashima }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q1486 Q8684 Q275990
P190
Q515
USER
Is Buenos Aires sister town of Seoul and Răcari ?
(Q1486,P190,Q8684) (Q1486,P190,Q275990)
action is_in
entity Q1486
action intersection
action find_reverse
entity Q8684
relation P190
action find_reverse
entity Q275990
relation P190
['Q1486', 'P190', 'Q8684'] ['Q1486', 'P190', 'Q275990']
ASK WHERE { resource:Q1486 property:P190 resource:Q8684 . resource:Q1486 property:P190 resource:Q275990 }
Buenos Aires Seoul Răcari
action is_in
entity Buenos Aires
action intersection
action find_reverse
entity Seoul
relation sister city
action find_reverse
entity Răcari
relation sister city
['Buenos Aires', 'sister city', 'Seoul'] ['Buenos Aires', 'sister city', 'Răcari']
ASK WHERE { resource:Buenos_Aires property:sister_city resource:Seoul . resource:Buenos_Aires property:sister_city resource:Răcari }
[]
city
SYSTEM
YES and NO respectively
(Q1486,P190,Q8684) (Q1486,P190,Q275990)
action is_in
entity Q1486
action intersection
action find_reverse
entity Q8684
relation P190
action find_reverse
entity Q275990
relation P190
[ANSWER]
['Q1486', 'P190', 'Q8684'] ['Q1486', 'P190', 'Q275990']
ASK WHERE { resource:Q1486 property:P190 resource:Q8684 . resource:Q1486 property:P190 resource:Q275990 }
YES and NO respectively
action is_in
entity Buenos Aires
action intersection
action find_reverse
entity Seoul
relation sister city
action find_reverse
entity Răcari
relation sister city
['Buenos Aires', 'sister city', 'Seoul'] ['Buenos Aires', 'sister city', 'Răcari']
ASK WHERE { resource:Buenos_Aires property:sister_city resource:Seoul . resource:Buenos_Aires property:sister_city resource:Răcari }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q2807
P17
Q7275 Q15617994
USER
How many states and administrative territories are Madrid a part of ?
(Q2807,P17,c(Q7275)) (Q2807,P17,c(Q15617994))
action count
action union
action filter_type
action find
entity Q2807
relation P17
type Q7275
action filter_type
action find
entity Q2807
relation P17
type Q15617994
['Q2807', 'P17', {'concept': 'Q7275'}] ['Q2807', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?e ) WHERE { VALUES ( ?t ) { ( ontology:Q7275 ) ( ontology:Q15617994 ) } . ?s rdf:type ?t }
Madrid
action count
action union
action filter_type
action find
entity Madrid
relation country
type state
action filter_type
action find
entity Madrid
relation country
type designation for an administrative territorial entity
['Madrid', 'country', {'concept': 'state'}] ['Madrid', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?e ) WHERE { VALUES ( ?t ) { ( ontology:state ) ( ontology:designation_for_an_administrative_territorial_entity ) } . ?s rdf:type ?t }
[]
state designation for an administrative territorial entity
SYSTEM
2 states and 1 administrative territories
Q29 Q179293 Q217196
(Q2807,P17,c(Q7275)) (Q2807,P17,c(Q15617994))
action count
action union
action filter_type
action find
entity Q2807
relation P17
type Q7275
action filter_type
action find
entity Q2807
relation P17
type Q15617994
[ANSWER]
['Q2807', 'P17', {'concept': 'Q7275'}] ['Q2807', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?e ) WHERE { VALUES ( ?t ) { ( ontology:Q7275 ) ( ontology:Q15617994 ) } . ?s rdf:type ?t }
Spain Kingdom of Castile Crown of Castile
2 states and 1 administrative territories
action count
action union
action filter_type
action find
entity Madrid
relation country
type state
action filter_type
action find
entity Madrid
relation country
type designation for an administrative territorial entity
['Madrid', 'country', {'concept': 'state'}] ['Madrid', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?e ) WHERE { VALUES ( ?t ) { ( ontology:state ) ( ontology:designation_for_an_administrative_territorial_entity ) } . ?s rdf:type ?t }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P194
Q11204 Q852446
USER
How many legislatures are the legislative bodies for approximately 1 US administrative territory ?
(c(Q852446),P194,c(Q11204))
action count
action approx
action find_reverse_tuple_counts
relation P194
type Q11204
type Q852446
value 1
[{'concept': 'Q852446'}, 'P194', {'concept': 'Q11204'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?h ) WHERE { { SELECT DISTINCT ?r ( COUNT ( ?s ) AS ?d ) WHERE { ?r rdf:type ontology:Q11204 . ?s rdf:type ontology:Q852446 . ?s property:P194 ?r } GROUP BY ?r } . FILTER ( ?d = 1 ) }
action count
action approx
action find_reverse_tuple_counts
relation legislative body
type legislature
type administrative territorial entity of the United States
value 1
[{'concept': 'administrative territorial entity of the United States'}, 'legislative body', {'concept': 'legislature'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?h ) WHERE { { SELECT DISTINCT ?r ( COUNT ( ?s ) AS ?d ) WHERE { ?r rdf:type ontology:legislature . ?s rdf:type ontology:administrative_territorial_entity_of_the_United_States . ?s property:legislative_body ?r } GROUP BY ?r } . FILTER ( ?d = 1 ) }
[]
legislature administrative territorial entity of the United States
SYSTEM
50
Q6064424 Q2304409 Q2867079 Q3556484 Q7700086 Q3084210 Q7101257 Q2653964 Q6879217 Q7320919 Q530970 Q980284 Q2867077 Q5684411 Q7010195 Q10566065 Q2747168 Q3634937 Q7972258 Q5253303 Q7008154 Q1437547 Q1453540 Q3270273 Q3270271 Q3270276 Q3270274 Q7080820 Q7986861 Q2747172 Q5161534 Q5148810 Q3270268 Q3270265 Q583952 Q7055026 Q2384499 Q6879566 Q4256974 Q996610 Q719894 Q10566263 Q6689290 Q2867076 Q6392265 Q1117432 Q3103766 Q3555619 Q3567567 Q2749841
(c(Q852446),P194,c(Q11204))
action count
action approx
action find_reverse_tuple_counts
relation P194
type Q11204
type Q852446
value 1
[ANSWER]
[{'concept': 'Q852446'}, 'P194', {'concept': 'Q11204'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?h ) WHERE { { SELECT DISTINCT ?r ( COUNT ( ?s ) AS ?d ) WHERE { ?r rdf:type ontology:Q11204 . ?s rdf:type ontology:Q852446 . ?s property:P194 ?r } GROUP BY ?r } . FILTER ( ?d = 1 ) }
Iowa General Assembly South Dakota Legislature New Jersey Legislature Florida Legislature Tennessee General Assembly California State Legislature Oregon Legislative Assembly Texas Legislature Mississippi Legislature Rhode Island General Assembly Virginia General Assembly South Carolina General Assembly Pennsylvania General Assembly Hawaii State Legislature New Mexico Legislature Maryland General Assembly Arkansas General Assembly Indiana General Assembly Washington State Legislature Delaware General Assembly New Hampshire General Court Illinois General Assembly Massachusetts General Court Michigan Legislature Kansas Legislature Wyoming Legislature Wisconsin Legislature Ohio General Assembly West Virginia Legislature Arizona State Legislature Connecticut General Assembly Colorado General Assembly New York State Legislature Alabama Legislature Oklahoma Legislature North Dakota Legislative Assembly Utah State Legislature Missouri General Assembly Idaho Legislature Nebraska Legislature Alaska Legislature North Carolina General Assembly Louisiana State Legislature Vermont General Assembly Kentucky General Assembly Minnesota Legislature Georgia General Assembly Nevada Legislature Montana Legislature Maine Legislature
50
action count
action approx
action find_reverse_tuple_counts
relation legislative body
type legislature
type administrative territorial entity of the United States
value 1
[{'concept': 'administrative territorial entity of the United States'}, 'legislative body', {'concept': 'legislature'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?h ) WHERE { { SELECT DISTINCT ?r ( COUNT ( ?s ) AS ?d ) WHERE { ?r rdf:type ontology:legislature . ?s rdf:type ontology:administrative_territorial_entity_of_the_United_States . ?s property:legislative_body ?r } GROUP BY ?r } . FILTER ( ?d = 1 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1397
P47
Q852446
USER
Which US administrative territories have an adjacent border with Ohio ?
(c(Q852446),P47,Q1397)
action filter_type
action find
entity Q1397
relation P47
type Q852446
[{'concept': 'Q852446'}, 'P47', 'Q1397']
SELECT DISTINCT ?b WHERE { resource:Q1397 property:P47 ?b . ?b rdf:type ontology:Q852446 }
Ohio
action filter_type
action find
entity Ohio
relation shares border with
type administrative territorial entity of the United States
[{'concept': 'administrative territorial entity of the United States'}, 'shares border with', 'Ohio']
SELECT DISTINCT ?b WHERE { resource:Ohio property:shares_border_with ?b . ?b rdf:type ontology:administrative_territorial_entity_of_the_United_States }
[]
administrative territorial entity of the United States
Q1166 Q1400 Q1415
SYSTEM
Michigan, Pennsylvania, Indiana
Q1166 Q1371 Q1415 Q1603 Q1400
(c(Q852446),P47,Q1397)
action filter_type
action find
entity Q1397
relation P47
type Q852446
[ANSWERS] have an adjacent border with Ohio
[{'concept': 'Q852446'}, 'P47', 'Q1397']
SELECT DISTINCT ?b WHERE { resource:Q1397 property:P47 ?b . ?b rdf:type ontology:Q852446 }
Michigan West Virginia Indiana Kentucky Pennsylvania
Michigan, Pennsylvania and Indiana have an adjacent border with Ohio
Michigan Pennsylvania Indiana
action filter_type
action find
entity Ohio
relation shares border with
type administrative territorial entity of the United States
[{'concept': 'administrative territorial entity of the United States'}, 'shares border with', 'Ohio']
SELECT DISTINCT ?b WHERE { resource:Ohio property:shares_border_with ?b . ?b rdf:type ontology:administrative_territorial_entity_of_the_United_States }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q1166 Q1400 Q1415
P206
Q337567
USER
Which still waterss are situated nearby those US administrative territories ?
(Q1166,P206,c(Q337567)) (Q1400,P206,c(Q337567)) (Q1415,P206,c(Q337567))
action filter_type
action find
entity prev_answer
relation P206
type Q337567
['Q1166', 'P206', {'concept': 'Q337567'}] ['Q1400', 'P206', {'concept': 'Q337567'}] ['Q1415', 'P206', {'concept': 'Q337567'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q337567 . ?y property:P206 ?f . VALUES ( ?y ) { ( resource:Q1166 ) ( resource:Q1371 ) ( resource:Q1415 ) } }
Michigan Pennsylvania Indiana
action filter_type
action find
entity prev_answer
relation located next to body of water
type still waters
['Michigan', 'located next to body of water', {'concept': 'still waters'}] ['Pennsylvania', 'located next to body of water', {'concept': 'still waters'}] ['Indiana', 'located next to body of water', {'concept': 'still waters'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:still_waters . ?y property:located_next_to_body_of_water ?f . VALUES ( ?y ) { ( resource:Michigan ) ( resource:West_Virginia ) ( resource:Indiana ) } }
[]
still waters
Q5492 Q5492 Q1383
SYSTEM
Lake Huron for 3rd, Lake Erie for 1st, 2nd
Q1383 Q1169 Q5492 Q5492 Q1169
(Q1166,P206,c(Q337567)) (Q1400,P206,c(Q337567)) (Q1415,P206,c(Q337567))
action filter_type
action find
entity prev_answer
relation P206
type Q337567
[ANSWERS]
['Q1166', 'P206', {'concept': 'Q337567'}] ['Q1400', 'P206', {'concept': 'Q337567'}] ['Q1415', 'P206', {'concept': 'Q337567'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q337567 . ?y property:P206 ?f . VALUES ( ?y ) { ( resource:Q1166 ) ( resource:Q1371 ) ( resource:Q1415 ) } }
Lake Huron Lake Michigan Lake Erie Lake Erie Lake Michigan
Lake Erie, Lake Erie and Lake Huron are situated nearby those US administrative territories
Lake Erie Lake Erie Lake Huron
action filter_type
action find
entity prev_answer
relation located next to body of water
type still waters
['Michigan', 'located next to body of water', {'concept': 'still waters'}] ['Pennsylvania', 'located next to body of water', {'concept': 'still waters'}] ['Indiana', 'located next to body of water', {'concept': 'still waters'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:still_waters . ?y property:located_next_to_body_of_water ?f . VALUES ( ?y ) { ( resource:Michigan ) ( resource:West_Virginia ) ( resource:Indiana ) } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q5492
P201
Q355304
USER
Which watercourse is the outflow of that still waters ?
(Q5492,P201,c(Q355304))
action filter_type
action find
entity Q5492
relation P201
type Q355304
['Q5492', 'P201', {'concept': 'Q355304'}]
SELECT DISTINCT ?a WHERE { resource:Q5492 property:P201 ?a . ?a rdf:type ontology:Q355304 }
Lake Erie
action filter_type
action find
entity Lake Erie
relation lake outflow
type watercourse
['Lake Erie', 'lake outflow', {'concept': 'watercourse'}]
SELECT DISTINCT ?a WHERE { resource:Lake_Erie property:lake_outflow ?a . ?a rdf:type ontology:watercourse }
[]
watercourse
Clarification for simple ques.
Q5492
SYSTEM
Did you mean Lake Erie ?
Q5492 Q5492 Q1383
(Q5492,P201,c(Q355304)) (Q5492,P201,c(Q355304)) (Q1383,P201,c(Q355304))
[ANSWER]
['Q5492', 'P201', {'concept': 'Q355304'}] ['Q5492', 'P201', {'concept': 'Q355304'}] ['Q1383', 'P201', {'concept': 'Q355304'}]
SELECT DISTINCT ?a WHERE { resource:Q5492 property:P201 ?a . ?a rdf:type ontology:Q355304 }
Lake Erie Lake Erie Lake Huron
Did you mean Lake Erie ?
Lake Erie
['Lake Erie', 'lake outflow', {'concept': 'watercourse'}] ['Lake Erie', 'lake outflow', {'concept': 'watercourse'}] ['Lake Huron', 'lake outflow', {'concept': 'watercourse'}]
SELECT DISTINCT ?a WHERE { resource:Lake_Erie property:lake_outflow ?a . ?a rdf:type ontology:watercourse }
[]
Simple Question (Coreferenced)
USER
Yes
(Q5492,P201,c(Q355304))
['Q5492', 'P201', {'concept': 'Q355304'}]
['Lake Erie', 'lake outflow', {'concept': 'watercourse'}]
[]
Q182343
SYSTEM
Niagara River
Q182343
(Q5492,P201,c(Q355304))
action filter_type
action find
entity Q5492
relation P201
type Q355304
The outflow of that still waters is the [ANSWER]
['Q5492', 'P201', {'concept': 'Q355304'}]
SELECT DISTINCT ?a WHERE { resource:Q5492 property:P201 ?a . ?a rdf:type ontology:Q355304 }
Niagara River
The outflow of that still waters is the Niagara River
Niagara River
action filter_type
action find
entity Lake Erie
relation lake outflow
type watercourse
['Lake Erie', 'lake outflow', {'concept': 'watercourse'}]
SELECT DISTINCT ?a WHERE { resource:Lake_Erie property:lake_outflow ?a . ?a rdf:type ontology:watercourse }
[]