Simple Question (Direct)
Simple Question
Q89205
P27
Q1048835
USER
Which political territories are Francisco Tanzer a civilian of ?
(Q89205,P27,c(Q1048835))
action filter_type
action find
entity Q89205
relation P27
type Q1048835
['Q89205', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?q WHERE { resource:Q89205 property:P27 ?q . ?q rdf:type ontology:Q1048835 }
Francisco Tanzer
action filter_type
action find
entity Francisco Tanzer
relation country of citizenship
type political territorial entity
['Francisco Tanzer', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?q WHERE { resource:Francisco_Tanzer property:country_of_citizenship ?q . ?q rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q183 Q40
SYSTEM
Germany, Austria
Q183 Q40
(Q89205,P27,c(Q1048835))
action filter_type
action find
entity Q89205
relation P27
type Q1048835
[ANSWERS] are Francisco Tanzer a civilian of
['Q89205', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?q WHERE { resource:Q89205 property:P27 ?q . ?q rdf:type ontology:Q1048835 }
Germany Austria
Germany and Austria are Francisco Tanzer a civilian of
Germany Austria
action filter_type
action find
entity Francisco Tanzer
relation country of citizenship
type political territorial entity
['Francisco Tanzer', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?q WHERE { resource:Francisco_Tanzer property:country_of_citizenship ?q . ?q rdf:type ontology:political_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q89205
P106
Q12737077
USER
Which occupation is the profession of Francisco Tanzer ?
(Q89205,P106,c(Q12737077))
action filter_type
action find
entity Q89205
relation P106
type Q12737077
['Q89205', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q12737077 . resource:Q89205 property:P106 ?f }
Francisco Tanzer
action filter_type
action find
entity Francisco Tanzer
relation occupation
type occupation
['Francisco Tanzer', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:occupation . resource:Francisco_Tanzer property:occupation ?f }
[]
occupation
Q36180
SYSTEM
writer
Q36180
(Q89205,P106,c(Q12737077))
action filter_type
action find
entity Q89205
relation P106
type Q12737077
The [ANSWER] is the profession of Francisco Tanzer
['Q89205', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q12737077 . resource:Q89205 property:P106 ?f }
writer
The writer is the profession of Francisco Tanzer
writer
action filter_type
action find
entity Francisco Tanzer
relation occupation
type occupation
['Francisco Tanzer', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:occupation . resource:Francisco_Tanzer property:occupation ?f }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q89205
P19
Q56061
USER
Which administrative territory was that person born at ?
(Q36180,P19,c(Q56061))
action filter_type
action find
entity Q89205
relation P19
type Q56061
['Q36180', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q56061 . resource:Q89205 property:P19 ?g }
Francisco Tanzer
action filter_type
action find
entity Francisco Tanzer
relation place of birth
type administrative territorial entity
['writer', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:administrative_territorial_entity . resource:Francisco_Tanzer property:place_of_birth ?g }
[]
administrative territorial entity
Q1718
SYSTEM
Düsseldorf
Q1718
(Q36180,P19,c(Q56061))
action filter_type
action find
entity Q89205
relation P19
type Q56061
That person was born in [ANSWER]
['Q36180', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q56061 . resource:Q89205 property:P19 ?g }
Düsseldorf
That person was born in Düsseldorf
Düsseldorf
action filter_type
action find
entity Francisco Tanzer
relation place of birth
type administrative territorial entity
['writer', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:administrative_territorial_entity . resource:Francisco_Tanzer property:place_of_birth ?g }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q990651
P206
Q1267889 Q15324 Q56061
USER
Which administrative territories are located nearby greater number of waterways and bodies of water than Kozienice ?
(c(Q56061),P206,c(Q1267889)|c(Q15324))
action greater
action union
action find_tuple_counts
relation P206
type Q56061
type Q1267889
action find_tuple_counts
relation P206
type Q56061
type Q15324
action count
action filter_multi_types
action find
entity Q990651
relation P206
type Q1267889
type Q15324
[{'concept': 'Q56061'}, 'P206', [{'concept': 'Q1267889'}, {'concept': 'Q15324'}]]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?m ) WHERE { resource:Q990651 property:P206 ?l . { VALUES ( ?j ) { ( ontology:Q15324 ) ( ontology:Q1267889 ) } . ?l rdf:type ?j } } } . FILTER ( ?f > ?m ) . { SELECT DISTINCT ?q ( COUNT ( ?d ) AS ?f ) WHERE { ?d rdf:type ?w . VALUES ( ?w ) { ( ontology:Q1267889 ) ( ontology:Q15324 ) } } GROUP BY ?q } }
Kozienice
action greater
action union
action find_tuple_counts
relation located next to body of water
type administrative territorial entity
type waterway
action find_tuple_counts
relation located next to body of water
type administrative territorial entity
type body of water
action count
action filter_multi_types
action find
entity Kozienice
relation located next to body of water
type waterway
type body of water
[{'concept': 'administrative territorial entity'}, 'located next to body of water', [{'concept': 'waterway'}, {'concept': 'body of water'}]]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?m ) WHERE { resource:Kozienice property:located_next_to_body_of_water ?l . { VALUES ( ?j ) { ( ontology:body_of_water ) ( ontology:waterway ) } . ?l rdf:type ?j } } } . FILTER ( ?f > ?m ) . { SELECT DISTINCT ?q ( COUNT ( ?d ) AS ?f ) WHERE { ?d rdf:type ?w . VALUES ( ?w ) { ( ontology:waterway ) ( ontology:body_of_water ) } } GROUP BY ?q } }
[]
waterway body of water administrative territorial entity
Q220 Q1874 Q60
SYSTEM
Rome, Odessa, New York City
Q12273 Q3818 Q770885 Q4083209 Q501661 Q501744 Q1939468 Q548441 Q331556 Q2943426 Q17151 Q15982011 Q1636296 Q105342 Q1757 Q1754 Q47048 Q985587 Q501090 Q1113813 Q34820 Q991661 Q11901685 Q2060910 Q2921491 Q15981916 Q1335 Q28721 Q9911 Q6465685 Q41295 Q2861 Q37133 Q207998 Q3792 Q52437 Q2598092 Q2983392 Q463937 Q3630 Q334 Q12994 Q282461 Q35178 Q4119405 Q1563 Q991274 Q3299785 Q9536 Q849441 Q15068816 Q10707890 Q3947670 Q2229853 Q969531 Q851034 Q3595479 Q3398922 Q614919 Q36281 Q1000107 Q1442470 Q21060 Q2021057 Q831527 Q200036 Q517053 Q60 Q39178 Q2684898 Q9310 Q1052027 Q1874 Q837211 Q239496 Q959 Q3932309 Q2745332 Q213707 Q1770 Q41699 Q425786 Q938379 Q18419 Q227064 Q2893117 Q7314172 Q840867 Q133123 Q986387 Q3825 Q865021 Q2238911 Q1330853 Q5379235 Q25230 Q10690 Q5926907 Q16953999 Q724394 Q4347874 Q36526 Q2727978 Q2666506 Q1419813 Q62 Q3882 Q3889 Q1616324 Q1160017 Q2928585 Q79716 Q930204 Q10313 Q990130 Q368275 Q79848 Q2413248 Q34692 Q913649 Q585 Q220 Q2729387 Q176749 Q100 Q11873187 Q36262 Q569080 Q18386455 Q3932 Q1025353 Q1572113 Q683125 Q2978763 Q36600 Q36168 Q743521 Q1807728 Q11901258 Q446232 Q41547 Q1552720 Q505601 Q991400 Q1758944
(c(Q56061),P206,c(Q1267889)|c(Q15324))
action greater
action union
action find_tuple_counts
relation P206
type Q56061
type Q1267889
action find_tuple_counts
relation P206
type Q56061
type Q15324
action count
action filter_multi_types
action find
entity Q990651
relation P206
type Q1267889
type Q15324
[ANSWERS] are located nearby greater number of waterways and bodies of water than Kozienice
[{'concept': 'Q56061'}, 'P206', [{'concept': 'Q1267889'}, {'concept': 'Q15324'}]]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?m ) WHERE { resource:Q990651 property:P206 ?l . { VALUES ( ?j ) { ( ontology:Q15324 ) ( ontology:Q1267889 ) } . ?l rdf:type ?j } } } . FILTER ( ?f > ?m ) . { SELECT DISTINCT ?q ( COUNT ( ?d ) AS ?f ) WHERE { ?d rdf:type ?w . VALUES ( ?w ) { ( ontology:Q1267889 ) ( ontology:Q15324 ) } } GROUP BY ?q } }
Gijón Malabo Bergen aan Zee Seymour Arm Schleswig Alert Paravur Portugalete Bosaso Cayo Santa María Thessaloniki El Teso Hulhumalé Bolshoy Kamen Helsinki Stockholm Oulu Lee-on-the-Solent Castro Urdiales Come By Chance, Newfoundland and Labrador Santo Domingo Callantsoog Virkkula Fuvahmulah Katwijk aan Zee El Sargento Montevideo Beeston Regis Den Helder La Ventana Basseterre Rostock Mariupol Fethiye Lomé Murano Shorne Colliers Saint Thomas Jakarta Singapore Bruges IJmuiden Kuwait City Nabih Saleh Havana Kalamos Halat Nuaim Bad Doberan Saint John Norris Arm Olhava San Mauro Mare Velsen-Noord Monster San Leandro Andrott Y Felinheli Atokos Roseau Kijkduin Santoña Ouddorp Hindersön Djurgården Volos De Koog New York City Port of Spain Ter Heijde Dili Cayo Largo del Sur Odessa Scheveningen Sheringham Vladivostok Nieuw-Haamstede Villa Las Estrellas Grímsey Tallinn Castries 's-Gravenzande Samarai Brooklyn Zoutelande Beit Ummar Reposaari Rudnaya Pristan Patras Cárdenas Libreville Birchington-on-Sea Kumta Vilsandi Ennore Guernsey Cardiff Hubbards, Nova Scotia Daloloia Group Poros Emäsalo Port Moresby Karwar Panaeati Island Roatán San Francisco Manama Maputo Egmond aan Zee Perim Burnt Islands, Newfoundland and Labrador Whittier Wells-next-the-Sea Donostia/San Sebastián Hook of Holland Spetses Southampton Cayo Romano Kingston Wijk aan Zee Oslo Rome Huisduinen Villingili Boston Kuivaniemi St. John's Koipsi Canoe Island São Tomé Cadzand-Bad Útila Ustronie Morskie Clearwater Beach The Hague Bridgetown Scarborough Samhah Vihiluoto Petten St. George's Guanaja Wassenaar Puerto Barrios Rottumeroog
Rome, Odessa and New York City are located nearby greater number of waterways and bodies of water than Kozienice
Rome Odessa New York City
action greater
action union
action find_tuple_counts
relation located next to body of water
type administrative territorial entity
type waterway
action find_tuple_counts
relation located next to body of water
type administrative territorial entity
type body of water
action count
action filter_multi_types
action find
entity Kozienice
relation located next to body of water
type waterway
type body of water
[{'concept': 'administrative territorial entity'}, 'located next to body of water', [{'concept': 'waterway'}, {'concept': 'body of water'}]]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?m ) WHERE { resource:Kozienice property:located_next_to_body_of_water ?l . { VALUES ( ?j ) { ( ontology:body_of_water ) ( ontology:waterway ) } . ?l rdf:type ?j } } } . FILTER ( ?f > ?m ) . { SELECT DISTINCT ?q ( COUNT ( ?d ) AS ?f ) WHERE { ?d rdf:type ?w . VALUES ( ?w ) { ( ontology:waterway ) ( ontology:body_of_water ) } } GROUP BY ?q } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q7018666
P206
Q1267889 Q15324 Q56061
USER
And how about Newnham Murren?
(c(Q56061),P206,c(Q1267889)|c(Q15324))
action greater
action union
action find_tuple_counts
relation P206
type Q56061
type Q1267889
action find_tuple_counts
relation P206
type Q56061
type Q15324
action count
action filter_multi_types
action find
entity Q7018666
relation P206
type Q1267889
type Q15324
[{'concept': 'Q56061'}, 'P206', [{'concept': 'Q1267889'}, {'concept': 'Q15324'}]]
SELECT DISTINCT ?d WHERE { FILTER ( ?j > ?n ) . { SELECT DISTINCT ( COUNT ( ?x ) AS ?n ) WHERE { resource:Q7018666 property:P206 ?x . { VALUES ( ?k ) { ( ontology:Q1267889 ) ( ontology:Q15324 ) } . ?x rdf:type ?k } } } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?j ) ?d WHERE { { ?d property:P206 ?o . ?d rdf:type ontology:Q56061 . ?o rdf:type ontology:Q1267889 } UNION { ?d rdf:type ontology:Q56061 . ?o rdf:type ontology:Q15324 . ?d property:P206 ?o } } GROUP BY ?d } }
Newnham Murren
action greater
action union
action find_tuple_counts
relation located next to body of water
type administrative territorial entity
type waterway
action find_tuple_counts
relation located next to body of water
type administrative territorial entity
type body of water
action count
action filter_multi_types
action find
entity Newnham Murren
relation located next to body of water
type waterway
type body of water
[{'concept': 'administrative territorial entity'}, 'located next to body of water', [{'concept': 'waterway'}, {'concept': 'body of water'}]]
SELECT DISTINCT ?d WHERE { FILTER ( ?j > ?n ) . { SELECT DISTINCT ( COUNT ( ?x ) AS ?n ) WHERE { resource:Newnham_Murren property:located_next_to_body_of_water ?x . { VALUES ( ?k ) { ( ontology:waterway ) ( ontology:body_of_water ) } . ?x rdf:type ?k } } } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?j ) ?d WHERE { { ?d property:located_next_to_body_of_water ?o . ?d rdf:type ontology:administrative_territorial_entity . ?o rdf:type ontology:waterway } UNION { ?d rdf:type ontology:administrative_territorial_entity . ?o rdf:type ontology:body_of_water . ?d property:located_next_to_body_of_water ?o } } GROUP BY ?d } }
[]
waterway body of water administrative territorial entity
Q220 Q1874 Q60
SYSTEM
Rome, Odessa, New York City
Q12273 Q3818 Q770885 Q4083209 Q501661 Q501744 Q1939468 Q548441 Q331556 Q2943426 Q17151 Q15982011 Q1636296 Q105342 Q1757 Q1754 Q47048 Q985587 Q501090 Q1113813 Q34820 Q991661 Q11901685 Q2060910 Q2921491 Q15981916 Q1335 Q28721 Q9911 Q6465685 Q41295 Q2861 Q37133 Q207998 Q3792 Q52437 Q2598092 Q2983392 Q463937 Q3630 Q334 Q12994 Q282461 Q35178 Q4119405 Q1563 Q991274 Q3299785 Q9536 Q849441 Q15068816 Q10707890 Q3947670 Q2229853 Q969531 Q851034 Q3595479 Q3398922 Q614919 Q36281 Q1000107 Q1442470 Q21060 Q2021057 Q831527 Q200036 Q517053 Q60 Q39178 Q2684898 Q9310 Q1052027 Q1874 Q837211 Q239496 Q959 Q3932309 Q2745332 Q213707 Q1770 Q41699 Q425786 Q938379 Q18419 Q227064 Q2893117 Q7314172 Q840867 Q133123 Q986387 Q3825 Q865021 Q2238911 Q1330853 Q5379235 Q25230 Q10690 Q5926907 Q16953999 Q724394 Q4347874 Q36526 Q2727978 Q2666506 Q1419813 Q62 Q3882 Q3889 Q1616324 Q1160017 Q2928585 Q79716 Q930204 Q10313 Q990130 Q368275 Q79848 Q2413248 Q34692 Q913649 Q585 Q220 Q2729387 Q176749 Q100 Q11873187 Q36262 Q569080 Q18386455 Q3932 Q1025353 Q1572113 Q683125 Q2978763 Q36600 Q36168 Q743521 Q1807728 Q11901258 Q446232 Q41547 Q1552720 Q505601 Q991400 Q1758944
(c(Q56061),P206,c(Q1267889)|c(Q15324))
action greater
action union
action find_tuple_counts
relation P206
type Q56061
type Q1267889
action find_tuple_counts
relation P206
type Q56061
type Q15324
action count
action filter_multi_types
action find
entity Q7018666
relation P206
type Q1267889
type Q15324
[ANSWERS]
[{'concept': 'Q56061'}, 'P206', [{'concept': 'Q1267889'}, {'concept': 'Q15324'}]]
SELECT DISTINCT ?d WHERE { FILTER ( ?j > ?n ) . { SELECT DISTINCT ( COUNT ( ?x ) AS ?n ) WHERE { resource:Q7018666 property:P206 ?x . { VALUES ( ?k ) { ( ontology:Q1267889 ) ( ontology:Q15324 ) } . ?x rdf:type ?k } } } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?j ) ?d WHERE { { ?d property:P206 ?o . ?d rdf:type ontology:Q56061 . ?o rdf:type ontology:Q1267889 } UNION { ?d rdf:type ontology:Q56061 . ?o rdf:type ontology:Q15324 . ?d property:P206 ?o } } GROUP BY ?d } }
Gijón Malabo Bergen aan Zee Seymour Arm Schleswig Alert Paravur Portugalete Bosaso Cayo Santa María Thessaloniki El Teso Hulhumalé Bolshoy Kamen Helsinki Stockholm Oulu Lee-on-the-Solent Castro Urdiales Come By Chance, Newfoundland and Labrador Santo Domingo Callantsoog Virkkula Fuvahmulah Katwijk aan Zee El Sargento Montevideo Beeston Regis Den Helder La Ventana Basseterre Rostock Mariupol Fethiye Lomé Murano Shorne Colliers Saint Thomas Jakarta Singapore Bruges IJmuiden Kuwait City Nabih Saleh Havana Kalamos Halat Nuaim Bad Doberan Saint John Norris Arm Olhava San Mauro Mare Velsen-Noord Monster San Leandro Andrott Y Felinheli Atokos Roseau Kijkduin Santoña Ouddorp Hindersön Djurgården Volos De Koog New York City Port of Spain Ter Heijde Dili Cayo Largo del Sur Odessa Scheveningen Sheringham Vladivostok Nieuw-Haamstede Villa Las Estrellas Grímsey Tallinn Castries 's-Gravenzande Samarai Brooklyn Zoutelande Beit Ummar Reposaari Rudnaya Pristan Patras Cárdenas Libreville Birchington-on-Sea Kumta Vilsandi Ennore Guernsey Cardiff Hubbards, Nova Scotia Daloloia Group Poros Emäsalo Port Moresby Karwar Panaeati Island Roatán San Francisco Manama Maputo Egmond aan Zee Perim Burnt Islands, Newfoundland and Labrador Whittier Wells-next-the-Sea Donostia/San Sebastián Hook of Holland Spetses Southampton Cayo Romano Kingston Wijk aan Zee Oslo Rome Huisduinen Villingili Boston Kuivaniemi St. John's Koipsi Canoe Island São Tomé Cadzand-Bad Útila Ustronie Morskie Clearwater Beach The Hague Bridgetown Scarborough Samhah Vihiluoto Petten St. George's Guanaja Wassenaar Puerto Barrios Rottumeroog
Rome Odessa New York City
action greater
action union
action find_tuple_counts
relation located next to body of water
type administrative territorial entity
type waterway
action find_tuple_counts
relation located next to body of water
type administrative territorial entity
type body of water
action count
action filter_multi_types
action find
entity Newnham Murren
relation located next to body of water
type waterway
type body of water
[{'concept': 'administrative territorial entity'}, 'located next to body of water', [{'concept': 'waterway'}, {'concept': 'body of water'}]]
SELECT DISTINCT ?d WHERE { FILTER ( ?j > ?n ) . { SELECT DISTINCT ( COUNT ( ?x ) AS ?n ) WHERE { resource:Newnham_Murren property:located_next_to_body_of_water ?x . { VALUES ( ?k ) { ( ontology:waterway ) ( ontology:body_of_water ) } . ?x rdf:type ?k } } } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?j ) ?d WHERE { { ?d property:located_next_to_body_of_water ?o . ?d rdf:type ontology:administrative_territorial_entity . ?o rdf:type ontology:waterway } UNION { ?d rdf:type ontology:administrative_territorial_entity . ?o rdf:type ontology:body_of_water . ?d property:located_next_to_body_of_water ?o } } GROUP BY ?d } }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q26269604 Q220
P190 P180
Q56061
USER
Which administrative territories are twin cities of Rome or are depicted in The White Gravestone, (Cropthorne Church) ?
OR((Q220,P190,c(Q56061)), (Q26269604,P180,c(Q56061)))
action filter_type
action union
action find
entity Q220
relation P190
action find
entity Q26269604
relation P180
type Q56061
{'OR': [['Q220', 'P190', {'concept': 'Q56061'}], ['Q26269604', 'P180', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q56061 . { { resource:Q220 property:P190 ?h } UNION { resource:Q26269604 property:P180 ?h } } }
The White Gravestone, (Cropthorne Church) Rome
action filter_type
action union
action find
entity Rome
relation sister city
action find
entity The White Gravestone, (Cropthorne Church)
relation depicts
type administrative territorial entity
{'OR': [['Rome', 'sister city', {'concept': 'administrative territorial entity'}], ['The White Gravestone, (Cropthorne Church)', 'depicts', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:administrative_territorial_entity . { { resource:Rome property:sister_city ?h } UNION { resource:The_White_Gravestone,_(Cropthorne_Church) property:depicts ?h } } }
[]
administrative territorial entity
Q484799 Q8717 Q90 Q34647 Q2513006 Q1490 Q132830
SYSTEM
Marbella, Seville, Paris, Johannesburg, Cropthorne, Tokyo, Douala
Q484799 Q8717 Q90 Q34647 Q2513006 Q1490 Q132830
OR((Q220,P190,c(Q56061)), (Q26269604,P180,c(Q56061)))
action filter_type
action union
action find
entity Q220
relation P190
action find
entity Q26269604
relation P180
type Q56061
[ANSWERS] are twin cities of Rome or are depicted in The White Gravestone, (Cropthorne Church)
{'OR': [['Q220', 'P190', {'concept': 'Q56061'}], ['Q26269604', 'P180', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q56061 . { { resource:Q220 property:P190 ?h } UNION { resource:Q26269604 property:P180 ?h } } }
Marbella Seville Paris Johannesburg Cropthorne Tokyo Douala
Marbella, Seville, Paris, Johannesburg, Cropthorne, Tokyo and Douala are twin cities of Rome or are depicted in The White Gravestone, (Cropthorne Church)
Marbella Seville Paris Johannesburg Cropthorne Tokyo Douala
action filter_type
action union
action find
entity Rome
relation sister city
action find
entity The White Gravestone, (Cropthorne Church)
relation depicts
type administrative territorial entity
{'OR': [['Rome', 'sister city', {'concept': 'administrative territorial entity'}], ['The White Gravestone, (Cropthorne Church)', 'depicts', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:administrative_territorial_entity . { { resource:Rome property:sister_city ?h } UNION { resource:The_White_Gravestone,_(Cropthorne_Church) property:depicts ?h } } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q34647
P163
Q17335294
USER
What has that administrative territory as its flag
(Q34647,P163,c(Q17335294))
action filter_type
action find
entity Q34647
relation P163
type Q17335294
['Q34647', 'P163', {'concept': 'Q17335294'}]
SELECT DISTINCT ?b WHERE { resource:Q34647 property:P163 ?b . ?b rdf:type ontology:Q17335294 }
Johannesburg
action filter_type
action find
entity Johannesburg
relation flag
type flag or coat of arms
['Johannesburg', 'flag', {'concept': 'flag or coat of arms'}]
SELECT DISTINCT ?b WHERE { resource:Johannesburg property:flag ?b . ?b rdf:type ontology:flag_or_coat_of_arms }
[]
flag or coat of arms
Clarification for simple ques.
Q132830
SYSTEM
Did you mean Douala ?
Q484799 Q8717 Q90 Q34647 Q2513006 Q1490 Q132830
(Q484799,P163,c(Q17335294)) (Q8717,P163,c(Q17335294)) (Q90,P163,c(Q17335294)) (Q34647,P163,c(Q17335294)) (Q2513006,P163,c(Q17335294)) (Q1490,P163,c(Q17335294)) (Q132830,P163,c(Q17335294))
[ANSWER]
['Q484799', 'P163', {'concept': 'Q17335294'}] ['Q8717', 'P163', {'concept': 'Q17335294'}] ['Q90', 'P163', {'concept': 'Q17335294'}] ['Q34647', 'P163', {'concept': 'Q17335294'}] ['Q2513006', 'P163', {'concept': 'Q17335294'}] ['Q1490', 'P163', {'concept': 'Q17335294'}] ['Q132830', 'P163', {'concept': 'Q17335294'}]
SELECT DISTINCT ?b WHERE { resource:Q34647 property:P163 ?b . ?b rdf:type ontology:Q17335294 }
Marbella Seville Paris Johannesburg Cropthorne Tokyo Douala
Did you mean Douala ?
Douala
['Marbella', 'flag', {'concept': 'flag or coat of arms'}] ['Seville', 'flag', {'concept': 'flag or coat of arms'}] ['Paris', 'flag', {'concept': 'flag or coat of arms'}] ['Johannesburg', 'flag', {'concept': 'flag or coat of arms'}] ['Cropthorne', 'flag', {'concept': 'flag or coat of arms'}] ['Tokyo', 'flag', {'concept': 'flag or coat of arms'}] ['Douala', 'flag', {'concept': 'flag or coat of arms'}]
SELECT DISTINCT ?b WHERE { resource:Johannesburg property:flag ?b . ?b rdf:type ontology:flag_or_coat_of_arms }
[]
Simple Question (Coreferenced)
USER
No, I meant Johannesburg. Could you tell me the answer for that?
(Q34647,P163,c(Q17335294))
Q34647
['Q34647', 'P163', {'concept': 'Q17335294'}]
['Johannesburg', 'flag', {'concept': 'flag or coat of arms'}]
[]
Q5456761
SYSTEM
Flag of Johannesburg
Q5456761
(Q34647,P163,c(Q17335294))
action filter_type
action find
entity Q34647
relation P163
type Q17335294
The [ANSWER] has that administrative territory as its flag
['Q34647', 'P163', {'concept': 'Q17335294'}]
SELECT DISTINCT ?b WHERE { resource:Q34647 property:P163 ?b . ?b rdf:type ontology:Q17335294 }
Flag of Johannesburg
The Flag of Johannesburg has that administrative territory as its flag
Flag of Johannesburg
action filter_type
action find
entity Johannesburg
relation flag
type flag or coat of arms
['Johannesburg', 'flag', {'concept': 'flag or coat of arms'}]
SELECT DISTINCT ?b WHERE { resource:Johannesburg property:flag ?b . ?b rdf:type ontology:flag_or_coat_of_arms }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Indirect
P163
Q17335294 Q5589178
USER
Which coats of arms have more number of regimes as their flagthan that coat of arms ?
(c(Q5589178),P163,c(Q17335294))
action greater
action find_reverse_tuple_counts
relation P163
type Q17335294
type Q5589178
action count
action filter_type
action find
entity Q5456761
relation P163
type Q17335294
[{'concept': 'Q5589178'}, 'P163', {'concept': 'Q17335294'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?c ) AS ?g ) WHERE { ?c property:P163 ?u . ?c rdf:type ontology:Q5589178 . ?u rdf:type ontology:Q17335294 } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?r ) WHERE { resource:Q5456761 property:P163 ?s . ?s rdf:type ontology:Q17335294 } } . FILTER ( ?g > ?r ) }
action greater
action find_reverse_tuple_counts
relation flag
type flag or coat of arms
type regime
action count
action filter_type
action find
entity Flag of Johannesburg
relation flag
type flag or coat of arms
[{'concept': 'regime'}, 'flag', {'concept': 'flag or coat of arms'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?c ) AS ?g ) WHERE { ?c property:flag ?u . ?c rdf:type ontology:regime . ?u rdf:type ontology:flag_or_coat_of_arms } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?r ) WHERE { resource:Flag_of_Johannesburg property:flag ?s . ?s rdf:type ontology:flag_or_coat_of_arms } } . FILTER ( ?g > ?r ) }
[]
flag or coat of arms regime
Q2376574 Q17622301 Q199961
SYSTEM
White-Red-White Flag, Flag of the Islamic State, Flag of Transnistria
Q17622301 Q199961 Q16830040 Q2376574
(c(Q5589178),P163,c(Q17335294))
action greater
action find_reverse_tuple_counts
relation P163
type Q17335294
type Q5589178
action count
action filter_type
action find
entity Q5456761
relation P163
type Q17335294
[ANSWERS] have more number of regimes as their flagthan that coat of arms
[{'concept': 'Q5589178'}, 'P163', {'concept': 'Q17335294'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?c ) AS ?g ) WHERE { ?c property:P163 ?u . ?c rdf:type ontology:Q5589178 . ?u rdf:type ontology:Q17335294 } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?r ) WHERE { resource:Q5456761 property:P163 ?s . ?s rdf:type ontology:Q17335294 } } . FILTER ( ?g > ?r ) }
Flag of the Islamic State Flag of Transnistria Flag of the Donetsk People's Republic White-Red-White Flag
White-Red-White Flag, Flag of the Islamic State and Flag of Transnistria have more number of regimes as their flagthan that coat of arms
White-Red-White Flag Flag of the Islamic State Flag of Transnistria
action greater
action find_reverse_tuple_counts
relation flag
type flag or coat of arms
type regime
action count
action filter_type
action find
entity Flag of Johannesburg
relation flag
type flag or coat of arms
[{'concept': 'regime'}, 'flag', {'concept': 'flag or coat of arms'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?c ) AS ?g ) WHERE { ?c property:flag ?u . ?c rdf:type ontology:regime . ?u rdf:type ontology:flag_or_coat_of_arms } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?r ) WHERE { resource:Flag_of_Johannesburg property:flag ?s . ?s rdf:type ontology:flag_or_coat_of_arms } } . FILTER ( ?g > ?r ) }
[]