Simple Question (Direct)
Simple Question
Q1733213
P108
Q3918
USER
Which university does Karl Ubl work for ?
(Q1733213,P108,c(Q3918))
action filter_type
action find
entity Q1733213
relation P108
type Q3918
['Q1733213', 'P108', {'concept': 'Q3918'}]
SELECT DISTINCT ?e WHERE { resource:Q1733213 property:P108 ?e . ?e rdf:type ontology:Q3918 }
Karl Ubl
action filter_type
action find
entity Karl Ubl
relation employer
type university
['Karl Ubl', 'employer', {'concept': 'university'}]
SELECT DISTINCT ?e WHERE { resource:Karl_Ubl property:employer ?e . ?e rdf:type ontology:university }
[]
university
Q153978
SYSTEM
University of Tübingen
Q153978
(Q1733213,P108,c(Q3918))
action filter_type
action find
entity Q1733213
relation P108
type Q3918
[ANSWER] does Karl Ubl work for
['Q1733213', 'P108', {'concept': 'Q3918'}]
SELECT DISTINCT ?e WHERE { resource:Q1733213 property:P108 ?e . ?e rdf:type ontology:Q3918 }
University of Tübingen
University of Tübingen does Karl Ubl work for
University of Tübingen
action filter_type
action find
entity Karl Ubl
relation employer
type university
['Karl Ubl', 'employer', {'concept': 'university'}]
SELECT DISTINCT ?e WHERE { resource:Karl_Ubl property:employer ?e . ?e rdf:type ontology:university }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1733213
P512
Q3412758
USER
Which qualification does Karl Ubl hold ?
(Q1733213,P512,c(Q3412758))
action filter_type
action find
entity Q1733213
relation P512
type Q3412758
['Q1733213', 'P512', {'concept': 'Q3412758'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q3412758 . resource:Q1733213 property:P512 ?v }
Karl Ubl
action filter_type
action find
entity Karl Ubl
relation academic degree
type qualification
['Karl Ubl', 'academic degree', {'concept': 'qualification'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:qualification . resource:Karl_Ubl property:academic_degree ?v }
[]
qualification
Q849697
SYSTEM
doctoral degree
Q849697
(Q1733213,P512,c(Q3412758))
action filter_type
action find
entity Q1733213
relation P512
type Q3412758
Karl Ubl holds the [ANSWER]
['Q1733213', 'P512', {'concept': 'Q3412758'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q3412758 . resource:Q1733213 property:P512 ?v }
doctoral degree
Karl Ubl holds the doctoral degree
doctoral degree
action filter_type
action find
entity Karl Ubl
relation academic degree
type qualification
['Karl Ubl', 'academic degree', {'concept': 'qualification'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:qualification . resource:Karl_Ubl property:academic_degree ?v }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1733213
P19
Q56061
USER
Which administrative territory is the birthplace of Karl Ubl ?
(Q1733213,P19,c(Q56061))
action filter_type
action find
entity Q1733213
relation P19
type Q56061
['Q1733213', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?e WHERE { resource:Q1733213 property:P19 ?e . ?e rdf:type ontology:Q56061 }
Karl Ubl
action filter_type
action find
entity Karl Ubl
relation place of birth
type administrative territorial entity
['Karl Ubl', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { resource:Karl_Ubl property:place_of_birth ?e . ?e rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1741
SYSTEM
Vienna
Q1741
(Q1733213,P19,c(Q56061))
action filter_type
action find
entity Q1733213
relation P19
type Q56061
[ANSWER] is the birthplace of Karl Ubl
['Q1733213', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?e WHERE { resource:Q1733213 property:P19 ?e . ?e rdf:type ontology:Q56061 }
Vienna
Vienna is the birthplace of Karl Ubl
Vienna
action filter_type
action find
entity Karl Ubl
relation place of birth
type administrative territorial entity
['Karl Ubl', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { resource:Karl_Ubl property:place_of_birth ?e . ?e rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q193655
Q56061
USER
And what about John Hasbrouck Van Vleck?
(Q193655,P19,c(Q56061))
action filter_type
action find
entity Q193655
relation P19
type Q56061
['Q193655', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?i WHERE { resource:Q193655 property:P19 ?i . ?i rdf:type ontology:Q56061 }
John Hasbrouck Van Vleck
action filter_type
action find
entity John Hasbrouck Van Vleck
relation place of birth
type administrative territorial entity
['John Hasbrouck Van Vleck', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { resource:John_Hasbrouck_Van_Vleck property:place_of_birth ?i . ?i rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q49192
SYSTEM
Middletown
Q49192
(Q193655,P19,c(Q56061))
action filter_type
action find
entity Q193655
relation P19
type Q56061
[ANSWER]
['Q193655', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?i WHERE { resource:Q193655 property:P19 ?i . ?i rdf:type ontology:Q56061 }
Middletown
Middletown
action filter_type
action find
entity John Hasbrouck Van Vleck
relation place of birth
type administrative territorial entity
['John Hasbrouck Van Vleck', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { resource:John_Hasbrouck_Van_Vleck property:place_of_birth ?i . ?i rdf:type ontology:administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q49192 Q30
P17
Q15617994
USER
Does that administrative territory belong to United States of America ?
(Q49192,P17,Q30)
action is_in
entity Q30
action find
entity Q49192
relation P17
['Q49192', 'P17', 'Q30']
ASK WHERE { resource:Q49192 property:P17 resource:Q30 }
Middletown United States of America
action is_in
entity United States of America
action find
entity Middletown
relation country
['Middletown', 'country', 'United States of America']
ASK WHERE { resource:Middletown property:country resource:United_States_of_America }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q49192,P17,Q30)
action is_in
entity Q30
action find
entity Q49192
relation P17
[ANSWER]
['Q49192', 'P17', 'Q30']
ASK WHERE { resource:Q49192 property:P17 resource:Q30 }
Yes
action is_in
entity United States of America
action find
entity Middletown
relation country
['Middletown', 'country', 'United States of America']
ASK WHERE { resource:Middletown property:country resource:United_States_of_America }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q1459293 Q1733213
P27
Q1048835
USER
Which political territories are Karl Ubl or Friedrich Gottas a civilian of ?
OR((Q1733213,P27,c(Q1048835)), (Q1459293,P27,c(Q1048835)))
action filter_type
action union
action find
entity Q1733213
relation P27
action find
entity Q1459293
relation P27
type Q1048835
{'OR': [['Q1733213', 'P27', {'concept': 'Q1048835'}], ['Q1459293', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Q1733213 property:P27 ?g } UNION { resource:Q1459293 property:P27 ?g } } . ?g rdf:type ontology:Q1048835 }
Friedrich Gottas Karl Ubl
action filter_type
action union
action find
entity Karl Ubl
relation country of citizenship
action find
entity Friedrich Gottas
relation country of citizenship
type political territorial entity
{'OR': [['Karl Ubl', 'country of citizenship', {'concept': 'political territorial entity'}], ['Friedrich Gottas', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Karl_Ubl property:country_of_citizenship ?g } UNION { resource:Friedrich_Gottas property:country_of_citizenship ?g } } . ?g rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q40
SYSTEM
Austria
Q40
OR((Q1733213,P27,c(Q1048835)), (Q1459293,P27,c(Q1048835)))
action filter_type
action union
action find
entity Q1733213
relation P27
action find
entity Q1459293
relation P27
type Q1048835
[ANSWER] is Karl Ubl or Friedrich Gottas a civilian of
{'OR': [['Q1733213', 'P27', {'concept': 'Q1048835'}], ['Q1459293', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Q1733213 property:P27 ?g } UNION { resource:Q1459293 property:P27 ?g } } . ?g rdf:type ontology:Q1048835 }
Austria
Austria is Karl Ubl or Friedrich Gottas a civilian of
Austria
action filter_type
action union
action find
entity Karl Ubl
relation country of citizenship
action find
entity Friedrich Gottas
relation country of citizenship
type political territorial entity
{'OR': [['Karl Ubl', 'country of citizenship', {'concept': 'political territorial entity'}], ['Friedrich Gottas', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Karl_Ubl property:country_of_citizenship ?g } UNION { resource:Friedrich_Gottas property:country_of_citizenship ?g } } . ?g rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P180
Q56061 Q1792379 Q2342494
USER
Which administrative territories are expressed in min number of art genres or collectables ?
(c(Q1792379)|c(Q2342494),P180,c(Q56061))
action argmin
action union
action find_reverse_tuple_counts
relation P180
type Q56061
type Q1792379
action find_reverse_tuple_counts
relation P180
type Q56061
type Q2342494
[[{'concept': 'Q1792379'}, {'concept': 'Q2342494'}], 'P180', {'concept': 'Q56061'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( MIN ( ?b ) AS ?s ) { SELECT DISTINCT ?e ( COUNT ( ?i ) AS ?b ) WHERE { ?i rdf:type ?f . VALUES ( ?f ) { ( ontology:Q1792379 ) ( ontology:Q2342494 ) } } GROUP BY ?e } } . FILTER ( ?v = ?s ) . { SELECT DISTINCT ?x ( COUNT ( ?j ) AS ?v ) WHERE { { ?j property:P180 ?x . ?j rdf:type ontology:Q1792379 . ?x rdf:type ontology:Q56061 } UNION { ?j property:P180 ?x . ?x rdf:type ontology:Q56061 . ?j rdf:type ontology:Q2342494 } } GROUP BY ?x } }
action argmin
action union
action find_reverse_tuple_counts
relation depicts
type administrative territorial entity
type art genre
action find_reverse_tuple_counts
relation depicts
type administrative territorial entity
type collectable
[[{'concept': 'art genre'}, {'concept': 'collectable'}], 'depicts', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( MIN ( ?b ) AS ?s ) { SELECT DISTINCT ?e ( COUNT ( ?i ) AS ?b ) WHERE { ?i rdf:type ?f . VALUES ( ?f ) { ( ontology:art_genre ) ( ontology:collectable ) } } GROUP BY ?e } } . FILTER ( ?v = ?s ) . { SELECT DISTINCT ?x ( COUNT ( ?j ) AS ?v ) WHERE { { ?j property:depicts ?x . ?j rdf:type ontology:art_genre . ?x rdf:type ontology:administrative_territorial_entity } UNION { ?j property:depicts ?x . ?x rdf:type ontology:administrative_territorial_entity . ?j rdf:type ontology:collectable } } GROUP BY ?x } }
[]
administrative territorial entity art genre collectable
Q1085 Q649 Q2807
SYSTEM
Prague, Moscow, Madrid
Q894252 Q11370950 Q81076 Q10084 Q5180660 Q2536016 Q103011 Q7228196 Q52437 Q2741834 Q2218481 Q2035368 Q3876885 Q319536 Q319538 Q33486 Q12443 Q3405864 Q11093013 Q7165393 Q3615313 Q6661066 Q1889195 Q950671 Q2214216 Q10989923 Q1198413 Q322 Q151920 Q13375 Q1656724 Q130514 Q3404679 Q787395 Q33959 Q2184880 Q23051 Q2656 Q5687 Q7259867 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 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 Q1013633 Q2227185 Q2100774 Q284467 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 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 Q90 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(Q1792379)|c(Q2342494),P180,c(Q56061))
action argmin
action union
action find_reverse_tuple_counts
relation P180
type Q56061
type Q1792379
action find_reverse_tuple_counts
relation P180
type Q56061
type Q2342494
[ANSWERS] are expressed in min number of art genres or collectables
[[{'concept': 'Q1792379'}, {'concept': 'Q2342494'}], 'P180', {'concept': 'Q56061'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( MIN ( ?b ) AS ?s ) { SELECT DISTINCT ?e ( COUNT ( ?i ) AS ?b ) WHERE { ?i rdf:type ?f . VALUES ( ?f ) { ( ontology:Q1792379 ) ( ontology:Q2342494 ) } } GROUP BY ?e } } . FILTER ( ?v = ?s ) . { SELECT DISTINCT ?x ( COUNT ( ?j ) AS ?v ) WHERE { { ?j property:P180 ?x . ?j rdf:type ontology:Q1792379 . ?x rdf:type ontology:Q56061 } UNION { ?j property:P180 ?x . ?x rdf:type ontology:Q56061 . ?j rdf:type ontology:Q2342494 } } GROUP BY ?x } }
Borth Kameido Zierikzee Vlissingen Craig-y-Don Crickhowell Corinth Pontfadog Murano Llanidloes Oosterbeek Tremadog Minsterley Aberdyfi Abererch Hartford Marquette Llandygai Cyffylliog Penybont Andaraí Llanarmon, Gwynedd Mogenstrup Porthmadog Soestdijk Llanfihangel-yng-Ngwynfa military camp Llanfairpwllgwyngyll Tiberias Pisa ideal city Luxor Crumlin Llanfairfechan Nice St Pierre, Monmouthshire Swansea Palermo Jericho Pumsaint 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 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 Ruthin Felpham Point Judith, Rhode Island Vogelenzang 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 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 Paris 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 min number of art genres or collectables
Prague Moscow Madrid
action argmin
action union
action find_reverse_tuple_counts
relation depicts
type administrative territorial entity
type art genre
action find_reverse_tuple_counts
relation depicts
type administrative territorial entity
type collectable
[[{'concept': 'art genre'}, {'concept': 'collectable'}], 'depicts', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( MIN ( ?b ) AS ?s ) { SELECT DISTINCT ?e ( COUNT ( ?i ) AS ?b ) WHERE { ?i rdf:type ?f . VALUES ( ?f ) { ( ontology:art_genre ) ( ontology:collectable ) } } GROUP BY ?e } } . FILTER ( ?v = ?s ) . { SELECT DISTINCT ?x ( COUNT ( ?j ) AS ?v ) WHERE { { ?j property:depicts ?x . ?j rdf:type ontology:art_genre . ?x rdf:type ontology:administrative_territorial_entity } UNION { ?j property:depicts ?x . ?x rdf:type ontology:administrative_territorial_entity . ?j rdf:type ontology:collectable } } GROUP BY ?x } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q7120888
P532
Q56061 Q2235308
USER
Which ship types have more number of administrative territories as their registry harbour than SS Prince of Wales ?
(c(Q2235308),P532,c(Q56061))
action greater
action find_tuple_counts
relation P532
type Q2235308
type Q56061
action count
action filter_type
action find
entity Q7120888
relation P532
type Q2235308
[{'concept': 'Q2235308'}, 'P532', {'concept': 'Q56061'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?y ) AS ?j ) WHERE { ?i rdf:type ontology:Q2235308 . ?y rdf:type ontology:Q56061 . ?i property:P532 ?y } GROUP BY ?i } . FILTER ( ?j > ?r ) . { SELECT DISTINCT ( COUNT ( ?f ) AS ?r ) WHERE { resource:Q7120888 property:P532 ?f . ?f rdf:type ontology:Q2235308 } } }
SS Prince of Wales
action greater
action find_tuple_counts
relation port of registry
type ship type
type administrative territorial entity
action count
action filter_type
action find
entity SS Prince of Wales
relation port of registry
type ship type
[{'concept': 'ship type'}, 'port of registry', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?y ) AS ?j ) WHERE { ?i rdf:type ontology:ship_type . ?y rdf:type ontology:administrative_territorial_entity . ?i property:port_of_registry ?y } GROUP BY ?i } . FILTER ( ?j > ?r ) . { SELECT DISTINCT ( COUNT ( ?f ) AS ?r ) WHERE { resource:SS_Prince_of_Wales property:port_of_registry ?f . ?f rdf:type ontology:ship_type } } }
[]
administrative territorial entity ship type
Q2596850 Q468026 Q11707059
SYSTEM
MS Azura, SS Maxim Gorkiy, MS Arrow
Q11707059 Q33209 Q1514518 Q2596850 Q468026
(c(Q2235308),P532,c(Q56061))
action greater
action find_tuple_counts
relation P532
type Q2235308
type Q56061
action count
action filter_type
action find
entity Q7120888
relation P532
type Q2235308
[ANSWERS] have more number of administrative territories as their registry harbour than SS Prince of Wales
[{'concept': 'Q2235308'}, 'P532', {'concept': 'Q56061'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?y ) AS ?j ) WHERE { ?i rdf:type ontology:Q2235308 . ?y rdf:type ontology:Q56061 . ?i property:P532 ?y } GROUP BY ?i } . FILTER ( ?j > ?r ) . { SELECT DISTINCT ( COUNT ( ?f ) AS ?r ) WHERE { resource:Q7120888 property:P532 ?f . ?f rdf:type ontology:Q2235308 } } }
MS Arrow Mary Celeste Sapphire Princess MS Azura SS Maxim Gorkiy
MS Azura, SS Maxim Gorkiy and MS Arrow have more number of administrative territories as their registry harbour than SS Prince of Wales
MS Azura SS Maxim Gorkiy MS Arrow
action greater
action find_tuple_counts
relation port of registry
type ship type
type administrative territorial entity
action count
action filter_type
action find
entity SS Prince of Wales
relation port of registry
type ship type
[{'concept': 'ship type'}, 'port of registry', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?y ) AS ?j ) WHERE { ?i rdf:type ontology:ship_type . ?y rdf:type ontology:administrative_territorial_entity . ?i property:port_of_registry ?y } GROUP BY ?i } . FILTER ( ?j > ?r ) . { SELECT DISTINCT ( COUNT ( ?f ) AS ?r ) WHERE { resource:SS_Prince_of_Wales property:port_of_registry ?f . ?f rdf:type ontology:ship_type } } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q24027337
P532
Q56061 Q2235308
USER
And also tell me about Fanny Fothergill?
(c(Q2235308),P532,c(Q56061))
action greater
action find_tuple_counts
relation P532
type Q2235308
type Q56061
action count
action filter_type
action find
entity Q24027337
relation P532
type Q2235308
[{'concept': 'Q2235308'}, 'P532', {'concept': 'Q56061'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?r ) WHERE { resource:Q24027337 property:P532 ?q . ?q rdf:type ontology:Q2235308 } } . FILTER ( ?w > ?r ) . { SELECT DISTINCT ?d ( COUNT ( ?m ) AS ?w ) WHERE { ?d property:P532 ?m . ?d rdf:type ontology:Q2235308 . ?m rdf:type ontology:Q56061 } GROUP BY ?d } }
Fanny Fothergill
action greater
action find_tuple_counts
relation port of registry
type ship type
type administrative territorial entity
action count
action filter_type
action find
entity Fanny Fothergill
relation port of registry
type ship type
[{'concept': 'ship type'}, 'port of registry', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?r ) WHERE { resource:Fanny_Fothergill property:port_of_registry ?q . ?q rdf:type ontology:ship_type } } . FILTER ( ?w > ?r ) . { SELECT DISTINCT ?d ( COUNT ( ?m ) AS ?w ) WHERE { ?d property:port_of_registry ?m . ?d rdf:type ontology:ship_type . ?m rdf:type ontology:administrative_territorial_entity } GROUP BY ?d } }
[]
administrative territorial entity ship type
Q2596850 Q468026 Q35462
SYSTEM
MS Azura, SS Maxim Gorkiy, RMS Aquitania
Q2992316 Q2301456 Q983141 Q133606 Q26988086 Q168474 Q300311 Q20489530 Q5338632 Q7499755 Q2124429 Q1293488 Q1017179 Q7120838 Q7393546 Q25173 Q14493958 Q18128240 Q664284 Q26988094 Q21196329 Q10659251 Q477173 Q130373 Q19608222 Q11707059 Q1026780 Q22342351 Q15662618 Q33209 Q1514518 Q2596850 Q16854668 Q1325547 Q761593 Q26883829 Q2124449 Q778649 Q3952367 Q11705702 Q24039469 Q751584 Q6930211 Q16629249 Q497065 Q3053251 Q468026 Q1439419 Q23579589 Q4686475 Q26987769 Q11891639 Q321007 Q6720006 Q741803 Q338340 Q7120888 Q215692 Q917188 Q18213370 Q1129910 Q2714360 Q16852551 Q1514126 Q18711004 Q1339472 Q3558075 Q192381 Q493616 Q35462
(c(Q2235308),P532,c(Q56061))
action greater
action find_tuple_counts
relation P532
type Q2235308
type Q56061
action count
action filter_type
action find
entity Q24027337
relation P532
type Q2235308
[ANSWERS]
[{'concept': 'Q2235308'}, 'P532', {'concept': 'Q56061'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?r ) WHERE { resource:Q24027337 property:P532 ?q . ?q rdf:type ontology:Q2235308 } } . FILTER ( ?w > ?r ) . { SELECT DISTINCT ?d ( COUNT ( ?m ) AS ?w ) WHERE { ?d property:P532 ?m . ?d rdf:type ontology:Q2235308 . ?m rdf:type ontology:Q56061 } GROUP BY ?d } }
HSC Condor Rapide MS Viking XPRS MY Sam Simon MS Star Meteora MV Arctic Sunrise A MS Harmony of the Seas Edith Mærsk Shoalway RMS Samaria MV Esperanza SS Burutu PS Empress Queen SS Empire Airman RMS Titanic Mærsk Mc-Kinney Møller MS Quantum of the Seas Pioneering Spirit Emma Victory SS Argentina S/S Drottningholm Emma Mærsk Admiral Makarov HSC Condor Liberation MS Arrow SS California Modern Express Djurgården 8 Mary Celeste Sapphire Princess MS Azura Mein Schiff 4 MT Mastera CMA CGM Marco Polo VOS Sympathy RMS St Helena Eclipse MS Norman Atlantic MV Ascension HSC Highspeed 5 MS Express Samina msy Wind Song Varnek (ship, 1974-2010) MV Baltic Ace Empire Sandy SS Maxim Gorkiy Vitus Bering MV Christinaki Adventure British Explorer SS Coccolita RMS Olympic MV Royal Daffodil RMS Mauretania MV Boudicca SS Prince of Wales HMHS Britannic MS Brilliance of the Seas Anthem of the Seas SS Potsdam MS Empress MS Epsilon MS Marco Polo MV Hoegh Osaka RMS Empress of Ireland Vieux Crabe MS Oasis of the Seas Royal Clipper RMS Aquitania
MS Azura SS Maxim Gorkiy RMS Aquitania
action greater
action find_tuple_counts
relation port of registry
type ship type
type administrative territorial entity
action count
action filter_type
action find
entity Fanny Fothergill
relation port of registry
type ship type
[{'concept': 'ship type'}, 'port of registry', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?r ) WHERE { resource:Fanny_Fothergill property:port_of_registry ?q . ?q rdf:type ontology:ship_type } } . FILTER ( ?w > ?r ) . { SELECT DISTINCT ?d ( COUNT ( ?m ) AS ?w ) WHERE { ?d property:port_of_registry ?m . ?d rdf:type ontology:ship_type . ?m rdf:type ontology:administrative_territorial_entity } GROUP BY ?d } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q632146 Q49192
P19
Q502895
USER
Which people have location of birth at Middletown or Enying ?
OR((c(Q502895),P19,Q49192), (c(Q502895),P19,Q632146))
action filter_type
action union
action find_reverse
entity Q49192
relation P19
action find_reverse
entity Q632146
relation P19
type Q502895
{'OR': [[{'concept': 'Q502895'}, 'P19', 'Q49192'], [{'concept': 'Q502895'}, 'P19', 'Q632146']]}
SELECT DISTINCT ?i WHERE { { { ?i property:P19 resource:Q49192 } UNION { ?i property:P19 resource:Q632146 } } . ?i rdf:type ontology:Q502895 }
Enying Middletown
action filter_type
action union
action find_reverse
entity Middletown
relation place of birth
action find_reverse
entity Enying
relation place of birth
type common name
{'OR': [[{'concept': 'common name'}, 'place of birth', 'Middletown'], [{'concept': 'common name'}, 'place of birth', 'Enying']]}
SELECT DISTINCT ?i WHERE { { { ?i property:place_of_birth resource:Middletown } UNION { ?i property:place_of_birth resource:Enying } } . ?i rdf:type ontology:common_name }
[]
common name
Q2442768 Q1177114 Q5354414 Q640388 Q1412129 Q2579639 Q2069305 Q1930248 Q4760988 Q5640788
SYSTEM
Some of them are Tony Pastor, David Peoples, Eleanor Wilson McAdoo, Joey Logano, Allie Wrubel, William L. Storrs, Linus Yale, William Huntington Russell, Andy Martin, Hal Hackady
Q7790321 Q260969 Q1686193 Q7792712 Q640388 Q1177114 Q6968594 Q2841229 Q193655 Q20174687 Q7966460 Q1530424 Q1077437 Q16063027 Q5640788 Q744819 Q787804 Q1332554 Q8020240 Q1930248 Q4736908 Q2069305 Q4760988 Q6132458 Q3445545 Q18716212 Q3381097 Q7026332 Q349668 Q3025798 Q1225797 Q16216595 Q5234049 Q2442768 Q5344211 Q6163953 Q3174819 Q10427147 Q6962580 Q868795 Q3624275 Q880604 Q728855 Q1379880 Q2836538 Q5354414 Q2903409 Q6384043 Q1412129 Q2579639 Q214758 Q8017370 Q2440100 Q560598 Q1068407 Q2654825 Q709605 Q6308981
OR((c(Q502895),P19,Q49192), (c(Q502895),P19,Q632146))
action filter_type
action union
action find_reverse
entity Q49192
relation P19
action find_reverse
entity Q632146
relation P19
type Q502895
[ANSWERS] have location of birth at Middletown or Enying
{'OR': [[{'concept': 'Q502895'}, 'P19', 'Q49192'], [{'concept': 'Q502895'}, 'P19', 'Q632146']]}
SELECT DISTINCT ?i WHERE { { { ?i property:P19 resource:Q49192 } UNION { ?i property:P19 resource:Q632146 } } . ?i rdf:type ontology:Q502895 }
Thomas H. Stevens, Jr. Jules Dassin Jeduthun Wilcox Thomas Nevers Joey Logano David Peoples Nate Barlow Amari Spievey John Hasbrouck Van Vleck Richard William Hubbard Walter Wriston John Dean Dickinson Corny Thompson Henry Colton Shumway Hal Hackady Return J. Meigs, Jr. Samuel Dickinson Hubbard Ellsworth C. Phelps William Wetmore William Huntington Russell Alton Tobey Linus Yale Andy Martin James DeKoven John Spellman Géza Mészöly Phillip Stekl Nicholas Turro James Naughton Henry Clay Work Róbert Orosz Lo'renzo Hill-White David Gates Tony Pastor Edward Loranus Rice William Charles Redfield Jean Toth Jordan Russolillo Nancy Caffyn Ezekiel Gilbert Arthur Hoops Stephen F. Chadwick Maurice Rose Frederick W. True Alice Blanchard Eleanor Wilson McAdoo Bill Zeller Keith Bearden Allie Wrubel William L. Storrs Dean Acheson William Ranney Tom Shaka Edward Burr Van Vleck Chauncey Hardy Henry R. Storrs Bill Watrous Juliette Augusta Magill Kinzie
Tony Pastor, David Peoples, Eleanor Wilson McAdoo, Joey Logano, Allie Wrubel, William L. Storrs, Linus Yale, William Huntington Russell, Andy Martin and Hal Hackady have location of birth at Middletown or Enying
Tony Pastor David Peoples Eleanor Wilson McAdoo Joey Logano Allie Wrubel William L. Storrs Linus Yale William Huntington Russell Andy Martin Hal Hackady
action filter_type
action union
action find_reverse
entity Middletown
relation place of birth
action find_reverse
entity Enying
relation place of birth
type common name
{'OR': [[{'concept': 'common name'}, 'place of birth', 'Middletown'], [{'concept': 'common name'}, 'place of birth', 'Enying']]}
SELECT DISTINCT ?i WHERE { { { ?i property:place_of_birth resource:Middletown } UNION { ?i property:place_of_birth resource:Enying } } . ?i rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q2442768 Q1177114 Q5354414 Q640388 Q1412129 Q2579639 Q2069305 Q1930248 Q4760988 Q5640788
P106
Q12737077
USER
What are the professions of those people ?
(Q2442768,P106,c(Q12737077)) (Q1177114,P106,c(Q12737077)) (Q5354414,P106,c(Q12737077)) (Q640388,P106,c(Q12737077)) (Q1412129,P106,c(Q12737077)) (Q2579639,P106,c(Q12737077)) (Q2069305,P106,c(Q12737077)) (Q1930248,P106,c(Q12737077)) (Q4760988,P106,c(Q12737077)) (Q5640788,P106,c(Q12737077))
action filter_type
action find
entity prev_answer
relation P106
type Q12737077
['Q2442768', 'P106', {'concept': 'Q12737077'}] ['Q1177114', 'P106', {'concept': 'Q12737077'}] ['Q5354414', 'P106', {'concept': 'Q12737077'}] ['Q640388', 'P106', {'concept': 'Q12737077'}] ['Q1412129', 'P106', {'concept': 'Q12737077'}] ['Q2579639', 'P106', {'concept': 'Q12737077'}] ['Q2069305', 'P106', {'concept': 'Q12737077'}] ['Q1930248', 'P106', {'concept': 'Q12737077'}] ['Q4760988', 'P106', {'concept': 'Q12737077'}] ['Q5640788', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q12737077 . VALUES ( ?s ) { ( resource:Q7790321 ) ( resource:Q260969 ) ( resource:Q1686193 ) } . ?s property:P106 ?m }
Tony Pastor David Peoples Eleanor Wilson McAdoo Joey Logano Allie Wrubel William L. Storrs Linus Yale William Huntington Russell Andy Martin Hal Hackady
action filter_type
action find
entity prev_answer
relation occupation
type occupation
['Tony Pastor', 'occupation', {'concept': 'occupation'}] ['David Peoples', 'occupation', {'concept': 'occupation'}] ['Eleanor Wilson McAdoo', 'occupation', {'concept': 'occupation'}] ['Joey Logano', 'occupation', {'concept': 'occupation'}] ['Allie Wrubel', 'occupation', {'concept': 'occupation'}] ['William L. Storrs', 'occupation', {'concept': 'occupation'}] ['Linus Yale', 'occupation', {'concept': 'occupation'}] ['William Huntington Russell', 'occupation', {'concept': 'occupation'}] ['Andy Martin', 'occupation', {'concept': 'occupation'}] ['Hal Hackady', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:occupation . VALUES ( ?s ) { ( resource:Thomas_H._Stevens,_Jr. ) ( resource:Jules_Dassin ) ( resource:Jeduthun_Wilcox ) } . ?s property:occupation ?m }
[]
occupation
Q36834 Q1622272 Q822146
SYSTEM
composer, university teacher, lyricist
Q12800682 Q15981151 Q806349 Q177220 Q18844224 Q36180 Q15958185 Q753110 Q36834 Q12800682 Q16533 Q82955 Q1622272 Q205375 Q43845 Q82955 Q753110 Q8178443 Q822146
(Q2442768,P106,c(Q12737077)) (Q1177114,P106,c(Q12737077)) (Q5354414,P106,c(Q12737077)) (Q640388,P106,c(Q12737077)) (Q1412129,P106,c(Q12737077)) (Q2579639,P106,c(Q12737077)) (Q2069305,P106,c(Q12737077)) (Q1930248,P106,c(Q12737077)) (Q4760988,P106,c(Q12737077)) (Q5640788,P106,c(Q12737077))
action filter_type
action find
entity prev_answer
relation P106
type Q12737077
The professions of those people are music [ANSWERS]
['Q2442768', 'P106', {'concept': 'Q12737077'}] ['Q1177114', 'P106', {'concept': 'Q12737077'}] ['Q5354414', 'P106', {'concept': 'Q12737077'}] ['Q640388', 'P106', {'concept': 'Q12737077'}] ['Q1412129', 'P106', {'concept': 'Q12737077'}] ['Q2579639', 'P106', {'concept': 'Q12737077'}] ['Q2069305', 'P106', {'concept': 'Q12737077'}] ['Q1930248', 'P106', {'concept': 'Q12737077'}] ['Q4760988', 'P106', {'concept': 'Q12737077'}] ['Q5640788', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q12737077 . VALUES ( ?s ) { ( resource:Q7790321 ) ( resource:Q260969 ) ( resource:Q1686193 ) } . ?s property:P106 ?m }
saxophonist jazz musician bandleader singer science fiction writer writer racecar driver songwriter composer saxophonist judge politician university teacher inventor businessperson politician songwriter librettist lyricist
The professions of those people are music composer, university teacher and lyricist
composer university teacher lyricist
action filter_type
action find
entity prev_answer
relation occupation
type occupation
['Tony Pastor', 'occupation', {'concept': 'occupation'}] ['David Peoples', 'occupation', {'concept': 'occupation'}] ['Eleanor Wilson McAdoo', 'occupation', {'concept': 'occupation'}] ['Joey Logano', 'occupation', {'concept': 'occupation'}] ['Allie Wrubel', 'occupation', {'concept': 'occupation'}] ['William L. Storrs', 'occupation', {'concept': 'occupation'}] ['Linus Yale', 'occupation', {'concept': 'occupation'}] ['William Huntington Russell', 'occupation', {'concept': 'occupation'}] ['Andy Martin', 'occupation', {'concept': 'occupation'}] ['Hal Hackady', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:occupation . VALUES ( ?s ) { ( resource:Thomas_H._Stevens,_Jr. ) ( resource:Jules_Dassin ) ( resource:Jeduthun_Wilcox ) } . ?s property:occupation ?m }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2807
P276
Q3305213
USER
What is located at Madrid ?
(c(Q3305213),P276,Q2807)
action filter_type
action find_reverse
entity Q2807
relation P276
type Q3305213
[{'concept': 'Q3305213'}, 'P276', 'Q2807']
SELECT DISTINCT ?n WHERE { ?n property:P276 resource:Q2807 . ?n rdf:type ontology:Q3305213 }
Madrid
action filter_type
action find_reverse
entity Madrid
relation location
type painting
[{'concept': 'painting'}, 'location', 'Madrid']
SELECT DISTINCT ?n WHERE { ?n property:location resource:Madrid . ?n rdf:type ontology:painting }
[]
painting
Q21600399
SYSTEM
The Nativity
Q21600399
(c(Q3305213),P276,Q2807)
action filter_type
action find_reverse
entity Q2807
relation P276
type Q3305213
[ANSWER] is located at Madrid
[{'concept': 'Q3305213'}, 'P276', 'Q2807']
SELECT DISTINCT ?n WHERE { ?n property:P276 resource:Q2807 . ?n rdf:type ontology:Q3305213 }
The Nativity
The Nativity is located at Madrid
The Nativity
action filter_type
action find_reverse
entity Madrid
relation location
type painting
[{'concept': 'painting'}, 'location', 'Madrid']
SELECT DISTINCT ?n WHERE { ?n property:location resource:Madrid . ?n rdf:type ontology:painting }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1177114
P1411
Q4220917
USER
Which film award did David Peoples receive ?
(Q1177114,P1411,c(Q4220917))
action filter_type
action find
entity Q1177114
relation P1411
type Q4220917
['Q1177114', 'P1411', {'concept': 'Q4220917'}]
SELECT DISTINCT ?h WHERE { resource:Q1177114 property:P1411 ?h . ?h rdf:type ontology:Q4220917 }
David Peoples
action filter_type
action find
entity David Peoples
relation nominated for
type film award
['David Peoples', 'nominated for', {'concept': 'film award'}]
SELECT DISTINCT ?h WHERE { resource:David_Peoples property:nominated_for ?h . ?h rdf:type ontology:film_award }
[]
film award
Q41417
SYSTEM
Academy Award for Best Writing, Original Screenplay
Q41417
(Q1177114,P1411,c(Q4220917))
action filter_type
action find
entity Q1177114
relation P1411
type Q4220917
David Peoples received an [ANSWER]
['Q1177114', 'P1411', {'concept': 'Q4220917'}]
SELECT DISTINCT ?h WHERE { resource:Q1177114 property:P1411 ?h . ?h rdf:type ontology:Q4220917 }
Academy Award for Best Writing, Original Screenplay
David Peoples received an Academy Award for Best Writing, Original Screenplay
Academy Award for Best Writing, Original Screenplay
action filter_type
action find
entity David Peoples
relation nominated for
type film award
['David Peoples', 'nominated for', {'concept': 'film award'}]
SELECT DISTINCT ?h WHERE { resource:David_Peoples property:nominated_for ?h . ?h rdf:type ontology:film_award }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q8704
Q4220917
USER
And what about Walt Disney?
(Q8704,P1411,c(Q4220917))
action filter_type
action find
entity Q8704
relation P1411
type Q4220917
['Q8704', 'P1411', {'concept': 'Q4220917'}]
SELECT DISTINCT ?z WHERE { resource:Q8704 property:P1411 ?z . ?z rdf:type ontology:Q4220917 }
Walt Disney
action filter_type
action find
entity Walt Disney
relation nominated for
type film award
['Walt Disney', 'nominated for', {'concept': 'film award'}]
SELECT DISTINCT ?z WHERE { resource:Walt_Disney property:nominated_for ?z . ?z rdf:type ontology:film_award }
[]
film award
Q102427 Q22335263 Q1425151
SYSTEM
Academy Award for Best Picture, Academy Award for Best Live Action Short Film, Two-Reel, Academy Award for Best Documentary, Short Subject
Q22335263 Q1425151 Q917808 Q102427 Q111332 Q1324407
(Q8704,P1411,c(Q4220917))
action filter_type
action find
entity Q8704
relation P1411
type Q4220917
[ANSWERS]
['Q8704', 'P1411', {'concept': 'Q4220917'}]
SELECT DISTINCT ?z WHERE { resource:Q8704 property:P1411 ?z . ?z rdf:type ontology:Q4220917 }
Academy Award for Best Live Action Short Film, Two-Reel Academy Award for Best Documentary, Short Subject Academy Award for Best Animated Short Film Academy Award for Best Picture Academy Award for Best Documentary Feature Academy Award for Best Live Action Short Film
Academy Award for Best Picture Academy Award for Best Live Action Short Film, Two-Reel Academy Award for Best Documentary, Short Subject
action filter_type
action find
entity Walt Disney
relation nominated for
type film award
['Walt Disney', 'nominated for', {'concept': 'film award'}]
SELECT DISTINCT ?z WHERE { resource:Walt_Disney property:nominated_for ?z . ?z rdf:type ontology:film_award }
[]