Simple Question (Direct)
Simple Question
Q7363684
P20
Q56061
USER
Where did Ron Davis die ?
(Q7363684,P20,c(Q56061))
action filter_type
action find
entity Q7363684
relation P20
type Q56061
['Q7363684', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?y WHERE { resource:Q7363684 property:P20 ?y . ?y rdf:type ontology:Q56061 }
Ron Davis
action filter_type
action find
entity Ron Davis
relation place of death
type administrative territorial entity
['Ron Davis', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { resource:Ron_Davis property:place_of_death ?y . ?y rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q16555
SYSTEM
Houston
Q16555
(Q7363684,P20,c(Q56061))
action filter_type
action find
entity Q7363684
relation P20
type Q56061
Ron Davis died in [ANSWER]
['Q7363684', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?y WHERE { resource:Q7363684 property:P20 ?y . ?y rdf:type ontology:Q56061 }
Houston
Ron Davis died in Houston
Houston
action filter_type
action find
entity Ron Davis
relation place of death
type administrative territorial entity
['Ron Davis', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { resource:Ron_Davis property:place_of_death ?y . ?y rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q16555
P47
Q56061
USER
Which administrative territory does that one share a border with ?
(c(Q56061),P47,Q16555)
action filter_type
action find_reverse
entity Q16555
relation P47
type Q56061
[{'concept': 'Q56061'}, 'P47', 'Q16555']
SELECT DISTINCT ?v WHERE { ?v property:P47 resource:Q16555 . ?v rdf:type ontology:Q56061 }
Houston
action filter_type
action find_reverse
entity Houston
relation shares border with
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'shares border with', 'Houston']
SELECT DISTINCT ?v WHERE { ?v property:shares_border_with resource:Houston . ?v rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q980055
SYSTEM
Missouri City
Q980055
(c(Q56061),P47,Q16555)
action filter_type
action find_reverse
entity Q16555
relation P47
type Q56061
That one shares a border with the [ANSWER]
[{'concept': 'Q56061'}, 'P47', 'Q16555']
SELECT DISTINCT ?v WHERE { ?v property:P47 resource:Q16555 . ?v rdf:type ontology:Q56061 }
Missouri City
That one shares a border with the Missouri City
Missouri City
action filter_type
action find_reverse
entity Houston
relation shares border with
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'shares border with', 'Houston']
SELECT DISTINCT ?v WHERE { ?v property:shares_border_with resource:Houston . ?v rdf:type ontology:administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q980055 Q547752
P17
Q15617994
USER
Is Missouri City a part of Tawern ?
(Q980055,P17,Q547752)
action is_in
entity Q547752
action find
entity Q980055
relation P17
['Q980055', 'P17', 'Q547752']
ASK WHERE { resource:Q980055 property:P17 resource:Q547752 }
Missouri City Tawern
action is_in
entity Tawern
action find
entity Missouri City
relation country
['Missouri City', 'country', 'Tawern']
ASK WHERE { resource:Missouri_City property:country resource:Tawern }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q980055,P17,Q547752)
action is_in
entity Q547752
action find
entity Q980055
relation P17
[ANSWER]
['Q980055', 'P17', 'Q547752']
ASK WHERE { resource:Q980055 property:P17 resource:Q547752 }
No
action is_in
entity Tawern
action find
entity Missouri City
relation country
['Missouri City', 'country', 'Tawern']
ASK WHERE { resource:Missouri_City property:country resource:Tawern }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q7363684 Q504309
P54
Q12973014
USER
Is Ron Davis a member of St. Louis Cardinals ?
(Q7363684,P54,Q504309)
action is_in
entity Q504309
action find
entity Q7363684
relation P54
['Q7363684', 'P54', 'Q504309']
ASK WHERE { resource:Q7363684 property:P54 resource:Q504309 }
Ron Davis St. Louis Cardinals
action is_in
entity St. Louis Cardinals
action find
entity Ron Davis
relation member of sports team
['Ron Davis', 'member of sports team', 'St. Louis Cardinals']
ASK WHERE { resource:Ron_Davis property:member_of_sports_team resource:St._Louis_Cardinals }
[]
sports team
SYSTEM
YES
(Q7363684,P54,Q504309)
action is_in
entity Q504309
action find
entity Q7363684
relation P54
[ANSWER]
['Q7363684', 'P54', 'Q504309']
ASK WHERE { resource:Q7363684 property:P54 resource:Q504309 }
Yes
action is_in
entity St. Louis Cardinals
action find
entity Ron Davis
relation member of sports team
['Ron Davis', 'member of sports team', 'St. Louis Cardinals']
ASK WHERE { resource:Ron_Davis property:member_of_sports_team resource:St._Louis_Cardinals }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P180
Q56061 Q11060274 Q15709879
USER
Which administrative territories are expressed in approximately 1 prints and artwork series ?
(c(Q11060274)|c(Q15709879),P180,c(Q56061))
action approx
action union
action find_reverse_tuple_counts
relation P180
type Q56061
type Q11060274
action find_reverse_tuple_counts
relation P180
type Q56061
type Q15709879
value 1
[[{'concept': 'Q11060274'}, {'concept': 'Q15709879'}], 'P180', {'concept': 'Q56061'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?c ) AS ?r ) WHERE { VALUES ( ?s ) { ( ontology:Q11060274 ) ( ontology:Q15709879 ) } . ?c rdf:type ?s } GROUP BY ?b } . FILTER ( ?r = 1 ) }
action approx
action union
action find_reverse_tuple_counts
relation depicts
type administrative territorial entity
type print
action find_reverse_tuple_counts
relation depicts
type administrative territorial entity
type artwork series
value 1
[[{'concept': 'print'}, {'concept': 'artwork series'}], 'depicts', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?c ) AS ?r ) WHERE { VALUES ( ?s ) { ( ontology:print ) ( ontology:artwork_series ) } . ?c rdf:type ?s } GROUP BY ?b } . FILTER ( ?r = 1 ) }
[]
administrative territorial entity print artwork series
Q1085 Q649 Q2807
SYSTEM
Prague, Moscow, Madrid
Q894252 Q11370950 Q81076 Q10084 Q5180660 Q2536016 Q103011 Q7228196 Q52437 Q2741834 Q2218481 Q2035368 Q3876885 Q319536 Q319538 Q33486 Q12443 Q9427 Q3405864 Q11093013 Q7165393 Q3615313 Q6661066 Q1889195 Q950671 Q2214216 Q10989923 Q1198413 Q322 Q151920 Q467664 Q13375 Q1656724 Q130514 Q3404679 Q787395 Q33959 Q2184880 Q23051 Q2656 Q5687 Q7259867 Q54108 Q573757 Q4810069 Q9920 Q1310876 Q1866840 Q744948 Q3401639 Q15682 Q1908075 Q82070 Q2684439 Q5776 Q1757 Q1754 Q13153 Q319710 Q329967 Q12061339 Q13644930 Q6661117 Q62289 Q1965490 Q5058788 Q13644939 Q6477 Q2233618 Q1973162 Q41843 Q178835 Q1024924 Q1025821 Q2367253 Q1616324 Q80985 Q657748 Q472667 Q7837859 Q5616341 Q3297078 Q3401919 Q10690 Q3406673 Q3437 Q47164 Q12892 Q257446 Q365 Q5836 Q5288857 Q42053 Q179815 Q624065 Q991055 Q1247496 Q319576 Q1311946 Q4996547 Q153516 Q54143 Q180294 Q8818 Q80561 Q675460 Q428829 Q854672 Q5058745 Q13129603 Q7682007 Q3401133 Q1992389 Q174054 Q2385069 Q8021998 Q1524 Q9918 Q1489 Q3398339 Q1796191 Q2020203 Q1640443 Q6661380 Q7837893 Q2467 Q49156 Q3561 Q3398830 Q3398834 Q2313777 Q139564 Q144983 Q406 Q234178 Q8678 Q8054067 Q495 Q2044 Q7525 Q179046 Q319242 Q2695104 Q1012797 Q515 Q5623909 Q3405897 Q6661275 Q54145 Q1021164 Q527467 Q54217 Q199797 Q54134 Q7162078 Q1001536 Q2273077 Q272777 Q463937 Q3399236 Q3834 Q5463763 Q22336755 Q1191195 Q102217 Q1234779 Q3403140 Q1726 Q237 Q1936328 Q12994 Q995477 Q282461 Q2653611 Q621 Q7837767 Q5173016 Q748777 Q1296 Q6661758 Q1866857 Q636188 Q3402958 Q203387 Q16548107 Q1563 Q3406382 Q170263 Q372324 Q5200191 Q1748 Q205905 Q13129631 Q6661101 Q3811275 Q87 Q690 Q85 Q1013633 Q2227185 Q2100774 Q284467 Q187346 Q42462 Q9945 Q6661589 Q1741 Q6990839 Q200311 Q2243491 Q2913827 Q6661409 Q3399377 Q3404936 Q2634 Q3812274 Q285412 Q215177 Q319672 Q16869 Q4914513 Q191687 Q6661329 Q12302777 Q172 Q270 Q7588179 Q3309484 Q1020726 Q647698 Q84 Q1235510 Q2513006 Q376866 Q1638504 Q13678 Q5116688 Q79980 Q163490 Q23311 Q6661145 Q4769524 Q3401109 Q837211 Q579854 Q6737 Q951659 Q9908 Q3309494 Q171923 Q1492 Q6225 Q1867 Q2532363 Q3551 Q1807193 Q648732 Q6729228 Q13129664 Q3398922 Q43475 Q1479 Q7837785 Q3957 Q158467 Q64004 Q18419 Q1024911 Q6661964 Q271269 Q983538 Q5566589 Q5572835 Q674950 Q548248 Q2807 Q7930989 Q783437 Q49218 Q1353 Q183303 Q1974260 Q101254 Q13498 Q13496 Q677678 Q2185491 Q1026871 Q4667051 Q220 Q340 Q6661212 Q2240740 Q26421 Q4667113 Q1964775 Q123076 Q145948 Q2316216 Q672545 Q25231 Q25230 Q6661749 Q3050619 Q617 Q642810 Q339535 Q3402179 Q634054 Q922270 Q784824 Q3398367 Q158788 Q692847 Q487315 Q184163 Q2037687 Q2963905 Q48292 Q6661527 Q8621 Q24861 Q3398962 Q1894788 Q49146 Q779813 Q2487253 Q3397661 Q3406111 Q1024903 Q178813 Q1218 Q165887 Q3405138 Q54264 Q1070 Q10866 Q3398817 Q3869 Q34404 Q8717 Q3404531 Q64 Q60 Q62 Q3403507 Q3395358 Q1824365 Q3766 Q3460719 Q781725 Q835831 Q965581 Q2771917 Q478675 Q138833 Q1144249 Q5289699 Q126148 Q4870052 Q3876767 Q876315 Q771986 Q6661879 Q3402636 Q1011600 Q1428848 Q7005760 Q46843 Q7909529 Q42810 Q216258 Q1310 Q6661173 Q647 Q641 Q616837 Q16258 Q727 Q4898676 Q649 Q669171 Q9306 Q2599413 Q2301524 Q2085995 Q3401728 Q180141 Q881062 Q15088 Q5788 Q4980850 Q578447 Q13129719 Q580 Q13126981 Q12191 Q3398853 Q34370 Q1449 Q360795 Q7678684 Q3878864 Q207639 Q2666382 Q1024935 Q7163099 Q6441 Q3817101 Q3400567 Q5642527 Q156990 Q3402457 Q914291 Q40844 Q2272941 Q14702005 Q26793 Q7838879 Q3363693 Q3397480 Q6732359 Q7592977 Q2619155 Q60956 Q2239 Q509028 Q1002793 Q5119942 Q1026572 Q7165298 Q3402425 Q535982 Q1781556 Q752762 Q3992 Q177165 Q36600 Q1883524 Q995231 Q3395924 Q3402761 Q4942645 Q3877586 Q1009261 Q1813948 Q922365 Q16033791 Q6661943 Q1229951 Q213205 Q6661088 Q332952 Q665163 Q3878353 Q138311 Q3405649 Q12116357 Q4982108 Q1085
(c(Q11060274)|c(Q15709879),P180,c(Q56061))
action approx
action union
action find_reverse_tuple_counts
relation P180
type Q56061
type Q11060274
action find_reverse_tuple_counts
relation P180
type Q56061
type Q15709879
value 1
[ANSWERS] are expressed in approximately 1 prints and artwork series
[[{'concept': 'Q11060274'}, {'concept': 'Q15709879'}], 'P180', {'concept': 'Q56061'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?c ) AS ?r ) WHERE { VALUES ( ?s ) { ( ontology:Q11060274 ) ( ontology:Q15709879 ) } . ?c rdf:type ?s } GROUP BY ?b } . FILTER ( ?r = 1 ) }
Borth Kameido Zierikzee Vlissingen Craig-y-Don Crickhowell Corinth Pontfadog Murano Llanidloes Oosterbeek Tremadog Minsterley Aberdyfi Abererch Hartford Marquette Timbuktu Llandygai Cyffylliog Penybont Andaraí Llanarmon, Gwynedd Mogenstrup Porthmadog Soestdijk Llanfihangel-yng-Ngwynfa military camp Llanfairpwllgwyngyll Tiberias Butte Pisa ideal city Luxor Crumlin Llanfairfechan Nice St Pierre, Monmouthshire Swansea Palermo Jericho Pumsaint Bahía Blanca Usk Peristerona Haarlem Hokksund Llangybi, Gwynedd New Rochelle Henllan Cádiz Karrebæksminde Tyre Trefriw Bethlehem Helsinki Stockholm Ronda Abersoch Paestum Llangedwyn Llandrinio Llanboidy Rockaway Beach Laugharne Cenarth Llanrhystud Pirna Llanrwst Neath Abbey Beersheba Baalbek Llanbedrog Pwllheli Halfweg Egmond aan Zee Fes Manchester-by-the-Sea Amlwch Tregeiriog Guilsfield Sodom Nantmor Cardiff Esgairgeiliog Perugia Santa Monica Antwerp Holyhead Cologne Toledo Dolanog Isfahan Durham Molesey Milford Haven Rievaulx Abbey Aberffraw Montgomery Bull Bay, Anglesey Nuenen Melrose Jaffa Valencia Antakya Machynlleth Caernarfon Nisa Cemmaes Llanarmon Dyffryn Ceiriog Tan-y-Bwlch, Maentwrog Bagillt Beaumaris Isola Bella Duivendrecht Willington Worthenbury Athens Enkhuizen Mexico City Devil's Bridge Frederiksværk Rhyl West Wyalong Llanfoist Tregynon Nassau Gloucester Algiers Corris Llanaelhaearn Kamperveen Atlantic City Banská Bystrica Istanbul Bangor Rio de Janeiro Ynys Môn Turin Florence Sevastopol Fatehpur Sikri Caesarea Maritima Grafton, Cheshire Ostia Antica city Gwytherin Llanbadarn Fawr Llandysilio Medford Pontypool Colwyn Bay Norwalk Tacoma Newburyport Pen-y-groes, Carmarthenshire Budleigh Salterton Newcastle Emlyn Hadrian's Villa Saint Thomas Bodedern Konstanz Fløng Aston Mold Vitebsk Thornbury Llanfair-ar-y-bryn Munich Vatican City Nevern Bruges Drøbak IJmuiden Penmaenmawr Versailles Trefeglwys Corris Uchaf Tintagel Ghent Llansantffraed Llanystumdwy Rey, Iran Carno Betws-y-Coed Castle Caereinion Havana Glyndyfrdwy Chester Dawson City Cynwyl Gaeo Copenhagen Lancaster Llanfechell Llanbedr-Dyffryn-Clwyd Whittington Alexandria Delft Cairo Ruthin Felpham Point Judith, Rhode Island Vogelenzang Constantine York Laren Llangynyw Vienna Neltume Mathura Tintern Llanfwrog Llangadfan Clynnog Fawr Llanfair Talhaiarn Naples Baschurch Llithfaen Skagen Aberporth Constantinople Binsey, Oxfordshire Heliopolis Llanfaelog Baldersbrønde Toronto Warsaw St. George, Conwy Berriew Stalheim Malakoff London Dolgellau Cropthorne Santa Maria de Belém Llanberis Agrigento Church Stoke Varanasi Sidon City of London Llandderfel Annisquam Caerwys Scheveningen Gamla stan Castellammare di Stabia Claremont Bloemendaal Bronllys Bala Barcelona Coventry Taipei Presteigne Rabat Rhuddlan St Davids Maenclochog Llanllwchaiarn Y Felinheli Derby Bordeaux Trefin town Gwalior Grindelwald Brooklyn Welshpool Llechryd Åsgårdstrand Green River Llansanffraid Glan Conwy Glyn Ceiriog residential area St Asaph Madrid city Ploumanac'h Rochester Delhi Jalalabad Nefyn Newport Taranto Brindisi fortified town East Bergholt Winchelsea Aberdulais Rome Montreal Llandinam IJsselmonde Dordrecht Aberhafesp Nantlle Valley Palmyra Atoll Svolvær Chirk Barmouth Svalbard Guernsey Llansanffraid Glyndyfrdwy Holywell Padua Missolonghi Hammamet Llanfair Conwy Llanddewi Brefi Pembroke Dock Sarn Meyllteyrn Melenki Segesta Monterey Colchester Dedham Chirbury Arles Llangurig Terni Albany Garndolbenmaen Margam Abbey New London Cardigan Tregaron Llangeitho Llansawel Sloten Herculaneum Jerusalem Emmaus St Dogmaels Newport Ahmedabad Narni Aberllefenni Marburg New Orleans Seville Bangor-on-Dee Berlin New York City San Francisco Llanbrynmair Kidwelly Dodleston Damascus Old Colwyn Llangernyw Mount Vernon Cardia Abergele Riobamba Kom Ombo Lulworth Dolwyddelan Tangier Battle Harbour Bethel Taos Chepstow Llanwnnog Y Ffôr Ellesmere Port Flint New Broughton Auerbach Vale of Clwyd Le Havre Hilo Arnhem Llanddulas Rennes Venice Sarepta Maldonado Amsterdam Bettws Cedewain Moscow Newtown Eberswalde Stratford St. Mary Stege St Clears Llandre Sodom and Gomorrah Blaenau Ffestiniog Tarragona Petra Bryn Du Countryside Llwyn-y-brain Łódź Cellan Nantes Trawsfynydd Rotterdam Genoa Isawa Tal-y-llyn, Gwynedd Pontesbury Chichester Llanfair Caereinion Harlech Penmachno Montpellier Halton Llanengan Halkyn Monmouth Bryncrug Newport Breda Tywyn Llanwddyn Bergen Tretower Meifod Llanymynech Magor, Monmouthshire St Donats Hillested Ashkelon Kongens Lyngby ranch Llangollen Cilgerran Llanrhaeadr-ym-Mochnant Pentrefoelas Llanuwchllyn Lystra Gärdet Merthyr Tydfil Liège Narberth, Pembrokeshire The Hague Bethesda Long Branch Llansanffraid-ym-Mechain Llandegfan Bontuchel Westbury Caerleon Prestatyn Dyffryn Ardudwy Llangwyfan, Aberffraw Llay L'Estaque San Francisco Bay Area Llanbadarn Fawr Überlingen Nahant Shrawardine Elizabeth Chwilog Chiajna Buan, Gwynedd Prague
Prague, Moscow and Madrid are expressed in approximately 1 prints and artwork series
Prague Moscow Madrid
action approx
action union
action find_reverse_tuple_counts
relation depicts
type administrative territorial entity
type print
action find_reverse_tuple_counts
relation depicts
type administrative territorial entity
type artwork series
value 1
[[{'concept': 'print'}, {'concept': 'artwork series'}], 'depicts', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?c ) AS ?r ) WHERE { VALUES ( ?s ) { ( ontology:print ) ( ontology:artwork_series ) } . ?c rdf:type ?s } GROUP BY ?b } . FILTER ( ?r = 1 ) }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q15140361 Q547752
P17 P915
Q1048835
USER
Which political territories are Tawern a part of and were Porobashinee filmed ?
AND((Q547752,P17,c(Q1048835)), (Q15140361,P915,c(Q1048835)))
action filter_type
action intersection
action find
entity Q547752
relation P17
action find
entity Q15140361
relation P915
type Q1048835
{'AND': [['Q547752', 'P17', {'concept': 'Q1048835'}], ['Q15140361', 'P915', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?y WHERE { resource:Q547752 property:P17 ?y . resource:Q15140361 property:P915 ?y . ?y rdf:type ontology:Q1048835 }
Porobashinee Tawern
action filter_type
action intersection
action find
entity Tawern
relation country
action find
entity Porobashinee
relation filming location
type political territorial entity
{'AND': [['Tawern', 'country', {'concept': 'political territorial entity'}], ['Porobashinee', 'filming location', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?y WHERE { resource:Tawern property:country ?y . resource:Porobashinee property:filming_location ?y . ?y rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q183
SYSTEM
Germany
Q183
AND((Q547752,P17,c(Q1048835)), (Q15140361,P915,c(Q1048835)))
action filter_type
action intersection
action find
entity Q547752
relation P17
action find
entity Q15140361
relation P915
type Q1048835
[ANSWER] is Tawern a part of and were Porobashinee filmed
{'AND': [['Q547752', 'P17', {'concept': 'Q1048835'}], ['Q15140361', 'P915', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?y WHERE { resource:Q547752 property:P17 ?y . resource:Q15140361 property:P915 ?y . ?y rdf:type ontology:Q1048835 }
Germany
Germany is Tawern a part of and were Porobashinee filmed
Germany
action filter_type
action intersection
action find
entity Tawern
relation country
action find
entity Porobashinee
relation filming location
type political territorial entity
{'AND': [['Tawern', 'country', {'concept': 'political territorial entity'}], ['Porobashinee', 'filming location', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?y WHERE { resource:Tawern property:country ?y . resource:Porobashinee property:filming_location ?y . ?y rdf:type ontology:political_territorial_entity }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q504216
P417
Q502895 Q1445650 Q56061
USER
How many administrative territories have adopted more number of people and holidays as patron saint than St. Martin in Passeier ?
(c(Q56061),P417,c(Q502895)|c(Q1445650))
action count
action greater
action union
action find_tuple_counts
relation P417
type Q56061
type Q502895
action find_tuple_counts
relation P417
type Q56061
type Q1445650
action count
action filter_multi_types
action find
entity Q504216
relation P417
type Q502895
type Q1445650
[{'concept': 'Q56061'}, 'P417', [{'concept': 'Q502895'}, {'concept': 'Q1445650'}]]
SELECT DISTINCT ( COUNT ( ?b ) AS ?t ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?g ) AS ?j ) WHERE { { ?g rdf:type ontology:Q502895 . ?b rdf:type ontology:Q56061 . ?b property:P417 ?g } UNION { ?b property:P417 ?g . ?b rdf:type ontology:Q56061 . ?g rdf:type ontology:Q1445650 } } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?f ) WHERE { { { ?w rdf:type ontology:Q502895 } UNION { ?w rdf:type ontology:Q1445650 } } . resource:Q504216 property:P417 ?w } } . FILTER ( ?j > ?f ) }
St. Martin in Passeier
action count
action greater
action union
action find_tuple_counts
relation patron saint
type administrative territorial entity
type common name
action find_tuple_counts
relation patron saint
type administrative territorial entity
type holiday
action count
action filter_multi_types
action find
entity St. Martin in Passeier
relation patron saint
type common name
type holiday
[{'concept': 'administrative territorial entity'}, 'patron saint', [{'concept': 'common name'}, {'concept': 'holiday'}]]
SELECT DISTINCT ( COUNT ( ?b ) AS ?t ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?g ) AS ?j ) WHERE { { ?g rdf:type ontology:common_name . ?b rdf:type ontology:administrative_territorial_entity . ?b property:patron_saint ?g } UNION { ?b property:patron_saint ?g . ?b rdf:type ontology:administrative_territorial_entity . ?g rdf:type ontology:holiday } } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?f ) WHERE { { { ?w rdf:type ontology:common_name } UNION { ?w rdf:type ontology:holiday } } . resource:St._Martin_in_Passeier property:patron_saint ?w } } . FILTER ( ?j > ?f ) }
[]
common name holiday administrative territorial entity
SYSTEM
2
Q39519 Q220
(c(Q56061),P417,c(Q502895)|c(Q1445650))
action count
action greater
action union
action find_tuple_counts
relation P417
type Q56061
type Q502895
action find_tuple_counts
relation P417
type Q56061
type Q1445650
action count
action filter_multi_types
action find
entity Q504216
relation P417
type Q502895
type Q1445650
[ANSWER]
[{'concept': 'Q56061'}, 'P417', [{'concept': 'Q502895'}, {'concept': 'Q1445650'}]]
SELECT DISTINCT ( COUNT ( ?b ) AS ?t ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?g ) AS ?j ) WHERE { { ?g rdf:type ontology:Q502895 . ?b rdf:type ontology:Q56061 . ?b property:P417 ?g } UNION { ?b property:P417 ?g . ?b rdf:type ontology:Q56061 . ?g rdf:type ontology:Q1445650 } } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?f ) WHERE { { { ?w rdf:type ontology:Q502895 } UNION { ?w rdf:type ontology:Q1445650 } } . resource:Q504216 property:P417 ?w } } . FILTER ( ?j > ?f ) }
Brinzio Rome
2
action count
action greater
action union
action find_tuple_counts
relation patron saint
type administrative territorial entity
type common name
action find_tuple_counts
relation patron saint
type administrative territorial entity
type holiday
action count
action filter_multi_types
action find
entity St. Martin in Passeier
relation patron saint
type common name
type holiday
[{'concept': 'administrative territorial entity'}, 'patron saint', [{'concept': 'common name'}, {'concept': 'holiday'}]]
SELECT DISTINCT ( COUNT ( ?b ) AS ?t ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?g ) AS ?j ) WHERE { { ?g rdf:type ontology:common_name . ?b rdf:type ontology:administrative_territorial_entity . ?b property:patron_saint ?g } UNION { ?b property:patron_saint ?g . ?b rdf:type ontology:administrative_territorial_entity . ?g rdf:type ontology:holiday } } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?f ) WHERE { { { ?w rdf:type ontology:common_name } UNION { ?w rdf:type ontology:holiday } } . resource:St._Martin_in_Passeier property:patron_saint ?w } } . FILTER ( ?j > ?f ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q374108
P417
Q502895 Q1445650 Q56061
USER
And what about Altrei?
(c(Q56061),P417,c(Q502895)|c(Q1445650))
action count
action greater
action union
action find_tuple_counts
relation P417
type Q56061
type Q502895
action find_tuple_counts
relation P417
type Q56061
type Q1445650
action count
action filter_multi_types
action find
entity Q374108
relation P417
type Q502895
type Q1445650
[{'concept': 'Q56061'}, 'P417', [{'concept': 'Q502895'}, {'concept': 'Q1445650'}]]
SELECT DISTINCT ( COUNT ( ?a ) AS ?e ) WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?o ) ?a WHERE { ?k rdf:type ?z . VALUES ( ?z ) { ( ontology:Q502895 ) ( ontology:Q1445650 ) } } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?d ) WHERE { resource:Q374108 property:P417 ?n . { { ?n rdf:type ontology:Q502895 } UNION { ?n rdf:type ontology:Q1445650 } } } } . FILTER ( ?o > ?d ) }
Altrei
action count
action greater
action union
action find_tuple_counts
relation patron saint
type administrative territorial entity
type common name
action find_tuple_counts
relation patron saint
type administrative territorial entity
type holiday
action count
action filter_multi_types
action find
entity Altrei
relation patron saint
type common name
type holiday
[{'concept': 'administrative territorial entity'}, 'patron saint', [{'concept': 'common name'}, {'concept': 'holiday'}]]
SELECT DISTINCT ( COUNT ( ?a ) AS ?e ) WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?o ) ?a WHERE { ?k rdf:type ?z . VALUES ( ?z ) { ( ontology:common_name ) ( ontology:holiday ) } } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?d ) WHERE { resource:Altrei property:patron_saint ?n . { { ?n rdf:type ontology:common_name } UNION { ?n rdf:type ontology:holiday } } } } . FILTER ( ?o > ?d ) }
[]
common name holiday administrative territorial entity
SYSTEM
2
Q39519 Q220
(c(Q56061),P417,c(Q502895)|c(Q1445650))
action count
action greater
action union
action find_tuple_counts
relation P417
type Q56061
type Q502895
action find_tuple_counts
relation P417
type Q56061
type Q1445650
action count
action filter_multi_types
action find
entity Q374108
relation P417
type Q502895
type Q1445650
[ANSWER]
[{'concept': 'Q56061'}, 'P417', [{'concept': 'Q502895'}, {'concept': 'Q1445650'}]]
SELECT DISTINCT ( COUNT ( ?a ) AS ?e ) WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?o ) ?a WHERE { ?k rdf:type ?z . VALUES ( ?z ) { ( ontology:Q502895 ) ( ontology:Q1445650 ) } } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?d ) WHERE { resource:Q374108 property:P417 ?n . { { ?n rdf:type ontology:Q502895 } UNION { ?n rdf:type ontology:Q1445650 } } } } . FILTER ( ?o > ?d ) }
Brinzio Rome
2
action count
action greater
action union
action find_tuple_counts
relation patron saint
type administrative territorial entity
type common name
action find_tuple_counts
relation patron saint
type administrative territorial entity
type holiday
action count
action filter_multi_types
action find
entity Altrei
relation patron saint
type common name
type holiday
[{'concept': 'administrative territorial entity'}, 'patron saint', [{'concept': 'common name'}, {'concept': 'holiday'}]]
SELECT DISTINCT ( COUNT ( ?a ) AS ?e ) WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?o ) ?a WHERE { ?k rdf:type ?z . VALUES ( ?z ) { ( ontology:common_name ) ( ontology:holiday ) } } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?d ) WHERE { resource:Altrei property:patron_saint ?n . { { ?n rdf:type ontology:common_name } UNION { ?n rdf:type ontology:holiday } } } } . FILTER ( ?o > ?d ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2807
P237
Q17335294
USER
What is the ensign for Madrid ?
(Q2807,P237,c(Q17335294))
action filter_type
action find
entity Q2807
relation P237
type Q17335294
['Q2807', 'P237', {'concept': 'Q17335294'}]
SELECT DISTINCT ?e WHERE { resource:Q2807 property:P237 ?e . ?e rdf:type ontology:Q17335294 }
Madrid
action filter_type
action find
entity Madrid
relation coat of arms
type flag or coat of arms
['Madrid', 'coat of arms', {'concept': 'flag or coat of arms'}]
SELECT DISTINCT ?e WHERE { resource:Madrid property:coat_of_arms ?e . ?e rdf:type ontology:flag_or_coat_of_arms }
[]
flag or coat of arms
Q3775707
SYSTEM
Coat of arms of Madrid
Q3775707
(Q2807,P237,c(Q17335294))
action filter_type
action find
entity Q2807
relation P237
type Q17335294
The ensign for Madrid is the [ANSWER]
['Q2807', 'P237', {'concept': 'Q17335294'}]
SELECT DISTINCT ?e WHERE { resource:Q2807 property:P237 ?e . ?e rdf:type ontology:Q17335294 }
Coat of arms of Madrid
The ensign for Madrid is the Coat of arms of Madrid
Coat of arms of Madrid
action filter_type
action find
entity Madrid
relation coat of arms
type flag or coat of arms
['Madrid', 'coat of arms', {'concept': 'flag or coat of arms'}]
SELECT DISTINCT ?e WHERE { resource:Madrid property:coat_of_arms ?e . ?e rdf:type ontology:flag_or_coat_of_arms }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q36600
Q17335294
USER
And how about The Hague?
(Q36600,P237,c(Q17335294))
action filter_type
action find
entity Q36600
relation P237
type Q17335294
['Q36600', 'P237', {'concept': 'Q17335294'}]
SELECT DISTINCT ?d WHERE { resource:Q36600 property:P237 ?d . ?d rdf:type ontology:Q17335294 }
The Hague
action filter_type
action find
entity The Hague
relation coat of arms
type flag or coat of arms
['The Hague', 'coat of arms', {'concept': 'flag or coat of arms'}]
SELECT DISTINCT ?d WHERE { resource:The_Hague property:coat_of_arms ?d . ?d rdf:type ontology:flag_or_coat_of_arms }
[]
flag or coat of arms
Q4318393
SYSTEM
coat of arms of The Hague
Q4318393
(Q36600,P237,c(Q17335294))
action filter_type
action find
entity Q36600
relation P237
type Q17335294
[ANSWER]
['Q36600', 'P237', {'concept': 'Q17335294'}]
SELECT DISTINCT ?d WHERE { resource:Q36600 property:P237 ?d . ?d rdf:type ontology:Q17335294 }
coat of arms of The Hague
coat of arms of The Hague
action filter_type
action find
entity The Hague
relation coat of arms
type flag or coat of arms
['The Hague', 'coat of arms', {'concept': 'flag or coat of arms'}]
SELECT DISTINCT ?d WHERE { resource:The_Hague property:coat_of_arms ?d . ?d rdf:type ontology:flag_or_coat_of_arms }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q4318393 Q55 Q654316
P17
Q15617994
USER
Is coat of arms of The Hague present in Netherlands and Kerpen ?
(Q4318393,P17,Q55) (Q4318393,P17,Q654316)
action is_in
entity Q4318393
action intersection
action find_reverse
entity Q55
relation P17
action find_reverse
entity Q654316
relation P17
['Q4318393', 'P17', 'Q55'] ['Q4318393', 'P17', 'Q654316']
ASK WHERE { resource:Q4318393 property:P17 resource:Q55 . resource:Q4318393 property:P17 resource:Q654316 }
coat of arms of The Hague Netherlands Kerpen
action is_in
entity coat of arms of The Hague
action intersection
action find_reverse
entity Netherlands
relation country
action find_reverse
entity Kerpen
relation country
['coat of arms of The Hague', 'country', 'Netherlands'] ['coat of arms of The Hague', 'country', 'Kerpen']
ASK WHERE { resource:coat_of_arms_of_The_Hague property:country resource:Netherlands . resource:coat_of_arms_of_The_Hague property:country resource:Kerpen }
[]
designation for an administrative territorial entity
SYSTEM
YES and NO respectively
(Q4318393,P17,Q55) (Q4318393,P17,Q654316)
action is_in
entity Q4318393
action intersection
action find_reverse
entity Q55
relation P17
action find_reverse
entity Q654316
relation P17
[ANSWER]
['Q4318393', 'P17', 'Q55'] ['Q4318393', 'P17', 'Q654316']
ASK WHERE { resource:Q4318393 property:P17 resource:Q55 . resource:Q4318393 property:P17 resource:Q654316 }
YES and NO respectively
action is_in
entity coat of arms of The Hague
action intersection
action find_reverse
entity Netherlands
relation country
action find_reverse
entity Kerpen
relation country
['coat of arms of The Hague', 'country', 'Netherlands'] ['coat of arms of The Hague', 'country', 'Kerpen']
ASK WHERE { resource:coat_of_arms_of_The_Hague property:country resource:Netherlands . resource:coat_of_arms_of_The_Hague property:country resource:Kerpen }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q16555
P190
Q56061
USER
Which administrative territories are the sister cities of Houston ?
(Q16555,P190,c(Q56061))
action filter_type
action find
entity Q16555
relation P190
type Q56061
['Q16555', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ?v WHERE { resource:Q16555 property:P190 ?v . ?v rdf:type ontology:Q56061 }
Houston
action filter_type
action find
entity Houston
relation sister city
type administrative territorial entity
['Houston', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { resource:Houston property:sister_city ?v . ?v rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q406 Q1867 Q1489
SYSTEM
Istanbul, Taipei, Mexico City
Q3897 Q36405 Q25416 Q12246 Q1489 Q816845 Q9248 Q406 Q43509 Q1867 Q85 Q3183 Q5815
(Q16555,P190,c(Q56061))
action filter_type
action find
entity Q16555
relation P190
type Q56061
[ANSWERS] are the sister cities of Houston
['Q16555', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ?v WHERE { resource:Q16555 property:P190 ?v . ?v rdf:type ontology:Q56061 }
Luanda Aberdeen Stavanger Huelva Mexico City Irapuato Baku Istanbul Guayaquil Taipei Cairo Perth Tyumen
Istanbul, Taipei and Mexico City are the sister cities of Houston
Istanbul Taipei Mexico City
action filter_type
action find
entity Houston
relation sister city
type administrative territorial entity
['Houston', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { resource:Houston property:sister_city ?v . ?v rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Ellipsis)
Incomplete|object parent is changed, subject and predicate remain same
Q16555
Q1048835
USER
And which political territory?
(Q16555,P190,c(Q1048835))
action filter_type
action find
entity Q16555
relation P190
type Q1048835
['Q16555', 'P190', {'concept': 'Q1048835'}]
SELECT DISTINCT ?z WHERE { resource:Q16555 property:P190 ?z . ?z rdf:type ontology:Q1048835 }
Houston
action filter_type
action find
entity Houston
relation sister city
type political territorial entity
['Houston', 'sister city', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?z WHERE { resource:Houston property:sister_city ?z . ?z rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q15174
SYSTEM
Shenzhen
Q15174
(Q16555,P190,c(Q1048835))
action filter_type
action find
entity Q16555
relation P190
type Q1048835
[ANSWER]
['Q16555', 'P190', {'concept': 'Q1048835'}]
SELECT DISTINCT ?z WHERE { resource:Q16555 property:P190 ?z . ?z rdf:type ontology:Q1048835 }
Shenzhen
Shenzhen
action filter_type
action find
entity Houston
relation sister city
type political territorial entity
['Houston', 'sister city', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?z WHERE { resource:Houston property:sister_city ?z . ?z rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q1048835 Q1048835
USER
How many political territories have diplomatic associations with around 4 political territories ?
(c(Q1048835),P530,c(Q1048835))
action count
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
value 4
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?v ) WHERE { { SELECT DISTINCT ?l ( COUNT ( ?s ) AS ?f ) WHERE { ?l property:P530 ?s . ?l rdf:type ontology:Q1048835 . ?s rdf:type ontology:Q1048835 } GROUP BY ?l } . FILTER ( ?f = 4 ) }
action count
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
value 4
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?v ) WHERE { { SELECT DISTINCT ?l ( COUNT ( ?s ) AS ?f ) WHERE { ?l property:diplomatic_relation ?s . ?l rdf:type ontology:political_territorial_entity . ?s rdf:type ontology:political_territorial_entity } GROUP BY ?l } . FILTER ( ?f = 4 ) }
[]
political territorial entity political territorial entity
SYSTEM
5
Q40 Q183 Q35 Q16 Q664
(c(Q1048835),P530,c(Q1048835))
action count
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
value 4
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?v ) WHERE { { SELECT DISTINCT ?l ( COUNT ( ?s ) AS ?f ) WHERE { ?l property:P530 ?s . ?l rdf:type ontology:Q1048835 . ?s rdf:type ontology:Q1048835 } GROUP BY ?l } . FILTER ( ?f = 4 ) }
Austria Germany Denmark Canada New Zealand
5
action count
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
value 4
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?v ) WHERE { { SELECT DISTINCT ?l ( COUNT ( ?s ) AS ?f ) WHERE { ?l property:diplomatic_relation ?s . ?l rdf:type ontology:political_territorial_entity . ?s rdf:type ontology:political_territorial_entity } GROUP BY ?l } . FILTER ( ?f = 4 ) }
[]