Simple Question (Direct)
Simple Question
Q1353300
P106
Q12737077
USER
What is the profession of Erich Steinfurth ?
(Q1353300,P106,c(Q12737077))
action filter_type
action find
entity Q1353300
relation P106
type Q12737077
['Q1353300', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q12737077 . resource:Q1353300 property:P106 ?r }
Erich Steinfurth
action filter_type
action find
entity Erich Steinfurth
relation occupation
type occupation
['Erich Steinfurth', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:occupation . resource:Erich_Steinfurth property:occupation ?r }
[]
occupation
Q82955
SYSTEM
politician
Q82955
(Q1353300,P106,c(Q12737077))
action filter_type
action find
entity Q1353300
relation P106
type Q12737077
The profession of Erich Steinfurth is a [ANSWER]
['Q1353300', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q12737077 . resource:Q1353300 property:P106 ?r }
politician
The profession of Erich Steinfurth is a politician
politician
action filter_type
action find
entity Erich Steinfurth
relation occupation
type occupation
['Erich Steinfurth', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:occupation . resource:Erich_Steinfurth property:occupation ?r }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1353300
P937
Q56061
USER
Where did Erich Steinfurth work ?
(Q1353300,P937,c(Q56061))
action filter_type
action find
entity Q1353300
relation P937
type Q56061
['Q1353300', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?b WHERE { resource:Q1353300 property:P937 ?b . ?b rdf:type ontology:Q56061 }
Erich Steinfurth
action filter_type
action find
entity Erich Steinfurth
relation work location
type administrative territorial entity
['Erich Steinfurth', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { resource:Erich_Steinfurth property:work_location ?b . ?b rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q64
SYSTEM
Berlin
Q64
(Q1353300,P937,c(Q56061))
action filter_type
action find
entity Q1353300
relation P937
type Q56061
Erich Steinfurth worked in [ANSWER]
['Q1353300', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?b WHERE { resource:Q1353300 property:P937 ?b . ?b rdf:type ontology:Q56061 }
Berlin
Erich Steinfurth worked in Berlin
Berlin
action filter_type
action find
entity Erich Steinfurth
relation work location
type administrative territorial entity
['Erich Steinfurth', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { resource:Erich_Steinfurth property:work_location ?b . ?b rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q64
P163
Q17335294
USER
Which coat of arms is associated with that administrative territory ?
(Q64,P163,c(Q17335294))
action filter_type
action find
entity Q64
relation P163
type Q17335294
['Q64', 'P163', {'concept': 'Q17335294'}]
SELECT DISTINCT ?q WHERE { resource:Q64 property:P163 ?q . ?q rdf:type ontology:Q17335294 }
Berlin
action filter_type
action find
entity Berlin
relation flag
type flag or coat of arms
['Berlin', 'flag', {'concept': 'flag or coat of arms'}]
SELECT DISTINCT ?q WHERE { resource:Berlin property:flag ?q . ?q rdf:type ontology:flag_or_coat_of_arms }
[]
flag or coat of arms
Q819691
SYSTEM
flag of Berlin
Q819691
(Q64,P163,c(Q17335294))
action filter_type
action find
entity Q64
relation P163
type Q17335294
The [ANSWER] is associated with that administrative territory
['Q64', 'P163', {'concept': 'Q17335294'}]
SELECT DISTINCT ?q WHERE { resource:Q64 property:P163 ?q . ?q rdf:type ontology:Q17335294 }
flag of Berlin
The flag of Berlin is associated with that administrative territory
flag of Berlin
action filter_type
action find
entity Berlin
relation flag
type flag or coat of arms
['Berlin', 'flag', {'concept': 'flag or coat of arms'}]
SELECT DISTINCT ?q WHERE { resource:Berlin property:flag ?q . ?q rdf:type ontology:flag_or_coat_of_arms }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Indirect
P163
Q17335294 Q515 Q13220204
USER
How many coats of arms have approximately the same number of cities and administrative country subdivisions as their flagas that coat of arms ?
(c(Q515)|c(Q13220204),P163,c(Q17335294))
action count
action approx
action union
action find_reverse_tuple_counts
relation P163
type Q17335294
type Q515
action find_reverse_tuple_counts
relation P163
type Q17335294
type Q13220204
action count
action filter_multi_types
action find_reverse
entity Q819691
relation P163
type Q515
type Q13220204
[[{'concept': 'Q515'}, {'concept': 'Q13220204'}], 'P163', {'concept': 'Q17335294'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?o ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?g ) WHERE { ?c property:P163 resource:Q819691 . { VALUES ( ?a ) { ( ontology:Q515 ) ( ontology:Q13220204 ) } . ?c rdf:type ?a } } } . FILTER ( ?r = ?g ) . { SELECT DISTINCT ( COUNT ( ?i ) AS ?r ) ?u WHERE { { ?i property:P163 ?u . ?i rdf:type ontology:Q515 . ?u rdf:type ontology:Q17335294 } UNION { ?i property:P163 ?u . ?u rdf:type ontology:Q17335294 . ?i rdf:type ontology:Q13220204 } } GROUP BY ?u } }
action count
action approx
action union
action find_reverse_tuple_counts
relation flag
type flag or coat of arms
type city
action find_reverse_tuple_counts
relation flag
type flag or coat of arms
type second-level administrative country subdivision
action count
action filter_multi_types
action find_reverse
entity flag of Berlin
relation flag
type city
type second-level administrative country subdivision
[[{'concept': 'city'}, {'concept': 'second-level administrative country subdivision'}], 'flag', {'concept': 'flag or coat of arms'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?o ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?g ) WHERE { ?c property:flag resource:flag_of_Berlin . { VALUES ( ?a ) { ( ontology:city ) ( ontology:second-level_administrative_country_subdivision ) } . ?c rdf:type ?a } } } . FILTER ( ?r = ?g ) . { SELECT DISTINCT ( COUNT ( ?i ) AS ?r ) ?u WHERE { { ?i property:flag ?u . ?i rdf:type ontology:city . ?u rdf:type ontology:flag_or_coat_of_arms } UNION { ?i property:flag ?u . ?u rdf:type ontology:flag_or_coat_of_arms . ?i rdf:type ontology:second-level_administrative_country_subdivision } } GROUP BY ?u } }
[]
flag or coat of arms city second-level administrative country subdivision
SYSTEM
402
Q5456707 Q687222 Q735046 Q21752527 Q2635540 Q2081442 Q2635547 Q2051962 Q5718813 Q2456556 Q2199869 Q2250163 Q752195 Q2661050 Q834419 Q9260349 Q3039030 Q3039032 Q1408345 Q3633957 Q18088321 Q8241582 Q5718436 Q5718434 Q4490424 Q4490427 Q2395413 Q5456716 Q1426515 Q2616924 Q2100376 Q2600445 Q4487511 Q863844 Q4486572 Q1095488 Q1048963 Q3497754 Q4485846 Q4490544 Q2301249 Q15978078 Q1987311 Q842327 Q2470827 Q2154092 Q842322 Q763140 Q2993784 Q5456768 Q2129668 Q5456764 Q5456767 Q5456761 Q5413522 Q2750384 Q5718545 Q2337143 Q657099 Q1064696 Q699554 Q835502 Q707471 Q12143494 Q760401 Q1750603 Q2742210 Q907381 Q731163 Q5456819 Q5456817 Q5456815 Q5456810 Q5456811 Q2976242 Q5718680 Q381988 Q715218 Q59921 Q5718441 Q5456733 Q5456732 Q4488022 Q2993812 Q2559741 Q693569 Q17622301 Q4485526 Q730106 Q1048951 Q5456792 Q2453540 Q2308548 Q1890974 Q225489 Q2359650 Q783490 Q3435436 Q954531 Q752559 Q5456788 Q5456789 Q5456787 Q5456784 Q752557 Q5456781 Q857778 Q2444822 Q2640436 Q1426471 Q924444 Q4486900 Q2997710 Q854894 Q685217 Q5718532 Q4490508 Q2566349 Q4490505 Q5456856 Q2668687 Q2917560 Q693701 Q2077333 Q4487162 Q4490484 Q12014317 Q2635320 Q877603 Q1922718 Q4784194 Q4573783 Q4490436 Q2268966 Q630077 Q2635524 Q5456676 Q148807 Q863855 Q2897956 Q2278121 Q2389568 Q3263233 Q5456678 Q4487111 Q4487112 Q843879 Q687062 Q4485399 Q21948487 Q4488208 Q2330297 Q2361840 Q2130987 Q459788 Q4487343 Q3352503 Q2836731 Q5456779 Q5456777 Q2697223 Q5456775 Q5456773 Q5456771 Q5456770 Q2145426 Q676803 Q1426622 Q752562 Q5718576 Q752566 Q736625 Q752569 Q2674744 Q2361835 Q18560 Q2618556 Q523403 Q4487822 Q2334348 Q2733623 Q20019293 Q783961 Q3562401 Q2469044 Q2419293 Q2387656 Q9646352 Q2621952 Q2015789 Q1956631 Q5456801 Q5456802 Q5456804 Q5456807 Q863816 Q2423846 Q693758 Q876607 Q2790848 Q3039014 Q2635579 Q4490374 Q7624391 Q4490376 Q4490377 Q5718594 Q4490372 Q2654018 Q185692 Q4487474 Q2474848 Q849747 Q5718579 Q122482 Q13583304 Q693717 Q1397967 Q5456791 Q5456790 Q2360287 Q5456797 Q5456798 Q698762 Q2777623 Q14856641 Q2635701 Q695125 Q1853811 Q932849 Q1004161 Q4486670 Q4486914 Q199961 Q2564146 Q1091411 Q4490497 Q1426588 Q5456841 Q2630389 Q5456842 Q2994686 Q818665 Q4490496 Q4490499 Q4490498 Q3038991 Q2604262 Q752837 Q2245162 Q734071 Q3039053 Q5718417 Q854882 Q5456838 Q4490401 Q5456831 Q8241736 Q5456834 Q5456835 Q938601 Q2470334 Q2165848 Q2584616 Q4490392 Q4490391 Q460072 Q5718709 Q12989 Q5718465 Q2774900 Q16801255 Q44936 Q16830040 Q1402799 Q5456741 Q5456747 Q619799 Q5456748 Q1983397 Q186456 Q2635874 Q2075178 Q2586114 Q752573 Q4485724 Q828147 Q1861069 Q2632980 Q1426496 Q2620742 Q2376574 Q2073258 Q526662 Q933011 Q2452642 Q629857 Q1063386 Q2660409 Q2635531 Q5718510 Q2993349 Q736760 Q18714057 Q698379 Q2423859 Q2470376 Q2084156 Q2976226 Q3434487 Q4485823 Q18628331 Q3973088 Q286139 Q877588 Q34494 Q1052731 Q4490366 Q4490364 Q4490360 Q2616930 Q2549429 Q913583 Q2279946 Q4487916 Q906340 Q1135849 Q2626006 Q530807 Q2371201 Q2651997 Q8141198 Q837312 Q2529313 Q2357910 Q497887 Q172446 Q4490827 Q5685196 Q5456718 Q27269818 Q2997255 Q5456713 Q2415385 Q21150594 Q819691 Q8241807 Q2915836 Q5718846 Q1426620 Q8241680 Q2981718 Q2641161 Q2981712 Q18604 Q2244303 Q4486355 Q3039064 Q5718468 Q862088 Q4490412 Q4490414 Q4490416 Q5456829 Q5456828 Q19915225 Q5456823 Q5456822 Q5456821 Q5456820 Q5456827 Q5456826 Q2132438 Q5456824 Q1144745 Q3395407 Q834691 Q4490381 Q26276562 Q2086033 Q21296162 Q947220 Q677105 Q1073663 Q4488035 Q1426387 Q21635013 Q2975851 Q11721817 Q856849 Q2635764 Q5456754 Q5456751 Q5490936 Q756694 Q158591 Q2586101 Q2133401 Q2426802 Q4487251 Q2424575 Q2387313
(c(Q515)|c(Q13220204),P163,c(Q17335294))
action count
action approx
action union
action find_reverse_tuple_counts
relation P163
type Q17335294
type Q515
action find_reverse_tuple_counts
relation P163
type Q17335294
type Q13220204
action count
action filter_multi_types
action find_reverse
entity Q819691
relation P163
type Q515
type Q13220204
[ANSWER]
[[{'concept': 'Q515'}, {'concept': 'Q13220204'}], 'P163', {'concept': 'Q17335294'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?o ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?g ) WHERE { ?c property:P163 resource:Q819691 . { VALUES ( ?a ) { ( ontology:Q515 ) ( ontology:Q13220204 ) } . ?c rdf:type ?a } } } . FILTER ( ?r = ?g ) . { SELECT DISTINCT ( COUNT ( ?i ) AS ?r ) ?u WHERE { { ?i property:P163 ?u . ?i rdf:type ontology:Q515 . ?u rdf:type ontology:Q17335294 } UNION { ?i property:P163 ?u . ?u rdf:type ontology:Q17335294 . ?i rdf:type ontology:Q13220204 } } GROUP BY ?u } }
flag of Boston Flag of North Rhine-Westphalia Flag of Dagestan Flag of Vilnius Flag of Nenets Autonomous Okrug Flag of Sonora Flag of Yaroslavl Oblast Flag of Zakynthos Flag of Tazacorte Flag of Amur Oblast Flag of Kent flag of North Brabant Flag of Melilla flag of Hesse flag of Bonaire flag of OPEC Flag of Minneapolis Flag of Milwaukee Flag of the Governor General of Canada Flag of the Sovereign Military Order of Malta flag of Almere Flag of Avilés Flag of Arganda del Rey flag of Aranjuez flag of Chusovoy flag of Chyormoz Flag of Sint Eustatius Flag of Caernarfonshire Flag of the Community of Madrid flag of North Holland Flag of Sarawak Flag of Perak Flag of Poltava Oblast Flag of the Azerbaijan Soviet Socialist Republic Flag of Koryak Okrug Flag of Puntland flag of the Kirghiz Soviet Socialist Republic Flag of Devon Flag of Voronezh flag of Yaya Flag of Chukotka Autonomous Okrug Flag of Manaus Flag of Chita Oblast Flag of Ingushetia Flag of Sikkim Flag of Tamaulipas Flag of the Udmurt Republic Flag of Extremadura Flag of Stavropol Krai Flag of Lima Flag of Quintana Roo Flag of Kutaisi Flag of Lethbridge Flag of Johannesburg Flag of Essex Flag of Houston Flag of Garafía Flag of Baja California Sur Flag of Perm Flag of the Collectivity of Saint Martin flag of Manchukuo Flag of the Republic of Buryatia Flag of Bavaria flag of Kerch Flag of Andalusia Flag of the Jewish Autonomous Oblast flag of Esperanto Flag of Khakassia Flag of Washington Flag of Santa Barbara, California Flag of Saint Christopher-Nevis-Anguilla Flag of Sabaragamuwa Flag of Richmond, British Columbia Flag of Richmond Flag of Acre Flag of Móstoles flag of Yugoslavia Flag of the Mari El Republic Flag of Sicily Flag of Arucas Flag of Detroit Flag of Derbyshire Flag of Taymyr Autonomous Okrug Flag of Krasnoyarsk Krai Flag of Kamchatka Oblast Flag of New Caledonia Flag of the Islamic State Beloostrov flag Flag of Florida flag of the Georgian Soviet Socialist Republic Flag of Nottinghamshire flag of the City of London Flag of Amazonas Flag of Chihuahua flag of Crimea Flag of Sardinia flag of the Association of Southeast Asian Nations Flag of Trondheim Flag of Naples Flag of Ohio Flag of North Central Province Flag of North Eastern Province Flag of New Orleans Flag of Nashville, Tennessee Flag of Missouri Flag of Mon State flag of Campania Flag of Zabaykalsky Krai flag of Samara Oblast flag of Scania Flag of Mato Grosso Flag of Malacca flag of Oryol Oblast flag of the Estonian Soviet Socialist Republic Flag of Bashkortostan Flag of Figueres flag of Ertil Flag of Coahuila Flag of Evenk Autonomous Okrug Flag of the City of Nelson Flag of Calgary Flag of San Francisco Flag of Saxony flag of Lelystad Flag of Novy Uregoy Flag of Shushary Flag of Curitiba flag of Chelyabinsk Oblast flag of the Armenian Soviet Socialist Republic Flag of Ceará Flag of Tampa Flag of Łódź flag of Shalinsky district Flag of Omsk Oblast Flag of the African Union Flag of Sakhalin Oblast Flag of Akershus flag of Catalonia flag of the Moldavian Soviet Socialist Republic Flag of Acadia Flag of Nuevo León Flag of the Arab Revolt flag of Sealand Flag of Amman Flag of Nizhny Novgorod flag of Nizhny Tagil Flag of West Virginia Flag of Saxony-Anhalt Flag of Armavir flag of Lieshout Flag of Ust-Orda Buryat Okrug flag of Overijssel flag of Great Britain Flag of Sevastopol Flag of NATO flag of Oryol Flag of Barcelona Flag of Magallanes Flag of Minorca Flag of Middlesex Flag of Tlaxcala flag of Madison, Wisconsin flag of Maastricht Flag of Lisbon Flag of Los Ríos Region Flag of Azad Kashmir Flag of Altai Krai flag of Los Angeles Flag of Nevada Flag of Guía de Isora Flag of Delaware Flag of Utah Flag of Maryland Flag of Mato Grosso do Sul Flag of Benelux flag of Cheshire Flag of Podgorica Flag of Valladolid flag of Simferopol Flag of Voronezh Oblast Flag of Herm flag of Baarn Flag of the League of Arab States Flag of Mohéli Flag of Donetsk Oblast flag of Belgorod Oblast Flag of Murmansk Oblast flag of Belém Flag of Vologda Oblast Flag of Tenerife Flag of Skopje Flag of Pittsburgh Flag of Piła Flag of Portland Flag of Red Deer, Alberta flag of the Byelorussian Soviet Socialist Republic Kurgan Oblast Flag flag of Rhineland-Palatinate Flag of Ceuta Flag of Greater Poland Voivodeship Flag of Denver Flag of Kemerovo Oblast flag of Cherdyn flag of the German Democratic Republic flag of Cheremkhovo flag of Cheremkhovsky rayon Flag of Jaén flag of Chelyabinsk flag of Apure flag of Wales Flag of Penang flag of the Brussels-Capital Region Flag of North Ossetia–Alania Flag of Huesca flag of Europe Flag of British Hong Kong flag of Saarland Flag of Khanty–Mansi Autonomous Okrug Flag of Northern Province Flag of North Western Province flag of Ulyanovsk Oblast Flag of Philadelphia Flag of Pichilemu flag of Baden-Württemberg Flag of Ottawa unofficial flag of Anna Paulowna Flag of Irkutsk Oblast flag of French Southern and Antarctic Lands Flag of Luhansk Oblast flag of the Turkmen Soviet Socialist Republic flag of Friesland flag of Kronstadt Flag of Mariinski Posad Flag of Transnistria flag of Tambov Oblast flag of Navarre flag of Elektrostal Flag of Kaliningrad Oblast Flag of Westmorland flag of Tomsk Oblast Flag of Western Province Flag of Primorsky Krai Flag of Tristan da Cunha flag of Elektrogorsk flag of Elista flag of Elektrougli Flag of Indianapolis Flag of Minas Gerais Flag of Illinois Flag of Lesser Poland Voivodeship Flag of Nebraska Flag of Windsor, Ontario Flag of Alaraz flag of the Kazakh Soviet Socialist Republic Flag of Vernon, British Columbia flag of Chernushka Flag of Thunder Bay Flag of Majorca Flag of Uva Flag of Valdivia Flag of Galicia Flag of Vladimir Oblast Flag of Donetsk flag of Zeeland flag of Chernogorsk flag of Chernogolovka Flag of the Commonwealth of Nations Flag of Pontevedra flag of Flanders Flag of Campaspero Flag of Lviv Oblast flag of Aalsmeer Flag of Jerusalem Flag of the Donetsk People's Republic Flag of Chicago Flag of Gloucestershire Flag of Guadalajara Tallinn flag Flag of Hamilton, Ontario Flag of Moscow flag of Hong Kong flag of Tula Oblast Flag of Sark flag of Gelderland Flag of Connecticut Flag of Veliky Ustyug Flag of Minnesota flag of Masovian Voivodeship flag of Penza Oblast Flag of Vancouver Flag of Bryansk Oblast White-Red-White Flag flag of Warsaw Flag of Dallas flag of the Valencian Community Flag of Franche-Comté Flag of the Azores flag of the Uzbek Soviet Socialist Republic Flag of Macedonia Flag of Yamalo-Nenets Autonomous Okrug Flag of Cuéllar flag of Saratov Oblast Flag of Idaho Flag of Palafrugell flag of Schleswig-Holstein flag of Ryazan Oblast flag of Rostov Oblast Flag of Salta Flag of Amapá flag of Belgrade Flag of Vologda flag of Northamptonshire Standard of the President of the Italian Republic Flag of the Altai Republic flag of the Ukrainian Soviet Socialist Republic flag of Victoria flag of the Tajik Soviet Socialist Republic flag of Chebarkul flag of Chaplygin flag of Chapaevsk flag of South Holland Flag of Bohemia Flags of the Confederate States of America flag of Antwerp Flag of Sochi Flag of Washington, D.C. Flag of Zanzibar Flag of Pernambuco Flag of Quebec City flag of the state of Amazonas flag of Ivanovo Oblast Flag of Recife Flag of North Dakota Flag of Astrakhan Oblast Flag of Volgograd Oblast Flag of Azawad flag of the United Nations Flag of Topkanovskoe Flag of Beniel Flag of Central Province Nail & Gear Flag of Novosibirsk Oblast Flag of Buffalo, New York Flag of Khabarovsk Krai flag of Appingedam flag of Berlin Flag of Pamplona Flag of Tbilisi Flag of Vitoria-Gasteiz Flag of Montreal Flag of Gijón Flag of Rio Grande do Norte Flag of Perm Oblast Flag of Paraná flag of Herefordshire Flag of Alagoas Flag of Kaluga city Flag of the European Coal and Steel Community Flag of Cangas do Morrazo Flag of Adjara flag of Chekhov flag of Chita flag of Chishminsky rayon Flag of Sussex Flag of St. Louis flag of Sint-Niklaas Flag of Shropshire Flag of Seattle Flag of Scarborough, Ontario flag of Salt Lake City Flag of Springfield, Illinois Flag of Southern Province flag of Utrecht Flag of Sogn og Fjordane Flag of Easter Island Flag of Oviedo Flag of the Sakha Republic flag of Cherepovets flag of the University of Zaragoza Flag of Saint Petersburg flag of Bussum flag of Anzoátegui Flag of the Republic of Karelia Flag of Castile and León flag of Tara, Omsk Oblast Flag of Bornholm Flag of the Antarctic Treaty Flag of the President of the United States Flag of Sabah flag of the Lithuanian Soviet Socialist Republic Flag of Arkhangelsk Oblast Flag of Huntingdonshire Flag of Głogów Flag of Fasnia Flag of Curaçao Flag of Guernsey flag of Groningen flag of Limburg Flag of Agin-Buryat Okrug flag of Norilsk flag of Tver Oblast Flag of Magadan Oblast
402
action count
action approx
action union
action find_reverse_tuple_counts
relation flag
type flag or coat of arms
type city
action find_reverse_tuple_counts
relation flag
type flag or coat of arms
type second-level administrative country subdivision
action count
action filter_multi_types
action find_reverse
entity flag of Berlin
relation flag
type city
type second-level administrative country subdivision
[[{'concept': 'city'}, {'concept': 'second-level administrative country subdivision'}], 'flag', {'concept': 'flag or coat of arms'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?o ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?g ) WHERE { ?c property:flag resource:flag_of_Berlin . { VALUES ( ?a ) { ( ontology:city ) ( ontology:second-level_administrative_country_subdivision ) } . ?c rdf:type ?a } } } . FILTER ( ?r = ?g ) . { SELECT DISTINCT ( COUNT ( ?i ) AS ?r ) ?u WHERE { { ?i property:flag ?u . ?i rdf:type ontology:city . ?u rdf:type ontology:flag_or_coat_of_arms } UNION { ?i property:flag ?u . ?u rdf:type ontology:flag_or_coat_of_arms . ?i rdf:type ontology:second-level_administrative_country_subdivision } } GROUP BY ?u } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P748
Q502895 Q1752346 Q12737077
USER
How many occupations are appointed by exactly 1 people or assemblies ?
(c(Q12737077),P748,c(Q502895)|c(Q1752346))
action count
action equal
action union
action find_tuple_counts
relation P748
type Q12737077
type Q502895
action find_tuple_counts
relation P748
type Q12737077
type Q1752346
value 1
[{'concept': 'Q12737077'}, 'P748', [{'concept': 'Q502895'}, {'concept': 'Q1752346'}]]
SELECT DISTINCT ( COUNT ( ?g ) AS ?y ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?d ) AS ?i ) WHERE { { ?g property:P748 ?d . ?g rdf:type ontology:Q12737077 . ?d rdf:type ontology:Q1752346 } UNION { ?g property:P748 ?d . ?d rdf:type ontology:Q502895 . ?g rdf:type ontology:Q12737077 } } GROUP BY ?g } . FILTER ( ?i = 1 ) }
action count
action equal
action union
action find_tuple_counts
relation appointed by
type occupation
type common name
action find_tuple_counts
relation appointed by
type occupation
type assembly
value 1
[{'concept': 'occupation'}, 'appointed by', [{'concept': 'common name'}, {'concept': 'assembly'}]]
SELECT DISTINCT ( COUNT ( ?g ) AS ?y ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?d ) AS ?i ) WHERE { { ?g property:appointed_by ?d . ?g rdf:type ontology:occupation . ?d rdf:type ontology:assembly } UNION { ?g property:appointed_by ?d . ?d rdf:type ontology:common_name . ?g rdf:type ontology:occupation } } GROUP BY ?g } . FILTER ( ?i = 1 ) }
[]
common name assembly occupation
SYSTEM
49
Q1846384 Q2631987 Q14984399 Q2484309 Q2012061 Q7444357 Q7444352 Q15305714 Q3246797 Q1371091 Q3315116 Q3477307 Q1369302 Q842386 Q835586 Q19056310 Q890030 Q796593 Q531471 Q2636053 Q464103 Q3858507 Q1124265 Q3477306 Q866756 Q565424 Q862559 Q7574264 Q182762 Q1060844 Q3397406 Q691615 Q152814 Q3409203 Q195965 Q327948 Q1975365 Q609884 Q1123764 Q7240368 Q3297079 Q6865995 Q1370482 Q3315134 Q3777749 Q111784 Q1362216 Q628102 Q25860233
(c(Q12737077),P748,c(Q502895)|c(Q1752346))
action count
action equal
action union
action find_tuple_counts
relation P748
type Q12737077
type Q502895
action find_tuple_counts
relation P748
type Q12737077
type Q1752346
value 1
[ANSWER]
[{'concept': 'Q12737077'}, 'P748', [{'concept': 'Q502895'}, {'concept': 'Q1752346'}]]
SELECT DISTINCT ( COUNT ( ?g ) AS ?y ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?d ) AS ?i ) WHERE { { ?g property:P748 ?d . ?g rdf:type ontology:Q12737077 . ?d rdf:type ontology:Q1752346 } UNION { ?g property:P748 ?d . ?d rdf:type ontology:Q502895 . ?g rdf:type ontology:Q12737077 } } GROUP BY ?g } . FILTER ( ?i = 1 ) }
Secretary of State for Wales Attorney General for England and Wales Secretary of State for Environment, Food and Rural Affairs Secretary of State for the Home Department Leader of the House of Lords Secretary of State for Work and Pensions Secretary of State for International Development Prime Minister of Libya Secretary of State for Transport Secretary of State for Foreign and Commonwealth Affairs Minister for the Civil Service Secretary of State for Justice Secretary of State for Northern Ireland Prime Minister of Russia Prime Minister of Serbia President of Botswana State President of South Africa President of Malta Chancellor of the Exchequer Leader of the House of Commons Speaker of the House of Commons Secretary of State for Business, Energy and Industrial Strategy List of Presidents of the Basque Autonomous Community Secretary of State for Education Prime Minister of Singapore Prime Minister of the Bahamas Prime Minister of Malaysia Speaker of the Hellenic Parliament Prime Minister of Algeria Paymaster General Secretary of State for Health Governor of the Virgin Islands Prime Minister of Malta President of Greece Governor of Gibraltar President of Israel Prime Minister of Georgia First Lord of the Treasury Prime Minister of Armenia Premier of the Northwest Territories Secretary of State for Culture, Media and Sport Minister for the Cabinet Office President of Cuba Minister for Women and Equalities Attorney General of Ireland Secretary of State for Scotland First Minister of Scotland President of Nauru Secretary of State for Exiting the European Union
49
action count
action equal
action union
action find_tuple_counts
relation appointed by
type occupation
type common name
action find_tuple_counts
relation appointed by
type occupation
type assembly
value 1
[{'concept': 'occupation'}, 'appointed by', [{'concept': 'common name'}, {'concept': 'assembly'}]]
SELECT DISTINCT ( COUNT ( ?g ) AS ?y ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?d ) AS ?i ) WHERE { { ?g property:appointed_by ?d . ?g rdf:type ontology:occupation . ?d rdf:type ontology:assembly } UNION { ?g property:appointed_by ?d . ?d rdf:type ontology:common_name . ?g rdf:type ontology:occupation } } GROUP BY ?g } . FILTER ( ?i = 1 ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q1489 Q64
P190
Q56061
USER
Which administrative territories are twin cities of Berlin or Mexico City ?
OR((Q64,P190,c(Q56061)), (Q1489,P190,c(Q56061)))
action filter_type
action union
action find
entity Q64
relation P190
action find
entity Q1489
relation P190
type Q56061
{'OR': [['Q64', 'P190', {'concept': 'Q56061'}], ['Q1489', 'P190', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?i WHERE { { ?u property:P190 ?i . VALUES ( ?u ) { ( resource:Q64 ) ( resource:Q1489 ) } } . ?i rdf:type ontology:Q56061 }
Mexico City Berlin
action filter_type
action union
action find
entity Berlin
relation sister city
action find
entity Mexico City
relation sister city
type administrative territorial entity
{'OR': [['Berlin', 'sister city', {'concept': 'administrative territorial entity'}], ['Mexico City', 'sister city', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?i WHERE { { ?u property:sister_city ?i . VALUES ( ?u ) { ( resource:Berlin ) ( resource:Mexico_City ) } } . ?i rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1829 Q956 Q3130 Q1781 Q269 Q3630 Q34820 Q1489 Q90 Q171632
SYSTEM
Some of them are Kaliningrad, Beijing, Sydney, Budapest, Tashkent, Jakarta, Santo Domingo, Mexico City, Paris, Maracaibo
Q1754 Q1022 Q35178 Q649 Q3110 Q3130 Q1297 Q269 Q65 Q1829 Q2807 Q34820 Q90 Q1524 Q1781 Q41211 Q1335 Q1563 Q1489 Q3630 Q3306 Q33935 Q1490 Q5582862 Q84 Q85 Q3856 Q406 Q174 Q172 Q2868 Q8678 Q239 Q270 Q597 Q956 Q1555 Q159273 Q64 Q1491 Q3820 Q171632 Q16555 Q1085
OR((Q64,P190,c(Q56061)), (Q1489,P190,c(Q56061)))
action filter_type
action union
action find
entity Q64
relation P190
action find
entity Q1489
relation P190
type Q56061
[ANSWERS] are twin cities of Berlin or Mexico City
{'OR': [['Q64', 'P190', {'concept': 'Q56061'}], ['Q1489', 'P190', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?i WHERE { { ?u property:P190 ?i . VALUES ( ?u ) { ( resource:Q64 ) ( resource:Q1489 ) } } . ?i rdf:type ontology:Q56061 }
Stockholm Stuttgart Kuwait City Moscow San Salvador Sydney Chicago Tashkent Los Angeles Kaliningrad Madrid Santo Domingo Paris Athens Budapest San Juan Montevideo Havana Mexico City Jakarta Panama City Tel Aviv Tokyo Cusco London Cairo Nicosia Istanbul São Paulo Toronto Lima Rio de Janeiro Brussels Warsaw Lisbon Beijing Guatemala City Arequipa Berlin La Paz Beirut Maracaibo Houston Prague
Kaliningrad, Beijing, Sydney, Budapest, Tashkent, Jakarta, Santo Domingo, Mexico City, Paris and Maracaibo are twin cities of Berlin or Mexico City
Kaliningrad Beijing Sydney Budapest Tashkent Jakarta Santo Domingo Mexico City Paris Maracaibo
action filter_type
action union
action find
entity Berlin
relation sister city
action find
entity Mexico City
relation sister city
type administrative territorial entity
{'OR': [['Berlin', 'sister city', {'concept': 'administrative territorial entity'}], ['Mexico City', 'sister city', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?i WHERE { { ?u property:sister_city ?i . VALUES ( ?u ) { ( resource:Berlin ) ( resource:Mexico_City ) } } . ?i rdf:type ontology:administrative_territorial_entity }
[]
Clarification
Comparative|Count over More/Less|Mult. entity type|Indirect
P417
Q1445650 Q502895 Q56061
USER
How many administrative territories have more number of holidays or people as their patron saint than that administrative territory ?
(c(Q56061),P417,c(Q1445650)|c(Q502895))
[{'concept': 'Q56061'}, 'P417', [{'concept': 'Q1445650'}, {'concept': 'Q502895'}]]
SELECT DISTINCT ( COUNT ( ?z ) AS ?w ) WHERE { { { ?z property:Q28914 ?y } UNION { ?z property:Q28914 ?x } } . ?z rdf:type ontology:Q56061 . ?y rdf:type ontology:Q1445650 . ?x rdf:type ontology:Q502895 }
[{'concept': 'administrative territorial entity'}, 'patron saint', [{'concept': 'holiday'}, {'concept': 'common name'}]]
SELECT DISTINCT ( COUNT ( ?z ) AS ?w ) WHERE { { { ?z property:patron_saint ?y } UNION { ?z property:patron_saint ?x } } . ?z rdf:type ontology:administrative_territorial_entity . ?y rdf:type ontology:holiday . ?x rdf:type ontology:common_name }
[]
holiday common name administrative territorial entity
Comparative|Count over More/Less|Mult. entity type|Clarification
Q1829
SYSTEM
Did you mean Kaliningrad ?
(c(Q56061),P417,c(Q1445650)|c(Q502895))
[ANSWER]
[{'concept': 'Q56061'}, 'P417', [{'concept': 'Q1445650'}, {'concept': 'Q502895'}]]
SELECT DISTINCT ( COUNT ( ?z ) AS ?w ) WHERE { { { ?z property:Q28914 ?y } UNION { ?z property:Q28914 ?x } } . ?z rdf:type ontology:Q56061 . ?y rdf:type ontology:Q1445650 . ?x rdf:type ontology:Q502895 }
Did you mean Kaliningrad ?
Kaliningrad
[{'concept': 'administrative territorial entity'}, 'patron saint', [{'concept': 'holiday'}, {'concept': 'common name'}]]
SELECT DISTINCT ( COUNT ( ?z ) AS ?w ) WHERE { { { ?z property:patron_saint ?y } UNION { ?z property:patron_saint ?x } } . ?z rdf:type ontology:administrative_territorial_entity . ?y rdf:type ontology:holiday . ?x rdf:type ontology:common_name }
[]
Comparative Reasoning (Count) (All)
USER
No, I meant Paris. Could you tell me the answer for that?
(c(Q56061),P417,c(Q1445650)|c(Q502895))
Q90
[{'concept': 'Q56061'}, 'P417', [{'concept': 'Q1445650'}, {'concept': 'Q502895'}]]
[{'concept': 'administrative territorial entity'}, 'patron saint', [{'concept': 'holiday'}, {'concept': 'common name'}]]
[]
SYSTEM
2
Q39519 Q220
(c(Q56061),P417,c(Q1445650)|c(Q502895))
[ANSWER]
[{'concept': 'Q56061'}, 'P417', [{'concept': 'Q1445650'}, {'concept': 'Q502895'}]]
SELECT DISTINCT ( COUNT ( ?z ) AS ?w ) WHERE { { { ?z property:Q28914 ?y } UNION { ?z property:Q28914 ?x } } . ?z rdf:type ontology:Q56061 . ?y rdf:type ontology:Q1445650 . ?x rdf:type ontology:Q502895 }
Brinzio Rome
2
[{'concept': 'administrative territorial entity'}, 'patron saint', [{'concept': 'holiday'}, {'concept': 'common name'}]]
SELECT DISTINCT ( COUNT ( ?z ) AS ?w ) WHERE { { { ?z property:patron_saint ?y } UNION { ?z property:patron_saint ?x } } . ?z rdf:type ontology:administrative_territorial_entity . ?y rdf:type ontology:holiday . ?x rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1646978
P1313
Q12737077
USER
Which occupation is fulfilled by Canet lo Roig ?
(Q1646978,P1313,c(Q12737077))
action filter_type
action find
entity Q1646978
relation P1313
type Q12737077
['Q1646978', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?a WHERE { resource:Q1646978 property:P1313 ?a . ?a rdf:type ontology:Q12737077 }
Canet lo Roig
action filter_type
action find
entity Canet lo Roig
relation office held by head of government
type occupation
['Canet lo Roig', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?a WHERE { resource:Canet_lo_Roig property:office_held_by_head_of_government ?a . ?a rdf:type ontology:occupation }
[]
occupation
Q26694376
SYSTEM
mayor of Canet lo Roig
Q26694376
(Q1646978,P1313,c(Q12737077))
action filter_type
action find
entity Q1646978
relation P1313
type Q12737077
As [ANSWER] is fulfilled by Canet lo Roig
['Q1646978', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?a WHERE { resource:Q1646978 property:P1313 ?a . ?a rdf:type ontology:Q12737077 }
mayor of Canet lo Roig
As mayor of Canet lo Roig is fulfilled by Canet lo Roig
mayor of Canet lo Roig
action filter_type
action find
entity Canet lo Roig
relation office held by head of government
type occupation
['Canet lo Roig', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?a WHERE { resource:Canet_lo_Roig property:office_held_by_head_of_government ?a . ?a rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q26694376
P1001
Q1048835
USER
Which political territory applies to jurisdiction of that occupation ?
(Q26694376,P1001,c(Q1048835))
action filter_type
action find
entity Q26694376
relation P1001
type Q1048835
['Q26694376', 'P1001', {'concept': 'Q1048835'}]
SELECT DISTINCT ?s WHERE { resource:Q26694376 property:P1001 ?s . ?s rdf:type ontology:Q1048835 }
mayor of Canet lo Roig
action filter_type
action find
entity mayor of Canet lo Roig
relation applies to jurisdiction
type political territorial entity
['mayor of Canet lo Roig', 'applies to jurisdiction', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?s WHERE { resource:mayor_of_Canet_lo_Roig property:applies_to_jurisdiction ?s . ?s rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q1646978
SYSTEM
Canet lo Roig
Q1646978
(Q26694376,P1001,c(Q1048835))
action filter_type
action find
entity Q26694376
relation P1001
type Q1048835
The [ANSWER] applies to jurisdiction of that occupation
['Q26694376', 'P1001', {'concept': 'Q1048835'}]
SELECT DISTINCT ?s WHERE { resource:Q26694376 property:P1001 ?s . ?s rdf:type ontology:Q1048835 }
Canet lo Roig
The Canet lo Roig applies to jurisdiction of that occupation
Canet lo Roig
action filter_type
action find
entity mayor of Canet lo Roig
relation applies to jurisdiction
type political territorial entity
['mayor of Canet lo Roig', 'applies to jurisdiction', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?s WHERE { resource:mayor_of_Canet_lo_Roig property:applies_to_jurisdiction ?s . ?s rdf:type ontology:political_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1646978
P47
Q1048835
USER
Which political territories share border with that one ?
(c(Q1048835),P47,Q1646978)
action filter_type
action find
entity Q1646978
relation P47
type Q1048835
[{'concept': 'Q1048835'}, 'P47', 'Q1646978']
SELECT DISTINCT ?e WHERE { resource:Q1646978 property:P47 ?e . ?e rdf:type ontology:Q1048835 }
Canet lo Roig
action filter_type
action find
entity Canet lo Roig
relation shares border with
type political territorial entity
[{'concept': 'political territorial entity'}, 'shares border with', 'Canet lo Roig']
SELECT DISTINCT ?e WHERE { resource:Canet_lo_Roig property:shares_border_with ?e . ?e rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q1983359 Q1645728 Q1767567
SYSTEM
Xert, Traiguera, Vallibona
Q1645728 Q613582 Q1768937 Q1983359 Q1645981 Q1767567
(c(Q1048835),P47,Q1646978)
action filter_type
action find
entity Q1646978
relation P47
type Q1048835
[ANSWERS] share border with that one
[{'concept': 'Q1048835'}, 'P47', 'Q1646978']
SELECT DISTINCT ?e WHERE { resource:Q1646978 property:P47 ?e . ?e rdf:type ontology:Q1048835 }
Traiguera Sant Rafel del Riu La Jana Xert Rossell, Baix Maestrat Vallibona
Xert, Traiguera and Vallibona share border with that one
Xert Traiguera Vallibona
action filter_type
action find
entity Canet lo Roig
relation shares border with
type political territorial entity
[{'concept': 'political territorial entity'}, 'shares border with', 'Canet lo Roig']
SELECT DISTINCT ?e WHERE { resource:Canet_lo_Roig property:shares_border_with ?e . ?e rdf:type ontology:political_territorial_entity }
[]
Clarification
Simple Question|Single Entity|Indirect
Q1983359
P19
Q502895
USER
Which person has birthplace at that political territory ?
(c(Q502895),P19,Q1983359)
action filter_type
action find_reverse
entity Q1983359
relation P19
type Q502895
[{'concept': 'Q502895'}, 'P19', 'Q1983359']
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q502895 . ?a property:P19 resource:Q1983359 }
Xert
action filter_type
action find_reverse
entity Xert
relation place of birth
type common name
[{'concept': 'common name'}, 'place of birth', 'Xert']
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:common_name . ?a property:place_of_birth resource:Xert }
[]
common name
Clarification for simple ques.
Q1767567
SYSTEM
Did you mean Vallibona ?
Q1983359 Q1645728 Q1767567
(c(Q502895),P19,Q1983359) (c(Q502895),P19,Q1645728) (c(Q502895),P19,Q1767567)
[ANSWER]
[{'concept': 'Q502895'}, 'P19', 'Q1983359'] [{'concept': 'Q502895'}, 'P19', 'Q1645728'] [{'concept': 'Q502895'}, 'P19', 'Q1767567']
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q502895 . ?a property:P19 resource:Q1983359 }
Xert Traiguera Vallibona
Did you mean Vallibona ?
Vallibona
[{'concept': 'common name'}, 'place of birth', 'Xert'] [{'concept': 'common name'}, 'place of birth', 'Traiguera'] [{'concept': 'common name'}, 'place of birth', 'Vallibona']
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:common_name . ?a property:place_of_birth resource:Xert }
[]
Simple Question (Coreferenced)
USER
No, I meant Xert. Could you tell me the answer for that?
(c(Q502895),P19,Q1983359)
Q1983359
[{'concept': 'Q502895'}, 'P19', 'Q1983359']
[{'concept': 'common name'}, 'place of birth', 'Xert']
[]
Q11919377
SYSTEM
Enrique Beltrán Sanz
Q11919377
(c(Q502895),P19,Q1983359)
action filter_type
action find_reverse
entity Q1983359
relation P19
type Q502895
[ANSWER] has birthplace at that political territory
[{'concept': 'Q502895'}, 'P19', 'Q1983359']
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q502895 . ?a property:P19 resource:Q1983359 }
Enrique Beltrán Sanz
Enrique Beltrán Sanz has birthplace at that political territory
Enrique Beltrán Sanz
action filter_type
action find_reverse
entity Xert
relation place of birth
type common name
[{'concept': 'common name'}, 'place of birth', 'Xert']
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:common_name . ?a property:place_of_birth resource:Xert }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Indirect
P937
Q56061
USER
How many administrative territories are the work locations of that person ?
(Q11919377,P937,c(Q56061))
action count
action filter_type
action find
entity Q11919377
relation P937
type Q56061
['Q11919377', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?w ) WHERE { resource:Q11919377 property:P937 ?a . ?a rdf:type ontology:Q56061 }
action count
action filter_type
action find
entity Enrique Beltrán Sanz
relation work location
type administrative territorial entity
['Enrique Beltrán Sanz', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?w ) WHERE { resource:Enrique_Beltrán_Sanz property:work_location ?a . ?a rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
SYSTEM
1
Q2807
(Q11919377,P937,c(Q56061))
action count
action filter_type
action find
entity Q11919377
relation P937
type Q56061
[ANSWER]
['Q11919377', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?w ) WHERE { resource:Q11919377 property:P937 ?a . ?a rdf:type ontology:Q56061 }
Madrid
1
action count
action filter_type
action find
entity Enrique Beltrán Sanz
relation work location
type administrative territorial entity
['Enrique Beltrán Sanz', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?w ) WHERE { resource:Enrique_Beltrán_Sanz property:work_location ?a . ?a rdf:type ontology:administrative_territorial_entity }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q7651719
P559
Q56061 Q44377 Q34442
USER
Which administrative territories are the endpoints for less number of tunnels and roads than Svartnes ?
(c(Q44377)|c(Q34442),P559,c(Q56061))
action less
action union
action find_reverse_tuple_counts
relation P559
type Q56061
type Q44377
action find_reverse_tuple_counts
relation P559
type Q56061
type Q34442
action count
action filter_multi_types
action find_reverse
entity Q7651719
relation P559
type Q44377
type Q34442
[[{'concept': 'Q44377'}, {'concept': 'Q34442'}], 'P559', {'concept': 'Q56061'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?f ) ?e WHERE { VALUES ( ?k ) { ( ontology:Q34442 ) ( ontology:Q44377 ) } . ?p rdf:type ?k } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?u ) WHERE { ?g property:P559 resource:Q7651719 . { ?g rdf:type ?l . VALUES ( ?l ) { ( ontology:Q44377 ) ( ontology:Q34442 ) } } } } . FILTER ( ?f < ?u ) }
Svartnes
action less
action union
action find_reverse_tuple_counts
relation terminus
type administrative territorial entity
type tunnel
action find_reverse_tuple_counts
relation terminus
type administrative territorial entity
type road
action count
action filter_multi_types
action find_reverse
entity Svartnes
relation terminus
type tunnel
type road
[[{'concept': 'tunnel'}, {'concept': 'road'}], 'terminus', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?f ) ?e WHERE { VALUES ( ?k ) { ( ontology:road ) ( ontology:tunnel ) } . ?p rdf:type ?k } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?u ) WHERE { ?g property:terminus resource:Svartnes . { ?g rdf:type ?l . VALUES ( ?l ) { ( ontology:tunnel ) ( ontology:road ) } } } } . FILTER ( ?f < ?u ) }
[]
administrative territorial entity tunnel road
Q1085 Q649 Q65
SYSTEM
Prague, Moscow, Los Angeles
Q938820 Q9832 Q1020217 Q3112707 Q11851639 Q23436 Q837211 Q1017610 Q10084 Q7567083 Q2814 Q541055 Q723164 Q82490 Q172157 Q575557 Q985313 Q23311 Q687333 Q932159 Q49550 Q38511 Q3469728 Q796625 Q185453 Q588804 Q130191 Q3001 Q723372 Q167155 Q2272 Q986100 Q6023 Q7811572 Q171357 Q134620 Q956 Q959 Q556989 Q1011611 Q727 Q649 Q2065223 Q211059 Q42159 Q7986745 Q1009428 Q18808 Q1011221 Q24826 Q6509 Q671348 Q28327 Q5477618 Q4093 Q4356873 Q33959 Q11839080 Q586 Q585 Q987170 Q1017331 Q1763 Q1449 Q848909 Q1420136 Q754868 Q125080 Q1757 Q36989 Q49218 Q990112 Q100 Q2734845 Q1020951 Q40840 Q542966 Q1616042 Q643944 Q257034 Q1571025 Q756103 Q25330 Q856860 Q517381 Q3992 Q190847 Q1318695 Q1248150 Q2073801 Q1781385 Q1759693 Q369947 Q84 Q2300663 Q2132 Q2133814 Q7944369 Q646784 Q79499 Q184383 Q375905 Q263954 Q10561690 Q12892 Q643160 Q6816 Q17872 Q129610 Q766594 Q466054 Q953081 Q180717 Q2086787 Q79804 Q895452 Q40325 Q953719 Q580016 Q2290 Q12191 Q244289 Q237253 Q485186 Q588417 Q146659 Q522362 Q1729 Q790938 Q530309 Q865872 Q65 Q1085
(c(Q44377)|c(Q34442),P559,c(Q56061))
action less
action union
action find_reverse_tuple_counts
relation P559
type Q56061
type Q44377
action find_reverse_tuple_counts
relation P559
type Q56061
type Q34442
action count
action filter_multi_types
action find_reverse
entity Q7651719
relation P559
type Q44377
type Q34442
[ANSWERS] are the endpoints for less number of tunnels and roads than Svartnes
[[{'concept': 'Q44377'}, {'concept': 'Q34442'}], 'P559', {'concept': 'Q56061'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?f ) ?e WHERE { VALUES ( ?k ) { ( ontology:Q34442 ) ( ontology:Q44377 ) } . ?p rdf:type ?k } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?u ) WHERE { ?g property:P559 resource:Q7651719 . { ?g rdf:type ?l . VALUES ( ?l ) { ( ontology:Q44377 ) ( ontology:Q34442 ) } } } } . FILTER ( ?f < ?u ) }
Virrat Eindhoven Minehead Sedbury Annalankangas Edinburgh Scheveningen Horgoš Vlissingen South Drain Halle (Saale) Oijen Pop Lyme Regis Winchester Grand Tower Ingleton City of London Middleton-by-Wirksworth Hart Maó-Mahón Turku Salford Quays Edale Multan Badrinath Norwich Paramaribo Narva-Jõesuu Kalamazoo Skien Ridder Lapua Tobermory, Ontario Kecskemét Jyväskylä Beijing Vladivostok Ankeny Portpatrick Amsterdam Moscow Port Grimaud Jõhvi Hanam West Vale Drymen Pyongyang Kincardine Liverpool Burgas Worthing Örnsköldsvik Frafjord Glasgow Mariehäll Nice Akdere, Silifke Bonn Oslo Inčukalns Westport, County Mayo Murmansk Genoa Fort William Herøya Cumberland Vaasa Helsinki Pardubice Rochester Littlehampton Boston Henley-in-Arden Ilkley Tampere Angren, Uzbekistan Hessle Asaluyeh Kemble Mullan Lewes Trenton Hammond Dillenburg Liège Alexandroupoli Apoera Wallsend Helmsley Björkhagen South Boston El Cajon London Gaylord Victoria St Nicholas-at-Wade Värpinge Moffat Helena Zeebrugge Deerfield Afobaka Lilla Alby Antwerp Farnham Ulan-Ude Alice Springs Galway Bewdley Mahdia Orivesi Sousse Manitou Springs Sitka Bowling, West Dunbartonshire Springfield South Haven Albina Porsgrunn Nantes Athis-Mons Great Yarmouth Key West Sewell, Chile Clapham Bad Säckingen Erfurt Aviemore Karkkila Birstall Los Angeles Prague
Prague, Moscow and Los Angeles are the endpoints for less number of tunnels and roads than Svartnes
Prague Moscow Los Angeles
action less
action union
action find_reverse_tuple_counts
relation terminus
type administrative territorial entity
type tunnel
action find_reverse_tuple_counts
relation terminus
type administrative territorial entity
type road
action count
action filter_multi_types
action find_reverse
entity Svartnes
relation terminus
type tunnel
type road
[[{'concept': 'tunnel'}, {'concept': 'road'}], 'terminus', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?f ) ?e WHERE { VALUES ( ?k ) { ( ontology:road ) ( ontology:tunnel ) } . ?p rdf:type ?k } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?u ) WHERE { ?g property:terminus resource:Svartnes . { ?g rdf:type ?l . VALUES ( ?l ) { ( ontology:tunnel ) ( ontology:road ) } } } } . FILTER ( ?f < ?u ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q634172
P559
Q56061 Q44377 Q34442
USER
And also tell me about Banihal?
(c(Q44377)|c(Q34442),P559,c(Q56061))
action less
action union
action find_reverse_tuple_counts
relation P559
type Q56061
type Q44377
action find_reverse_tuple_counts
relation P559
type Q56061
type Q34442
action count
action filter_multi_types
action find_reverse
entity Q634172
relation P559
type Q44377
type Q34442
[[{'concept': 'Q44377'}, {'concept': 'Q34442'}], 'P559', {'concept': 'Q56061'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?k ) AS ?b ) WHERE { { ?k property:P559 ?h . ?h rdf:type ontology:Q56061 . ?k rdf:type ontology:Q44377 } UNION { ?k property:P559 ?h . ?h rdf:type ontology:Q56061 . ?k rdf:type ontology:Q34442 } } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?p ) WHERE { ?s property:P559 resource:Q634172 . { { ?s rdf:type ontology:Q44377 } UNION { ?s rdf:type ontology:Q34442 } } } } . FILTER ( ?b < ?p ) }
Banihal
action less
action union
action find_reverse_tuple_counts
relation terminus
type administrative territorial entity
type tunnel
action find_reverse_tuple_counts
relation terminus
type administrative territorial entity
type road
action count
action filter_multi_types
action find_reverse
entity Banihal
relation terminus
type tunnel
type road
[[{'concept': 'tunnel'}, {'concept': 'road'}], 'terminus', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?k ) AS ?b ) WHERE { { ?k property:terminus ?h . ?h rdf:type ontology:administrative_territorial_entity . ?k rdf:type ontology:tunnel } UNION { ?k property:terminus ?h . ?h rdf:type ontology:administrative_territorial_entity . ?k rdf:type ontology:road } } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?p ) WHERE { ?s property:terminus resource:Banihal . { { ?s rdf:type ontology:tunnel } UNION { ?s rdf:type ontology:road } } } } . FILTER ( ?b < ?p ) }
[]
administrative territorial entity tunnel road
Q1085 Q649 Q65
SYSTEM
Prague, Moscow, Los Angeles
Q938820 Q9832 Q1020217 Q3112707 Q11851639 Q23436 Q837211 Q1017610 Q10084 Q7567083 Q2814 Q541055 Q723164 Q82490 Q172157 Q575557 Q985313 Q23311 Q687333 Q932159 Q49550 Q38511 Q3469728 Q796625 Q185453 Q588804 Q130191 Q3001 Q723372 Q167155 Q2272 Q986100 Q6023 Q7811572 Q171357 Q134620 Q956 Q959 Q556989 Q1011611 Q727 Q649 Q2065223 Q211059 Q42159 Q7986745 Q1009428 Q18808 Q1011221 Q24826 Q6509 Q671348 Q28327 Q5477618 Q4093 Q4356873 Q33959 Q11839080 Q586 Q585 Q987170 Q1017331 Q1763 Q1449 Q848909 Q1420136 Q754868 Q125080 Q1757 Q36989 Q49218 Q990112 Q100 Q2734845 Q1020951 Q40840 Q542966 Q1616042 Q643944 Q257034 Q1571025 Q756103 Q25330 Q856860 Q517381 Q3992 Q190847 Q1318695 Q1248150 Q2073801 Q1781385 Q1759693 Q369947 Q84 Q2300663 Q2132 Q2133814 Q7944369 Q646784 Q79499 Q184383 Q375905 Q263954 Q10561690 Q12892 Q643160 Q6816 Q17872 Q129610 Q766594 Q466054 Q953081 Q180717 Q2086787 Q79804 Q895452 Q40325 Q953719 Q580016 Q2290 Q12191 Q244289 Q237253 Q485186 Q588417 Q146659 Q522362 Q1729 Q790938 Q530309 Q865872 Q65 Q1085
(c(Q44377)|c(Q34442),P559,c(Q56061))
action less
action union
action find_reverse_tuple_counts
relation P559
type Q56061
type Q44377
action find_reverse_tuple_counts
relation P559
type Q56061
type Q34442
action count
action filter_multi_types
action find_reverse
entity Q634172
relation P559
type Q44377
type Q34442
[ANSWERS]
[[{'concept': 'Q44377'}, {'concept': 'Q34442'}], 'P559', {'concept': 'Q56061'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?k ) AS ?b ) WHERE { { ?k property:P559 ?h . ?h rdf:type ontology:Q56061 . ?k rdf:type ontology:Q44377 } UNION { ?k property:P559 ?h . ?h rdf:type ontology:Q56061 . ?k rdf:type ontology:Q34442 } } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?p ) WHERE { ?s property:P559 resource:Q634172 . { { ?s rdf:type ontology:Q44377 } UNION { ?s rdf:type ontology:Q34442 } } } } . FILTER ( ?b < ?p ) }
Virrat Eindhoven Minehead Sedbury Annalankangas Edinburgh Scheveningen Horgoš Vlissingen South Drain Halle (Saale) Oijen Pop Lyme Regis Winchester Grand Tower Ingleton City of London Middleton-by-Wirksworth Hart Maó-Mahón Turku Salford Quays Edale Multan Badrinath Norwich Paramaribo Narva-Jõesuu Kalamazoo Skien Ridder Lapua Tobermory, Ontario Kecskemét Jyväskylä Beijing Vladivostok Ankeny Portpatrick Amsterdam Moscow Port Grimaud Jõhvi Hanam West Vale Drymen Pyongyang Kincardine Liverpool Burgas Worthing Örnsköldsvik Frafjord Glasgow Mariehäll Nice Akdere, Silifke Bonn Oslo Inčukalns Westport, County Mayo Murmansk Genoa Fort William Herøya Cumberland Vaasa Helsinki Pardubice Rochester Littlehampton Boston Henley-in-Arden Ilkley Tampere Angren, Uzbekistan Hessle Asaluyeh Kemble Mullan Lewes Trenton Hammond Dillenburg Liège Alexandroupoli Apoera Wallsend Helmsley Björkhagen South Boston El Cajon London Gaylord Victoria St Nicholas-at-Wade Värpinge Moffat Helena Zeebrugge Deerfield Afobaka Lilla Alby Antwerp Farnham Ulan-Ude Alice Springs Galway Bewdley Mahdia Orivesi Sousse Manitou Springs Sitka Bowling, West Dunbartonshire Springfield South Haven Albina Porsgrunn Nantes Athis-Mons Great Yarmouth Key West Sewell, Chile Clapham Bad Säckingen Erfurt Aviemore Karkkila Birstall Los Angeles Prague
Prague Moscow Los Angeles
action less
action union
action find_reverse_tuple_counts
relation terminus
type administrative territorial entity
type tunnel
action find_reverse_tuple_counts
relation terminus
type administrative territorial entity
type road
action count
action filter_multi_types
action find_reverse
entity Banihal
relation terminus
type tunnel
type road
[[{'concept': 'tunnel'}, {'concept': 'road'}], 'terminus', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?k ) AS ?b ) WHERE { { ?k property:terminus ?h . ?h rdf:type ontology:administrative_territorial_entity . ?k rdf:type ontology:tunnel } UNION { ?k property:terminus ?h . ?h rdf:type ontology:administrative_territorial_entity . ?k rdf:type ontology:road } } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?p ) WHERE { ?s property:terminus resource:Banihal . { { ?s rdf:type ontology:tunnel } UNION { ?s rdf:type ontology:road } } } } . FILTER ( ?b < ?p ) }
[]