Simple Question (Direct)
Simple Question
Q4505689
P21
Q290
USER
What is the sex of Inna Tsymbalyuk ?
(Q4505689,P21,c(Q290))
action filter_type
action find
entity Q4505689
relation P21
type Q290
['Q4505689', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?a WHERE { resource:Q4505689 property:P21 ?a . ?a rdf:type ontology:Q290 }
Inna Tsymbalyuk
action filter_type
action find
entity Inna Tsymbalyuk
relation gender
type sex
['Inna Tsymbalyuk', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?a WHERE { resource:Inna_Tsymbalyuk property:gender ?a . ?a rdf:type ontology:sex }
[]
sex
Q6581072
SYSTEM
female
Q6581072
(Q4505689,P21,c(Q290))
action filter_type
action find
entity Q4505689
relation P21
type Q290
The sex of Inna Tsymbalyuk is the [ANSWER]
['Q4505689', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?a WHERE { resource:Q4505689 property:P21 ?a . ?a rdf:type ontology:Q290 }
female
The sex of Inna Tsymbalyuk is the female
female
action filter_type
action find
entity Inna Tsymbalyuk
relation gender
type sex
['Inna Tsymbalyuk', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?a WHERE { resource:Inna_Tsymbalyuk property:gender ?a . ?a rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q4505689
P166
Q476300
USER
Which competition was Inna Tsymbalyuk awarded with ?
(Q4505689,P166,c(Q476300))
action filter_type
action find
entity Q4505689
relation P166
type Q476300
['Q4505689', 'P166', {'concept': 'Q476300'}]
SELECT DISTINCT ?u WHERE { resource:Q4505689 property:P166 ?u . ?u rdf:type ontology:Q476300 }
Inna Tsymbalyuk
action filter_type
action find
entity Inna Tsymbalyuk
relation award received
type competition
['Inna Tsymbalyuk', 'award received', {'concept': 'competition'}]
SELECT DISTINCT ?u WHERE { resource:Inna_Tsymbalyuk property:award_received ?u . ?u rdf:type ontology:competition }
[]
competition
Q6877747
SYSTEM
Miss Ukraine Universe
Q6877747
(Q4505689,P166,c(Q476300))
action filter_type
action find
entity Q4505689
relation P166
type Q476300
Inna Tsymbalyuk was awarded as [ANSWER]
['Q4505689', 'P166', {'concept': 'Q476300'}]
SELECT DISTINCT ?u WHERE { resource:Q4505689 property:P166 ?u . ?u rdf:type ontology:Q476300 }
Miss Ukraine Universe
Inna Tsymbalyuk was awarded as Miss Ukraine Universe
Miss Ukraine Universe
action filter_type
action find
entity Inna Tsymbalyuk
relation award received
type competition
['Inna Tsymbalyuk', 'award received', {'concept': 'competition'}]
SELECT DISTINCT ?u WHERE { resource:Inna_Tsymbalyuk property:award_received ?u . ?u rdf:type ontology:competition }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q6353074
Q476300
USER
And what about Elmira Abdrazakova?
(Q6353074,P166,c(Q476300))
action filter_type
action find
entity Q6353074
relation P166
type Q476300
['Q6353074', 'P166', {'concept': 'Q476300'}]
SELECT DISTINCT ?j WHERE { resource:Q6353074 property:P166 ?j . ?j rdf:type ontology:Q476300 }
Elmira Abdrazakova
action filter_type
action find
entity Elmira Abdrazakova
relation award received
type competition
['Elmira Abdrazakova', 'award received', {'concept': 'competition'}]
SELECT DISTINCT ?j WHERE { resource:Elmira_Abdrazakova property:award_received ?j . ?j rdf:type ontology:competition }
[]
competition
Q1149219
SYSTEM
Miss Russia
Q1149219
(Q6353074,P166,c(Q476300))
action filter_type
action find
entity Q6353074
relation P166
type Q476300
[ANSWER]
['Q6353074', 'P166', {'concept': 'Q476300'}]
SELECT DISTINCT ?j WHERE { resource:Q6353074 property:P166 ?j . ?j rdf:type ontology:Q476300 }
Miss Russia
Miss Russia
action filter_type
action find
entity Elmira Abdrazakova
relation award received
type competition
['Elmira Abdrazakova', 'award received', {'concept': 'competition'}]
SELECT DISTINCT ?j WHERE { resource:Elmira_Abdrazakova property:award_received ?j . ?j rdf:type ontology:competition }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q1149219 Q5818064 Q649
P159
Q56061
USER
Does that competition have headquarters located at Doldim-e Bozorg and Moscow ?
(Q1149219,P159,Q5818064) (Q1149219,P159,Q649)
action is_in
entity Q1149219
action intersection
action find_reverse
entity Q5818064
relation P159
action find_reverse
entity Q649
relation P159
['Q1149219', 'P159', 'Q5818064'] ['Q1149219', 'P159', 'Q649']
ASK WHERE { resource:Q1149219 property:P159 resource:Q5818064 . resource:Q1149219 property:P159 resource:Q649 }
Miss Russia Doldim-e Bozorg Moscow
action is_in
entity Miss Russia
action intersection
action find_reverse
entity Doldim-e Bozorg
relation headquarters location
action find_reverse
entity Moscow
relation headquarters location
['Miss Russia', 'headquarters location', 'Doldim-e Bozorg'] ['Miss Russia', 'headquarters location', 'Moscow']
ASK WHERE { resource:Miss_Russia property:headquarters_location resource:Doldim-e_Bozorg . resource:Miss_Russia property:headquarters_location resource:Moscow }
[]
administrative territorial entity
SYSTEM
NO and YES respectively
(Q1149219,P159,Q5818064) (Q1149219,P159,Q649)
action is_in
entity Q1149219
action intersection
action find_reverse
entity Q5818064
relation P159
action find_reverse
entity Q649
relation P159
[ANSWER]
['Q1149219', 'P159', 'Q5818064'] ['Q1149219', 'P159', 'Q649']
ASK WHERE { resource:Q1149219 property:P159 resource:Q5818064 . resource:Q1149219 property:P159 resource:Q649 }
NO and YES respectively
action is_in
entity Miss Russia
action intersection
action find_reverse
entity Doldim-e Bozorg
relation headquarters location
action find_reverse
entity Moscow
relation headquarters location
['Miss Russia', 'headquarters location', 'Doldim-e Bozorg'] ['Miss Russia', 'headquarters location', 'Moscow']
ASK WHERE { resource:Miss_Russia property:headquarters_location resource:Doldim-e_Bozorg . resource:Miss_Russia property:headquarters_location resource:Moscow }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q4505689
P19
Q13220204
USER
Which administrative country subdivision was Inna Tsymbalyuk born at ?
(Q4505689,P19,c(Q13220204))
action filter_type
action find
entity Q4505689
relation P19
type Q13220204
['Q4505689', 'P19', {'concept': 'Q13220204'}]
SELECT DISTINCT ?c WHERE { resource:Q4505689 property:P19 ?c . ?c rdf:type ontology:Q13220204 }
Inna Tsymbalyuk
action filter_type
action find
entity Inna Tsymbalyuk
relation place of birth
type second-level administrative country subdivision
['Inna Tsymbalyuk', 'place of birth', {'concept': 'second-level administrative country subdivision'}]
SELECT DISTINCT ?c WHERE { resource:Inna_Tsymbalyuk property:place_of_birth ?c . ?c rdf:type ontology:second-level_administrative_country_subdivision }
[]
second-level administrative country subdivision
Q157725
SYSTEM
Chernivtsi
Q157725
(Q4505689,P19,c(Q13220204))
action filter_type
action find
entity Q4505689
relation P19
type Q13220204
Which administrative country subdivision was Inna Tsymbalyuk born at
['Q4505689', 'P19', {'concept': 'Q13220204'}]
SELECT DISTINCT ?c WHERE { resource:Q4505689 property:P19 ?c . ?c rdf:type ontology:Q13220204 }
Chernivtsi
Which administrative country subdivision was Inna Tsymbalyuk born at
Chernivtsi
action filter_type
action find
entity Inna Tsymbalyuk
relation place of birth
type second-level administrative country subdivision
['Inna Tsymbalyuk', 'place of birth', {'concept': 'second-level administrative country subdivision'}]
SELECT DISTINCT ?c WHERE { resource:Inna_Tsymbalyuk property:place_of_birth ?c . ?c rdf:type ontology:second-level_administrative_country_subdivision }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q15427821
Q13220204
USER
And what about Miran Rudan?
(Q15427821,P19,c(Q13220204))
action filter_type
action find
entity Q15427821
relation P19
type Q13220204
['Q15427821', 'P19', {'concept': 'Q13220204'}]
SELECT DISTINCT ?o WHERE { resource:Q15427821 property:P19 ?o . ?o rdf:type ontology:Q13220204 }
Miran Rudan
action filter_type
action find
entity Miran Rudan
relation place of birth
type second-level administrative country subdivision
['Miran Rudan', 'place of birth', {'concept': 'second-level administrative country subdivision'}]
SELECT DISTINCT ?o WHERE { resource:Miran_Rudan property:place_of_birth ?o . ?o rdf:type ontology:second-level_administrative_country_subdivision }
[]
second-level administrative country subdivision
Q1435
SYSTEM
Zagreb
Q1435
(Q15427821,P19,c(Q13220204))
action filter_type
action find
entity Q15427821
relation P19
type Q13220204
[ANSWER]
['Q15427821', 'P19', {'concept': 'Q13220204'}]
SELECT DISTINCT ?o WHERE { resource:Q15427821 property:P19 ?o . ?o rdf:type ontology:Q13220204 }
Zagreb
Zagreb
action filter_type
action find
entity Miran Rudan
relation place of birth
type second-level administrative country subdivision
['Miran Rudan', 'place of birth', {'concept': 'second-level administrative country subdivision'}]
SELECT DISTINCT ?o WHERE { resource:Miran_Rudan property:place_of_birth ?o . ?o rdf:type ontology:second-level_administrative_country_subdivision }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q7123
P138
Q515 Q355304 Q13220204
USER
Which administrative country subdivisions come from less number of cities or watercourses than Sursee ?
(c(Q13220204),P138,c(Q515)|c(Q355304))
action less
action union
action find_tuple_counts
relation P138
type Q13220204
type Q515
action find_tuple_counts
relation P138
type Q13220204
type Q355304
action count
action filter_multi_types
action find
entity Q7123
relation P138
type Q515
type Q355304
[{'concept': 'Q13220204'}, 'P138', [{'concept': 'Q515'}, {'concept': 'Q355304'}]]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?o ) ?c WHERE { { ?c rdf:type ontology:Q13220204 . ?g rdf:type ontology:Q515 . ?c property:P138 ?g } UNION { ?c rdf:type ontology:Q13220204 . ?g rdf:type ontology:Q355304 . ?c property:P138 ?g } } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?y ) WHERE { { ?a rdf:type ?e . VALUES ( ?e ) { ( ontology:Q515 ) ( ontology:Q355304 ) } } . resource:Q7123 property:P138 ?a } } . FILTER ( ?o < ?y ) }
Sursee
action less
action union
action find_tuple_counts
relation named after
type second-level administrative country subdivision
type city
action find_tuple_counts
relation named after
type second-level administrative country subdivision
type watercourse
action count
action filter_multi_types
action find
entity Sursee
relation named after
type city
type watercourse
[{'concept': 'second-level administrative country subdivision'}, 'named after', [{'concept': 'city'}, {'concept': 'watercourse'}]]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?o ) ?c WHERE { { ?c rdf:type ontology:second-level_administrative_country_subdivision . ?g rdf:type ontology:city . ?c property:named_after ?g } UNION { ?c rdf:type ontology:second-level_administrative_country_subdivision . ?g rdf:type ontology:watercourse . ?c property:named_after ?g } } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?y ) WHERE { { ?a rdf:type ?e . VALUES ( ?e ) { ( ontology:city ) ( ontology:watercourse ) } } . resource:Sursee property:named_after ?a } } . FILTER ( ?o < ?y ) }
[]
city watercourse second-level administrative country subdivision
Q210234 Q2114866 Q322986
SYSTEM
Zuidhorn, De Fryske Marren, Delfzijl
Q840460 Q1019611 Q1318857 Q1230035 Q476289 Q976859 Q1229800 Q1375771 Q475431 Q1972315 Q3539151 Q1229758 Q1856341 Q775090 Q1375853 Q1375878 Q476616 Q476771 Q476444 Q1095 Q476127 Q475237 Q892064 Q475919 Q1375868 Q1375755 Q1019432 Q806453 Q2634089 Q7653734 Q475574 Q1019598 Q863961 Q976848 Q475787 Q835096 Q1032245 Q1114927 Q840457 Q475792 Q2496758 Q768756 Q3539256 Q1468138 Q1318822 Q476211 Q3539414 Q1025079 Q1059262 Q475366 Q2343545 Q2621725 Q1362109 Q476982 Q706857 Q476980 Q322986 Q476391 Q1979895 Q1375762 Q60453 Q1207391 Q3539495 Q1229906 Q806448 Q1229881 Q432438 Q2183668 Q2140086 Q891962 Q475737 Q999094 Q806446 Q1944288 Q204642 Q73074 Q475550 Q3321614 Q476744 Q475797 Q976873 Q475662 Q475558 Q835083 Q1032238 Q1920922 Q3539648 Q1229734 Q1972732 Q1032233 Q638697 Q219591 Q2443862 Q476264 Q3536082 Q475322 Q638592 Q475932 Q1814172 Q6459 Q1686835 Q2152309 Q2227543 Q534226 Q3321631 Q1113 Q1375819 Q73065 Q1118 Q1229919 Q1114977 Q475396 Q476473 Q3539572 Q2234599 Q4221652 Q73069 Q476648 Q164474 Q1114 Q1318806 Q793916 Q1375812 Q1116 Q476570 Q1375780 Q3539730 Q475949 Q546634 Q1229797 Q69262 Q1375789 Q210234 Q1014499 Q1114868 Q476970 Q206519 Q1375835 Q476605 Q1947322 Q166993 Q10078 Q841525 Q1375850 Q604966 Q136498 Q849574 Q3537661 Q1375859 Q1318815 Q995091 Q113560 Q1229921 Q1028215 Q581822 Q878851 Q837093 Q1362085 Q3539116 Q892526 Q1364824 Q1318865 Q100130 Q605986 Q1091337 Q1229793 Q1740651 Q1996903 Q1290829 Q1229798 Q2114866 Q1186535 Q476486 Q1375825 Q225618 Q1972329 Q2536628 Q161144 Q1375843 Q1229930 Q683658 Q983748 Q475503 Q476933 Q1990863 Q1019626 Q500162 Q926417 Q1229869 Q1525422 Q976883 Q1947893 Q1985961 Q1318833 Q475772 Q1365449 Q1001823 Q198666 Q182269 Q14523654 Q66515 Q208011 Q328087 Q3321599 Q1114885 Q66453 Q1318887 Q69048 Q107135 Q750772 Q476798 Q1019651 Q1124909 Q3536116 Q476730 Q1318877 Q475512 Q534203 Q571198 Q1318872 Q2044762 Q1347872 Q68823 Q1186541 Q475978 Q1321140 Q589047 Q3539602 Q1155047 Q861873 Q166236 Q867219 Q819700 Q1122 Q1091595 Q1151066 Q835118 Q1947944 Q341024 Q1151062 Q1019417 Q289419 Q475422 Q1114954 Q580538 Q1114938 Q1318843 Q1126 Q953123 Q1114903 Q1025969 Q4504255 Q476600 Q1230005 Q9766 Q1362129 Q3539277 Q778989 Q475889 Q932077 Q475663 Q1362587 Q1403340 Q475101 Q461142 Q476231 Q629038 Q2024239 Q3536053 Q850211 Q1990080 Q1019420 Q574558 Q1125 Q2311189 Q1127 Q1129 Q1019428 Q166990 Q257040 Q848831 Q3526470 Q1364817
(c(Q13220204),P138,c(Q515)|c(Q355304))
action less
action union
action find_tuple_counts
relation P138
type Q13220204
type Q515
action find_tuple_counts
relation P138
type Q13220204
type Q355304
action count
action filter_multi_types
action find
entity Q7123
relation P138
type Q515
type Q355304
[ANSWERS] come from less number of cities or watercourses than Sursee
[{'concept': 'Q13220204'}, 'P138', [{'concept': 'Q515'}, {'concept': 'Q355304'}]]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?o ) ?c WHERE { { ?c rdf:type ontology:Q13220204 . ?g rdf:type ontology:Q515 . ?c property:P138 ?g } UNION { ?c rdf:type ontology:Q13220204 . ?g rdf:type ontology:Q355304 . ?c property:P138 ?g } } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?y ) WHERE { { ?a rdf:type ?e . VALUES ( ?e ) { ( ontology:Q515 ) ( ontology:Q355304 ) } } . resource:Q7123 property:P138 ?a } } . FILTER ( ?o < ?y ) }
Vlagtwedde Suan Luang Koboko District Pader District Nong Ya Plong Nakasongola District Busia District Amuru District Chum Ta Bong Samphanthawong Kole District Arua District Oostburg Plandište Nakapiripirit District Lyantonde District Samrong Srinagarindra Phra Samut Chedi Limburg Na Haeo Bang Pla Ma Kiboga District Mae Ai Bukwo District Butaleja District Khan Na Yao Bang Phlat Sikyona Swanson County Kaeng Krachan Chom Thong Binnenmaas Wakiso District Ko Kut Leek Kanungu District Serere District Tynaarlo Ko Pha-ngan Khrestivka Chordeleg Canton Kyegegwa District Leoncio Prado Province Amolatar District Noen Kham Mitooma District Winsum Blantyre District Menameradiel Babadaýhan District Polesia Voblast Mpigi District Wachirabarami Bakhmut Vibhavadi Delfzijl Phaya Mengrai Aristotelis Amuria District Coevorden Kayunga District Napak District Kaberamaido District Bang Na Kaabong District Nakaseke District Moyo District Reiderland Mubende District Khon San Lat Phrao Bang Kho Laem Daniel Alcides Carrión Province Ntungamo District Stadskanaal Huai Thap Than Kalungu District Sirindhorn Ko Lanta Rakai District Khao Kho Kabang Noordenveld Masindi District Mariscal Ramón Castilla Province Rubirizi District Adjumani District Thung Khru Masaka District Belisario Boeto Province Vatutine Echteld Nong Mamong Alebtong District Chai Buri Krāslava Mae Fa Luang Grau Province Kautokeino Yenakiieve Frunzyenski District Pavlos Melas Bang Bon Buikwe District West Flanders Namutumba District Veendam Flemish Brabant Kasese District Luuka District Chiang Muan Phu Kradueng Nwoya District Holibivka Kirov Krai Hoogezand-Sappemeer Sap Yai Kamuli District East Flanders Kamwenge District Kara-Buura District Bukedea District Antwerp Rong Kham Abim District Zombo District Mae Poen Nea Smyrni Bushenyi District Noordoostpolder Manafwa District Zuidhorn Sevilla de Oro Canton Bulambuli District Ubolratana Lira District Sironko District Sam Roi Yot Aizawl district Khlong Hoi Khong Reimerswaal Marum Moroto District Kibaale District Fuerte Olimpo Loppersum Buhweju District Kaliro District Kyenjojo District Aleksandrovac Din Daeng Kapchorwa District Gulu District Mbale District Sokuluk District Kadiivka Budaka District Kiryandongo District Groningen Mayuge District Kiruhura District Vaishali district Grootegast Soroti District Buliisa District Khlong Sam Wa Olympos Ko Chang Bugiri District De Fryske Marren Hoima District Phu Ruea Nebbi District Bang Khae Thawi Watthana Harlingen Alchevsk Pallisa District Katakwi District Franekeradeel Jinja District Galyani Vadhana Thung Chang Pangaio Prawet Kitgum District Kampala District Iganga District Filadelfia Sembabule District General Sánchez Cerro Province Kormista Oyam District Khwao Sinarin Bududa District Bueng Kum Bang Klam Bernisse Ko Samui Augst Schiermonnikoog Dronten Bukomansimbi District Kibuku District St. Ursen Isingiro District Kaiseraugst Fredrikstad Ferwerderadiel Tak Fa Yan Nawa Graafstroom Amudat District Sida Ibanda District Hankha Kyankwanzi District Kollumerland c.a. Dokolo District Lyeninski District Oldambt Troistorrents Tororo District Mae Wong Varanasi district Jorge Basadre Province Otuke District Jerusalén Bilyayivka Bang Sue Kalangala District Bergh Walloon Brabant Mbarara District Mukono District Borger-Odoorn Mariscal Cáceres Province Achtkarspelen Kumi District Watthana Rukungiri District Chulabhorn Lwengo District Kisoro District Buyende District Kotido District Luxembourg Jerusalén Ngora District Sai Mai Pedro Moncayo Canton Sam Ngam Mityana District Eijsden-Margraten Bundibugyo District Lamwo District Leeuwarderadeel Lan Sak Pekela Khao Phanom Yumbe District Khlong Toei Ban Haet Bedum Non Sila Cuenca Canton Kirawsk District Agago District Slochteren Camilo Ponce Enríquez Canton Saphan Sung Heerenveen Namur Leeuwarden Liège Hainaut Wang Thonglang Na Mom Bua Lai Province of Brabant Kabale District Luwero District
Zuidhorn, De Fryske Marren and Delfzijl come from less number of cities or watercourses than Sursee
Zuidhorn De Fryske Marren Delfzijl
action less
action union
action find_tuple_counts
relation named after
type second-level administrative country subdivision
type city
action find_tuple_counts
relation named after
type second-level administrative country subdivision
type watercourse
action count
action filter_multi_types
action find
entity Sursee
relation named after
type city
type watercourse
[{'concept': 'second-level administrative country subdivision'}, 'named after', [{'concept': 'city'}, {'concept': 'watercourse'}]]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?o ) ?c WHERE { { ?c rdf:type ontology:second-level_administrative_country_subdivision . ?g rdf:type ontology:city . ?c property:named_after ?g } UNION { ?c rdf:type ontology:second-level_administrative_country_subdivision . ?g rdf:type ontology:watercourse . ?c property:named_after ?g } } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?y ) WHERE { { ?a rdf:type ?e . VALUES ( ?e ) { ( ontology:city ) ( ontology:watercourse ) } } . resource:Sursee property:named_after ?a } } . FILTER ( ?o < ?y ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q1770737
P138
Q515 Q355304 Q13220204
USER
And what about Albufeira Municipality?
(c(Q13220204),P138,c(Q515)|c(Q355304))
action less
action union
action find_tuple_counts
relation P138
type Q13220204
type Q515
action find_tuple_counts
relation P138
type Q13220204
type Q355304
action count
action filter_multi_types
action find
entity Q1770737
relation P138
type Q515
type Q355304
[{'concept': 'Q13220204'}, 'P138', [{'concept': 'Q515'}, {'concept': 'Q355304'}]]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?w ) AS ?q ) WHERE { { ?b property:P138 ?w . ?w rdf:type ontology:Q515 . ?b rdf:type ontology:Q13220204 } UNION { ?w rdf:type ontology:Q355304 . ?b rdf:type ontology:Q13220204 . ?b property:P138 ?w } } GROUP BY ?b } . FILTER ( ?q < ?e ) . { SELECT DISTINCT ( COUNT ( ?s ) AS ?e ) WHERE { resource:Q1770737 property:P138 ?s . { { ?s rdf:type ontology:Q515 } UNION { ?s rdf:type ontology:Q355304 } } } } }
Albufeira Municipality
action less
action union
action find_tuple_counts
relation named after
type second-level administrative country subdivision
type city
action find_tuple_counts
relation named after
type second-level administrative country subdivision
type watercourse
action count
action filter_multi_types
action find
entity Albufeira Municipality
relation named after
type city
type watercourse
[{'concept': 'second-level administrative country subdivision'}, 'named after', [{'concept': 'city'}, {'concept': 'watercourse'}]]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?w ) AS ?q ) WHERE { { ?b property:named_after ?w . ?w rdf:type ontology:city . ?b rdf:type ontology:second-level_administrative_country_subdivision } UNION { ?w rdf:type ontology:watercourse . ?b rdf:type ontology:second-level_administrative_country_subdivision . ?b property:named_after ?w } } GROUP BY ?b } . FILTER ( ?q < ?e ) . { SELECT DISTINCT ( COUNT ( ?s ) AS ?e ) WHERE { resource:Albufeira_Municipality property:named_after ?s . { { ?s rdf:type ontology:city } UNION { ?s rdf:type ontology:watercourse } } } } }
[]
city watercourse second-level administrative country subdivision
Q210234 Q2114866 Q322986
SYSTEM
Zuidhorn, De Fryske Marren, Delfzijl
Q840460 Q1019611 Q1318857 Q1230035 Q476289 Q976859 Q1229800 Q1375771 Q475431 Q1972315 Q3539151 Q1229758 Q1856341 Q775090 Q1375853 Q1375878 Q476616 Q476771 Q476444 Q1095 Q476127 Q475237 Q892064 Q475919 Q1375868 Q1375755 Q1019432 Q806453 Q2634089 Q7653734 Q475574 Q1019598 Q863961 Q976848 Q475787 Q835096 Q1032245 Q1114927 Q840457 Q475792 Q2496758 Q768756 Q3539256 Q1468138 Q1318822 Q476211 Q3539414 Q1025079 Q1059262 Q475366 Q2343545 Q2621725 Q1362109 Q476982 Q706857 Q476980 Q322986 Q476391 Q1979895 Q1375762 Q60453 Q1207391 Q3539495 Q1229906 Q806448 Q1229881 Q432438 Q2183668 Q2140086 Q891962 Q475737 Q999094 Q806446 Q1944288 Q204642 Q73074 Q475550 Q3321614 Q476744 Q475797 Q976873 Q475662 Q475558 Q835083 Q1032238 Q1920922 Q3539648 Q1229734 Q1972732 Q1032233 Q638697 Q219591 Q2443862 Q476264 Q3536082 Q475322 Q638592 Q475932 Q1814172 Q6459 Q1686835 Q2152309 Q2227543 Q534226 Q3321631 Q1113 Q1375819 Q73065 Q1118 Q1229919 Q1114977 Q475396 Q476473 Q3539572 Q2234599 Q4221652 Q73069 Q476648 Q164474 Q1114 Q1318806 Q793916 Q1375812 Q1116 Q476570 Q1375780 Q3539730 Q475949 Q546634 Q1229797 Q69262 Q1375789 Q210234 Q1014499 Q1114868 Q476970 Q206519 Q1375835 Q476605 Q1947322 Q166993 Q10078 Q841525 Q1375850 Q604966 Q136498 Q849574 Q3537661 Q1375859 Q1318815 Q995091 Q113560 Q1229921 Q1028215 Q581822 Q878851 Q837093 Q1362085 Q3539116 Q892526 Q1364824 Q1318865 Q100130 Q605986 Q1091337 Q1229793 Q1740651 Q1996903 Q1290829 Q1229798 Q2114866 Q1186535 Q476486 Q1375825 Q225618 Q1972329 Q2536628 Q161144 Q1375843 Q1229930 Q683658 Q983748 Q475503 Q476933 Q1990863 Q1019626 Q500162 Q926417 Q1229869 Q1525422 Q976883 Q1947893 Q1985961 Q1318833 Q475772 Q1365449 Q1001823 Q198666 Q182269 Q14523654 Q66515 Q208011 Q328087 Q3321599 Q1114885 Q66453 Q1318887 Q69048 Q107135 Q750772 Q476798 Q1019651 Q1124909 Q3536116 Q476730 Q1318877 Q475512 Q534203 Q571198 Q1318872 Q2044762 Q1347872 Q68823 Q1186541 Q475978 Q1321140 Q589047 Q3539602 Q1155047 Q861873 Q166236 Q867219 Q819700 Q1122 Q1091595 Q1151066 Q835118 Q1947944 Q341024 Q1151062 Q1019417 Q289419 Q475422 Q1114954 Q580538 Q1114938 Q1318843 Q1126 Q953123 Q1114903 Q1025969 Q4504255 Q476600 Q1230005 Q9766 Q1362129 Q3539277 Q778989 Q475889 Q932077 Q475663 Q1362587 Q1403340 Q475101 Q461142 Q476231 Q629038 Q2024239 Q3536053 Q850211 Q1990080 Q1019420 Q574558 Q1125 Q2311189 Q1127 Q1129 Q1019428 Q166990 Q257040 Q848831 Q3526470 Q1364817
(c(Q13220204),P138,c(Q515)|c(Q355304))
action less
action union
action find_tuple_counts
relation P138
type Q13220204
type Q515
action find_tuple_counts
relation P138
type Q13220204
type Q355304
action count
action filter_multi_types
action find
entity Q1770737
relation P138
type Q515
type Q355304
[ANSWERS]
[{'concept': 'Q13220204'}, 'P138', [{'concept': 'Q515'}, {'concept': 'Q355304'}]]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?w ) AS ?q ) WHERE { { ?b property:P138 ?w . ?w rdf:type ontology:Q515 . ?b rdf:type ontology:Q13220204 } UNION { ?w rdf:type ontology:Q355304 . ?b rdf:type ontology:Q13220204 . ?b property:P138 ?w } } GROUP BY ?b } . FILTER ( ?q < ?e ) . { SELECT DISTINCT ( COUNT ( ?s ) AS ?e ) WHERE { resource:Q1770737 property:P138 ?s . { { ?s rdf:type ontology:Q515 } UNION { ?s rdf:type ontology:Q355304 } } } } }
Vlagtwedde Suan Luang Koboko District Pader District Nong Ya Plong Nakasongola District Busia District Amuru District Chum Ta Bong Samphanthawong Kole District Arua District Oostburg Plandište Nakapiripirit District Lyantonde District Samrong Srinagarindra Phra Samut Chedi Limburg Na Haeo Bang Pla Ma Kiboga District Mae Ai Bukwo District Butaleja District Khan Na Yao Bang Phlat Sikyona Swanson County Kaeng Krachan Chom Thong Binnenmaas Wakiso District Ko Kut Leek Kanungu District Serere District Tynaarlo Ko Pha-ngan Khrestivka Chordeleg Canton Kyegegwa District Leoncio Prado Province Amolatar District Noen Kham Mitooma District Winsum Blantyre District Menameradiel Babadaýhan District Polesia Voblast Mpigi District Wachirabarami Bakhmut Vibhavadi Delfzijl Phaya Mengrai Aristotelis Amuria District Coevorden Kayunga District Napak District Kaberamaido District Bang Na Kaabong District Nakaseke District Moyo District Reiderland Mubende District Khon San Lat Phrao Bang Kho Laem Daniel Alcides Carrión Province Ntungamo District Stadskanaal Huai Thap Than Kalungu District Sirindhorn Ko Lanta Rakai District Khao Kho Kabang Noordenveld Masindi District Mariscal Ramón Castilla Province Rubirizi District Adjumani District Thung Khru Masaka District Belisario Boeto Province Vatutine Echteld Nong Mamong Alebtong District Chai Buri Krāslava Mae Fa Luang Grau Province Kautokeino Yenakiieve Frunzyenski District Pavlos Melas Bang Bon Buikwe District West Flanders Namutumba District Veendam Flemish Brabant Kasese District Luuka District Chiang Muan Phu Kradueng Nwoya District Holibivka Kirov Krai Hoogezand-Sappemeer Sap Yai Kamuli District East Flanders Kamwenge District Kara-Buura District Bukedea District Antwerp Rong Kham Abim District Zombo District Mae Poen Nea Smyrni Bushenyi District Noordoostpolder Manafwa District Zuidhorn Sevilla de Oro Canton Bulambuli District Ubolratana Lira District Sironko District Sam Roi Yot Aizawl district Khlong Hoi Khong Reimerswaal Marum Moroto District Kibaale District Fuerte Olimpo Loppersum Buhweju District Kaliro District Kyenjojo District Aleksandrovac Din Daeng Kapchorwa District Gulu District Mbale District Sokuluk District Kadiivka Budaka District Kiryandongo District Groningen Mayuge District Kiruhura District Vaishali district Grootegast Soroti District Buliisa District Khlong Sam Wa Olympos Ko Chang Bugiri District De Fryske Marren Hoima District Phu Ruea Nebbi District Bang Khae Thawi Watthana Harlingen Alchevsk Pallisa District Katakwi District Franekeradeel Jinja District Galyani Vadhana Thung Chang Pangaio Prawet Kitgum District Kampala District Iganga District Filadelfia Sembabule District General Sánchez Cerro Province Kormista Oyam District Khwao Sinarin Bududa District Bueng Kum Bang Klam Bernisse Ko Samui Augst Schiermonnikoog Dronten Bukomansimbi District Kibuku District St. Ursen Isingiro District Kaiseraugst Fredrikstad Ferwerderadiel Tak Fa Yan Nawa Graafstroom Amudat District Sida Ibanda District Hankha Kyankwanzi District Kollumerland c.a. Dokolo District Lyeninski District Oldambt Troistorrents Tororo District Mae Wong Varanasi district Jorge Basadre Province Otuke District Jerusalén Bilyayivka Bang Sue Kalangala District Bergh Walloon Brabant Mbarara District Mukono District Borger-Odoorn Mariscal Cáceres Province Achtkarspelen Kumi District Watthana Rukungiri District Chulabhorn Lwengo District Kisoro District Buyende District Kotido District Luxembourg Jerusalén Ngora District Sai Mai Pedro Moncayo Canton Sam Ngam Mityana District Eijsden-Margraten Bundibugyo District Lamwo District Leeuwarderadeel Lan Sak Pekela Khao Phanom Yumbe District Khlong Toei Ban Haet Bedum Non Sila Cuenca Canton Kirawsk District Agago District Slochteren Camilo Ponce Enríquez Canton Saphan Sung Heerenveen Namur Leeuwarden Liège Hainaut Wang Thonglang Na Mom Bua Lai Province of Brabant Kabale District Luwero District
Zuidhorn De Fryske Marren Delfzijl
action less
action union
action find_tuple_counts
relation named after
type second-level administrative country subdivision
type city
action find_tuple_counts
relation named after
type second-level administrative country subdivision
type watercourse
action count
action filter_multi_types
action find
entity Albufeira Municipality
relation named after
type city
type watercourse
[{'concept': 'second-level administrative country subdivision'}, 'named after', [{'concept': 'city'}, {'concept': 'watercourse'}]]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?w ) AS ?q ) WHERE { { ?b property:named_after ?w . ?w rdf:type ontology:city . ?b rdf:type ontology:second-level_administrative_country_subdivision } UNION { ?w rdf:type ontology:watercourse . ?b rdf:type ontology:second-level_administrative_country_subdivision . ?b property:named_after ?w } } GROUP BY ?b } . FILTER ( ?q < ?e ) . { SELECT DISTINCT ( COUNT ( ?s ) AS ?e ) WHERE { resource:Albufeira_Municipality property:named_after ?s . { { ?s rdf:type ontology:city } UNION { ?s rdf:type ontology:watercourse } } } } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q322986
P1383
Q56061
USER
How many administrative territories are administratively managed by Delfzijl ?
(Q322986,P1383,c(Q56061))
action count
action filter_type
action find
entity Q322986
relation P1383
type Q56061
['Q322986', 'P1383', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?g ) WHERE { resource:Q322986 property:P1383 ?k . ?k rdf:type ontology:Q56061 }
Delfzijl
action count
action filter_type
action find
entity Delfzijl
relation contains settlement
type administrative territorial entity
['Delfzijl', 'contains settlement', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?g ) WHERE { resource:Delfzijl property:contains_settlement ?k . ?k rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
SYSTEM
18
Q2249702 Q1904685 Q737877 Q1905772 Q2694306 Q2075362 Q2508579 Q2754034 Q2586966 Q777820 Q2740948 Q2450471 Q2751775 Q2649983 Q2931074 Q599733 Q2508750 Q2374710
(Q322986,P1383,c(Q56061))
action count
action filter_type
action find
entity Q322986
relation P1383
type Q56061
[ANSWER]
['Q322986', 'P1383', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?g ) WHERE { resource:Q322986 property:P1383 ?k . ?k rdf:type ontology:Q56061 }
Weiwerd Naterij Termunten Wagenborgen Spijk, Groningen Biessum Borgsweer Kopaf Losdorp Meedhuizen Godlinze Krewerd Uitwierde Bierum Termunterzijl Farmsum Woldendorp Holwierde
18
action count
action filter_type
action find
entity Delfzijl
relation contains settlement
type administrative territorial entity
['Delfzijl', 'contains settlement', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?g ) WHERE { resource:Delfzijl property:contains_settlement ?k . ?k rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2721521
P1383
Q56061
USER
Which administrative territories belong to Măciuca ?
(Q2721521,P1383,c(Q56061))
action filter_type
action find
entity Q2721521
relation P1383
type Q56061
['Q2721521', 'P1383', {'concept': 'Q56061'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q56061 . resource:Q2721521 property:P1383 ?q }
Măciuca
action filter_type
action find
entity Măciuca
relation contains settlement
type administrative territorial entity
['Măciuca', 'contains settlement', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:administrative_territorial_entity . resource:Măciuca property:contains_settlement ?q }
[]
administrative territorial entity
Q12135076 Q12172389 Q12123159
SYSTEM
Oveselu, Ștefănești, Măciuceni
Q12172389 Q12123159 Q12135076 Q12084382 Q12142353 Q12170405 Q12122372 Q12083711 Q12106481
(Q2721521,P1383,c(Q56061))
action filter_type
action find
entity Q2721521
relation P1383
type Q56061
[ANSWERS] belong to Măciuca
['Q2721521', 'P1383', {'concept': 'Q56061'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q56061 . resource:Q2721521 property:P1383 ?q }
Ștefănești Măciuceni Oveselu Botorani Popești Ciocănari Măldărești Bocșa Zăvoieni
Oveselu, Ștefănești and Măciuceni belong to Măciuca
Oveselu Ștefănești Măciuceni
action filter_type
action find
entity Măciuca
relation contains settlement
type administrative territorial entity
['Măciuca', 'contains settlement', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:administrative_territorial_entity . resource:Măciuca property:contains_settlement ?q }
[]
Clarification
Simple Question|Single Entity|Indirect
Q12172389
P17
Q15617994
USER
Which administrative territory is that administrative territory a part of ?
(Q12172389,P17,c(Q15617994))
action filter_type
action find
entity Q12172389
relation P17
type Q15617994
['Q12172389', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?d WHERE { resource:Q12172389 property:P17 ?d . ?d rdf:type ontology:Q15617994 }
Ștefănești
action filter_type
action find
entity Ștefănești
relation country
type designation for an administrative territorial entity
['Ștefănești', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { resource:Ștefănești property:country ?d . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Clarification for simple ques.
Q12135076
SYSTEM
Did you mean Oveselu ?
Q12135076 Q12172389 Q12123159
(Q12135076,P17,c(Q15617994)) (Q12172389,P17,c(Q15617994)) (Q12123159,P17,c(Q15617994))
[ANSWER]
['Q12135076', 'P17', {'concept': 'Q15617994'}] ['Q12172389', 'P17', {'concept': 'Q15617994'}] ['Q12123159', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?d WHERE { resource:Q12172389 property:P17 ?d . ?d rdf:type ontology:Q15617994 }
Oveselu Ștefănești Măciuceni
Did you mean Oveselu ?
Oveselu
['Oveselu', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Ștefănești', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Măciuceni', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { resource:Ștefănești property:country ?d . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
USER
No, I meant Ștefănești. Could you tell me the answer for that?
(Q12172389,P17,c(Q15617994))
Q12172389
['Q12172389', 'P17', {'concept': 'Q15617994'}]
['Ștefănești', 'country', {'concept': 'designation for an administrative territorial entity'}]
[]
Q218
SYSTEM
Romania
Q218
(Q12172389,P17,c(Q15617994))
action filter_type
action find
entity Q12172389
relation P17
type Q15617994
[ANSWER] is that administrative territory a part of
['Q12172389', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?d WHERE { resource:Q12172389 property:P17 ?d . ?d rdf:type ontology:Q15617994 }
Romania
Romania is that administrative territory a part of
Romania
action filter_type
action find
entity Ștefănești
relation country
type designation for an administrative territorial entity
['Ștefănești', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { resource:Ștefănești property:country ?d . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q4683438 Q2721521
P17
Q15617994
USER
Which administrative territories are Măciuca and Câlneș River located in ?
AND((Q2721521,P17,c(Q15617994)), (Q4683438,P17,c(Q15617994)))
action filter_type
action intersection
action find
entity Q2721521
relation P17
action find
entity Q4683438
relation P17
type Q15617994
{'AND': [['Q2721521', 'P17', {'concept': 'Q15617994'}], ['Q4683438', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q15617994 . resource:Q2721521 property:P17 ?r . resource:Q4683438 property:P17 ?r }
Câlneș River Măciuca
action filter_type
action intersection
action find
entity Măciuca
relation country
action find
entity Câlneș River
relation country
type designation for an administrative territorial entity
{'AND': [['Măciuca', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Câlneș River', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Măciuca property:country ?r . resource:Câlneș_River property:country ?r }
[]
designation for an administrative territorial entity
Q218
SYSTEM
Romania
Q218
AND((Q2721521,P17,c(Q15617994)), (Q4683438,P17,c(Q15617994)))
action filter_type
action intersection
action find
entity Q2721521
relation P17
action find
entity Q4683438
relation P17
type Q15617994
Which administrative territories is Măciuca and Câlneș River located in
{'AND': [['Q2721521', 'P17', {'concept': 'Q15617994'}], ['Q4683438', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q15617994 . resource:Q2721521 property:P17 ?r . resource:Q4683438 property:P17 ?r }
Romania
Which administrative territories is Măciuca and Câlneș River located in
Romania
action filter_type
action intersection
action find
entity Măciuca
relation country
action find
entity Câlneș River
relation country
type designation for an administrative territorial entity
{'AND': [['Măciuca', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Câlneș River', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Măciuca property:country ?r . resource:Câlneș_River property:country ?r }
[]