Simple Question (Direct)
Simple Question
Q6248057
P106
Q12737077
USER
What is the profession of John McLaughlin ?
(Q6248057,P106,c(Q12737077))
action filter_type
action find
entity Q6248057
relation P106
type Q12737077
['Q6248057', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q12737077 . resource:Q6248057 property:P106 ?k }
John McLaughlin
action filter_type
action find
entity John McLaughlin
relation occupation
type occupation
['John McLaughlin', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:occupation . resource:John_McLaughlin property:occupation ?k }
[]
occupation
Q937857
SYSTEM
association football player
Q937857
(Q6248057,P106,c(Q12737077))
action filter_type
action find
entity Q6248057
relation P106
type Q12737077
The profession of John McLaughlin is an [ANSWER]
['Q6248057', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q12737077 . resource:Q6248057 property:P106 ?k }
association football player
The profession of John McLaughlin is an association football player
association football player
action filter_type
action find
entity John McLaughlin
relation occupation
type occupation
['John McLaughlin', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:occupation . resource:John_McLaughlin property:occupation ?k }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q6248057
P641
Q349
USER
What was the sport that John McLaughlin was a part of ?
(Q6248057,P641,c(Q349))
action filter_type
action find
entity Q6248057
relation P641
type Q349
['Q6248057', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?h WHERE { resource:Q6248057 property:P641 ?h . ?h rdf:type ontology:Q349 }
John McLaughlin
action filter_type
action find
entity John McLaughlin
relation sport
type sport
['John McLaughlin', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?h WHERE { resource:John_McLaughlin property:sport ?h . ?h rdf:type ontology:sport }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q6248057,P641,c(Q349))
action filter_type
action find
entity Q6248057
relation P641
type Q349
The sport that John McLaughlin was a part of was [ANSWER]
['Q6248057', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?h WHERE { resource:Q6248057 property:P641 ?h . ?h rdf:type ontology:Q349 }
association football
The sport that John McLaughlin was a part of was association football
association football
action filter_type
action find
entity John McLaughlin
relation sport
type sport
['John McLaughlin', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?h WHERE { resource:John_McLaughlin property:sport ?h . ?h rdf:type ontology:sport }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q6248057
P27
Q15617994
USER
Which administrative territory does John McLaughlin belong to ?
(Q6248057,P27,c(Q15617994))
action filter_type
action find
entity Q6248057
relation P27
type Q15617994
['Q6248057', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?p WHERE { resource:Q6248057 property:P27 ?p . ?p rdf:type ontology:Q15617994 }
John McLaughlin
action filter_type
action find
entity John McLaughlin
relation country of citizenship
type designation for an administrative territorial entity
['John McLaughlin', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { resource:John_McLaughlin property:country_of_citizenship ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q145
SYSTEM
United Kingdom
Q145
(Q6248057,P27,c(Q15617994))
action filter_type
action find
entity Q6248057
relation P27
type Q15617994
John McLaughlin belongs to [ANSWER]
['Q6248057', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?p WHERE { resource:Q6248057 property:P27 ?p . ?p rdf:type ontology:Q15617994 }
United Kingdom
John McLaughlin belongs to United Kingdom
United Kingdom
action filter_type
action find
entity John McLaughlin
relation country of citizenship
type designation for an administrative territorial entity
['John McLaughlin', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { resource:John_McLaughlin property:country_of_citizenship ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q6248057
P21
Q290
USER
What is the sex of that person ?
(Q145,P21,c(Q290))
action filter_type
action find
entity Q6248057
relation P21
type Q290
['Q145', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?r WHERE { resource:Q6248057 property:P21 ?r . ?r rdf:type ontology:Q290 }
John McLaughlin
action filter_type
action find
entity John McLaughlin
relation gender
type sex
['United Kingdom', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?r WHERE { resource:John_McLaughlin property:gender ?r . ?r rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q145,P21,c(Q290))
action filter_type
action find
entity Q6248057
relation P21
type Q290
The sex of that person is a [ANSWER]
['Q145', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?r WHERE { resource:Q6248057 property:P21 ?r . ?r rdf:type ontology:Q290 }
male
The sex of that person is a male
male
action filter_type
action find
entity John McLaughlin
relation gender
type sex
['United Kingdom', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?r WHERE { resource:John_McLaughlin property:gender ?r . ?r rdf:type ontology:sex }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q842
P530
Q15617994 Q15617994
USER
Which administrative territories have diplomatic relationships with less number of administrative territories than Oman ?
(c(Q15617994),P530,c(Q15617994))
action less
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q842
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?n ) AS ?b ) WHERE { ?h property:P530 ?n . ?h rdf:type ontology:Q15617994 . ?n rdf:type ontology:Q15617994 } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?t ) WHERE { resource:Q842 property:P530 ?r . ?r rdf:type ontology:Q15617994 } } . FILTER ( ?b < ?t ) }
Oman
action less
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Oman
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?n ) AS ?b ) WHERE { ?h property:diplomatic_relation ?n . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?t ) WHERE { resource:Oman property:diplomatic_relation ?r . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?b < ?t ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q929 Q29999 Q232
SYSTEM
Central African Republic, Kingdom of the Netherlands, Kazakhstan
Q702 Q804 Q265 Q712 Q837 Q242 Q811 Q929 Q29999 Q854 Q730 Q232 Q1027 Q1032 Q697 Q695 Q754 Q912 Q683 Q836 Q817 Q1019 Q945 Q678 Q33788
(c(Q15617994),P530,c(Q15617994))
action less
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q842
relation P530
type Q15617994
[ANSWERS] have diplomatic relationships with less number of administrative territories than Oman
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?n ) AS ?b ) WHERE { ?h property:P530 ?n . ?h rdf:type ontology:Q15617994 . ?n rdf:type ontology:Q15617994 } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?t ) WHERE { resource:Q842 property:P530 ?r . ?r rdf:type ontology:Q15617994 } } . FILTER ( ?b < ?t ) }
Federated States of Micronesia Panama Uzbekistan Fiji Nepal Belize Nicaragua Central African Republic Kingdom of the Netherlands Sri Lanka Suriname Kazakhstan Mauritius Niger Nauru Palau Trinidad and Tobago Mali Samoa Myanmar Kuwait Madagascar Togo Tonga New Caledonia
Central African Republic, Kingdom of the Netherlands and Kazakhstan have diplomatic relationships with less number of administrative territories than Oman
Central African Republic Kingdom of the Netherlands Kazakhstan
action less
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Oman
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?n ) AS ?b ) WHERE { ?h property:diplomatic_relation ?n . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?t ) WHERE { resource:Oman property:diplomatic_relation ?r . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?b < ?t ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q115
P530
Q15617994 Q15617994
USER
And how about Ethiopia?
(c(Q15617994),P530,c(Q15617994))
action less
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find_reverse
entity Q115
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?c ) AS ?a ) WHERE { ?c property:P530 ?s . ?c rdf:type ontology:Q15617994 . ?s rdf:type ontology:Q15617994 } GROUP BY ?s } . FILTER ( ?a < ?e ) . { SELECT DISTINCT ( COUNT ( ?r ) AS ?e ) WHERE { ?r rdf:type ontology:Q15617994 . ?r property:P530 resource:Q115 } } }
Ethiopia
action less
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find_reverse
entity Ethiopia
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?c ) AS ?a ) WHERE { ?c property:diplomatic_relation ?s . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?s } . FILTER ( ?a < ?e ) . { SELECT DISTINCT ( COUNT ( ?r ) AS ?e ) WHERE { ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . ?r property:diplomatic_relation resource:Ethiopia } } }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q230 Q55 Q184
SYSTEM
Georgia, Netherlands, Belarus
Q702 Q804 Q800 Q419 Q55 Q783 Q784 Q265 Q712 Q710 Q717 Q837 Q398 Q657 Q792 Q790 Q958 Q986 Q242 Q244 Q811 Q33 Q924 Q929 Q983 Q733 Q29999 Q854 Q734 Q819 Q424 Q730 Q1013 Q236 Q230 Q232 Q233 Q238 Q20 Q1045 Q1041 Q28 Q921 Q1027 Q1020 Q189 Q842 Q184 Q1029 Q1028 Q736 Q786 Q225 Q221 Q96 Q229 Q902 Q1036 Q1037 Q1032 Q1030 Q191 Q965 Q967 Q962 Q963 Q697 Q695 Q117 Q754 Q750 Q217 Q214 Q218 Q219 Q912 Q917 Q1007 Q1006 Q1005 Q833 Q977 Q1009 Q1008 Q971 Q970 Q683 Q34020 Q686 Q836 Q574 Q874 Q77 Q858 Q878 Q774 Q948 Q817 Q1019 Q945 Q678 Q33788 Q869
(c(Q15617994),P530,c(Q15617994))
action less
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find_reverse
entity Q115
relation P530
type Q15617994
[ANSWERS]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?c ) AS ?a ) WHERE { ?c property:P530 ?s . ?c rdf:type ontology:Q15617994 . ?s rdf:type ontology:Q15617994 } GROUP BY ?s } . FILTER ( ?a < ?e ) . { SELECT DISTINCT ( COUNT ( ?r ) AS ?e ) WHERE { ?r rdf:type ontology:Q15617994 . ?r property:P530 resource:Q115 } } }
Federated States of Micronesia Panama Costa Rica Peru Netherlands Honduras Dominica Uzbekistan Fiji Kiribati Venezuela Nepal Bahrain Chad El Salvador Haiti South Sudan Eritrea Belize Barbados Nicaragua Finland Tanzania Central African Republic Equatorial Guinea Paraguay Kingdom of the Netherlands Sri Lanka Guyana Laos Cambodia Suriname Lesotho Montenegro Georgia Kazakhstan Malta San Marino Norway Somalia Senegal Hungary Brunei Mauritius Malawi Iceland Oman Belarus Mozambique Morocco Ecuador Dominican Republic Bosnia and Herzegovina Republic of Macedonia Mexico Cyprus Bangladesh Uganda Rwanda Niger Namibia Estonia Burkina Faso Burundi Benin Botswana Nauru Palau Ghana Trinidad and Tobago Bolivia Republic of Moldova Slovakia Romania Bulgaria Mali Bhutan Guinea-Bissau Guinea Gambia Malaysia Djibouti Cameroon Côte d'Ivoire Republic of the Congo Comoros Samoa Niue Vanuatu Myanmar East Timor Turkmenistan Uruguay Syria United Arab Emirates Guatemala Tunisia Kuwait Madagascar Togo Tonga New Caledonia Thailand
Georgia Netherlands Belarus
action less
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find_reverse
entity Ethiopia
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?c ) AS ?a ) WHERE { ?c property:diplomatic_relation ?s . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?s } . FILTER ( ?a < ?e ) . { SELECT DISTINCT ( COUNT ( ?r ) AS ?e ) WHERE { ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . ?r property:diplomatic_relation resource:Ethiopia } } }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q68103 Q842
P190 P1376
Q515
USER
Which cities are center of administration for Oman or are twin town of Interlaken ?
OR((c(Q515),P1376,Q842), (c(Q515),P190,Q68103))
action filter_type
action union
action find_reverse
entity Q842
relation P1376
action find_reverse
entity Q68103
relation P190
type Q515
{'OR': [[{'concept': 'Q515'}, 'P1376', 'Q842'], [{'concept': 'Q515'}, 'P190', 'Q68103']]}
SELECT DISTINCT ?j WHERE { { { ?j property:P1376 resource:Q842 } UNION { ?j property:P190 resource:Q68103 } } . ?j rdf:type ontology:Q515 }
Interlaken Oman
action filter_type
action union
action find_reverse
entity Oman
relation capital of
action find_reverse
entity Interlaken
relation sister city
type city
{'OR': [[{'concept': 'city'}, 'capital of', 'Oman'], [{'concept': 'city'}, 'sister city', 'Interlaken']]}
SELECT DISTINCT ?j WHERE { { { ?j property:capital_of resource:Oman } UNION { ?j property:sister_city resource:Interlaken } } . ?j rdf:type ontology:city }
[]
city
Q180470 Q3826 Q773312
SYSTEM
Huangshan City, Muscat, Třeboň
Q180470 Q3826 Q773312
OR((c(Q515),P1376,Q842), (c(Q515),P190,Q68103))
action filter_type
action union
action find_reverse
entity Q842
relation P1376
action find_reverse
entity Q68103
relation P190
type Q515
[ANSWERS] are center of administration for Oman or are twin town of Interlaken
{'OR': [[{'concept': 'Q515'}, 'P1376', 'Q842'], [{'concept': 'Q515'}, 'P190', 'Q68103']]}
SELECT DISTINCT ?j WHERE { { { ?j property:P1376 resource:Q842 } UNION { ?j property:P190 resource:Q68103 } } . ?j rdf:type ontology:Q515 }
Huangshan City Muscat Třeboň
Huangshan City, Muscat and Třeboň are center of administration for Oman or are twin town of Interlaken
Huangshan City Muscat Třeboň
action filter_type
action union
action find_reverse
entity Oman
relation capital of
action find_reverse
entity Interlaken
relation sister city
type city
{'OR': [[{'concept': 'city'}, 'capital of', 'Oman'], [{'concept': 'city'}, 'sister city', 'Interlaken']]}
SELECT DISTINCT ?j WHERE { { { ?j property:capital_of resource:Oman } UNION { ?j property:sister_city resource:Interlaken } } . ?j rdf:type ontology:city }
[]
Clarification
Comparative|Count over More/Less|Single entity type|Indirect
P206
Q1267889 Q515
USER
How many cities are located nearby lesser number of waterways than that city ?
(c(Q515),P206,c(Q1267889))
[{'concept': 'Q515'}, 'P206', {'concept': 'Q1267889'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { ?z property:P206 ?y . ?z rdf:type ontology:Q7930989 . ?y rdf:type ontology:Q1267889 }
[{'concept': 'city'}, 'located next to body of water', {'concept': 'waterway'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { ?z property:located_next_to_body_of_water ?y . ?z rdf:type ontology:city . ?y rdf:type ontology:waterway }
[]
waterway city
Comparative|Count over More/Less|Single entity type|Clarification
Q180470
SYSTEM
Did you mean Huangshan City ?
(c(Q515),P206,c(Q1267889))
[ANSWER]
[{'concept': 'Q515'}, 'P206', {'concept': 'Q1267889'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { ?z property:P206 ?y . ?z rdf:type ontology:Q7930989 . ?y rdf:type ontology:Q1267889 }
Did you mean Huangshan City ?
Huangshan City
[{'concept': 'city'}, 'located next to body of water', {'concept': 'waterway'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { ?z property:located_next_to_body_of_water ?y . ?z rdf:type ontology:city . ?y rdf:type ontology:waterway }
[]
Comparative Reasoning (Count) (All)
USER
No, I meant Muscat. Could you tell me the answer for that?
(c(Q515),P206,c(Q1267889))
Q3826
[{'concept': 'Q515'}, 'P206', {'concept': 'Q1267889'}]
[{'concept': 'city'}, 'located next to body of water', {'concept': 'waterway'}]
[]
SYSTEM
97
Q1410 Q3075 Q1794 Q1863 Q1865 Q1519 Q496499 Q3974 Q846877 Q19689 Q1486 Q2966 Q34217 Q496479 Q602903 Q3004 Q1461 Q488869 Q217432 Q827041 Q3572 Q623549 Q2865 Q4024 Q1711 Q2978 Q3806 Q2973 Q34261 Q3014 Q1773 Q1844 Q14821 Q819587 Q3958 Q3955 Q23430 Q633272 Q2773 Q612815 Q320943 Q1858 Q633935 Q320416 Q7473516 Q1761 Q890122 Q4007 Q2706 Q7070 Q653545 Q8684 Q270704 Q41474 Q2749 Q4174 Q4346 Q3838 Q2833 Q1209 Q3931 Q3751 Q3750 Q3200 Q3126 Q3042 Q157835 Q3046 Q847550 Q3936 Q2936 Q646780 Q3214 Q2100 Q1533 Q1530 Q1731 Q1953 Q5838 Q7027 Q3857 Q3994 Q19660 Q11194 Q3915 Q2119 Q3069 Q1720 Q1721 Q329996 Q3904 Q695920 Q2910 Q3861 Q1899 Q2999 Q2844
(c(Q515),P206,c(Q1267889))
[ANSWER]
[{'concept': 'Q515'}, 'P206', {'concept': 'Q1267889'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { ?z property:P206 ?y . ?z rdf:type ontology:Q7930989 . ?y rdf:type ontology:Q1267889 }
Gibraltar Fürth Frankfurt Andorra la Vella Kuala Lumpur Abu Dhabi Kazuno Landshut Semboku Tirana Buenos Aires Heidelberg Oxford Yokote Yurihonjō Ingolstadt Manila Benalmádena Port Harcourt Beroun Tunis Puerto de la Cruz Kassel Frankfurt (Oder) Potsdam Regensburg Tübingen Darmstadt Port-au-Prince Wolfsburg Riga Vaduz Coburg Noshiro Neubrandenburg Weimar Ulaanbaatar Yuzawa Braunschweig Garachico Matsudo Hanoi Oga Tartessos Tokyo Dublin Bolhrad Rosenheim Bremerhaven Eisenach Kita-Akita Seoul Třebíč Kingstown Augsburg Emden Waren (Müritz) Kinshasa Freiburg im Breisgau Free Hanseatic City of Bremen Brandenburg an der Havel Praia Gera Salzgitter Erlangen Offenbach am Main Zaporizhzhya Pforzheim Nikaho Bamberg Oldenburg Katagami Cottbus Duisburg Caracas Baghdad Dresden Yerevan Kabul Straubing Wilhelmshaven Kempten Bucharest Sarajevo Antananarivo Mannheim Bottrop Mainz Wiesbaden Ōdate Mbabane Daisen Ludwigshafen Doha Kyiv Würzburg Brasília
97
[{'concept': 'city'}, 'located next to body of water', {'concept': 'waterway'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { ?z property:located_next_to_body_of_water ?y . ?z rdf:type ontology:city . ?y rdf:type ontology:waterway }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q7358
P180
Q12737077 Q3305213 Q15709879
USER
Which occupations are expressed in greater number of paintings or artwork series than clown ?
(c(Q3305213)|c(Q15709879),P180,c(Q12737077))
action greater
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q3305213
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q15709879
action count
action filter_multi_types
action find_reverse
entity Q7358
relation P180
type Q3305213
type Q15709879
[[{'concept': 'Q3305213'}, {'concept': 'Q15709879'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?d ) ?m WHERE { VALUES ( ?e ) { ( ontology:Q3305213 ) ( ontology:Q15709879 ) } . ?k rdf:type ?e } GROUP BY ?m } . FILTER ( ?d > ?s ) . { SELECT DISTINCT ( COUNT ( ?b ) AS ?s ) WHERE { { ?b rdf:type ?i . VALUES ( ?i ) { ( ontology:Q3305213 ) ( ontology:Q15709879 ) } } . ?b property:P180 resource:Q7358 } } }
clown
action greater
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type painting
action find_reverse_tuple_counts
relation depicts
type occupation
type artwork series
action count
action filter_multi_types
action find_reverse
entity clown
relation depicts
type painting
type artwork series
[[{'concept': 'painting'}, {'concept': 'artwork series'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?d ) ?m WHERE { VALUES ( ?e ) { ( ontology:painting ) ( ontology:artwork_series ) } . ?k rdf:type ?e } GROUP BY ?m } . FILTER ( ?d > ?s ) . { SELECT DISTINCT ( COUNT ( ?b ) AS ?s ) WHERE { { ?b rdf:type ?i . VALUES ( ?i ) { ( ontology:painting ) ( ontology:artwork_series ) } } . ?b property:depicts resource:clown } } }
[]
occupation painting artwork series
Q131512 Q1401609 Q4991371
SYSTEM
farmer, vaquero, soldier
Q131512 Q1401609 Q1124183 Q81710 Q1259917 Q4504549 Q842782 Q47064 Q486748 Q483501 Q215536 Q19723482 Q1139055 Q1028181 Q733786 Q805221 Q12097 Q12059906 Q622630 Q14009165 Q10833314 Q1318187 Q4991371 Q250867 Q10873124 Q2730732 Q103163 Q207651 Q5716684 Q833860 Q2191547 Q838811 Q331432 Q639669 Q49757 Q15296811 Q1281618 Q811122 Q42603 Q1630100 Q39631
(c(Q3305213)|c(Q15709879),P180,c(Q12737077))
action greater
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q3305213
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q15709879
action count
action filter_multi_types
action find_reverse
entity Q7358
relation P180
type Q3305213
type Q15709879
The [ANSWERS] are expressed in greater number of paintings or artwork series than clown
[[{'concept': 'Q3305213'}, {'concept': 'Q15709879'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?d ) ?m WHERE { VALUES ( ?e ) { ( ontology:Q3305213 ) ( ontology:Q15709879 ) } . ?k rdf:type ?e } GROUP BY ?m } . FILTER ( ?d > ?s ) . { SELECT DISTINCT ( COUNT ( ?b ) AS ?s ) WHERE { { ?b rdf:type ?i . VALUES ( ?i ) { ( ontology:Q3305213 ) ( ontology:Q15709879 ) } } . ?b property:P180 resource:Q7358 } } }
farmer vaquero lumberjack shepherd violinist religious servant detective military personnel pianist artist merchant mandolinist tax collector painter monk ballet dancer king herder odalisque trapper tennis player scrivener soldier Catholic priest chess player equestrian abbot executioner dancer maid picador peasant fisherman musician poet draughtsperson sculptor construction worker priest art model physician
The farmer, vaquero and soldier are expressed in greater number of paintings or artwork series than clown
farmer vaquero soldier
action greater
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type painting
action find_reverse_tuple_counts
relation depicts
type occupation
type artwork series
action count
action filter_multi_types
action find_reverse
entity clown
relation depicts
type painting
type artwork series
[[{'concept': 'painting'}, {'concept': 'artwork series'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?d ) ?m WHERE { VALUES ( ?e ) { ( ontology:painting ) ( ontology:artwork_series ) } . ?k rdf:type ?e } GROUP BY ?m } . FILTER ( ?d > ?s ) . { SELECT DISTINCT ( COUNT ( ?b ) AS ?s ) WHERE { { ?b rdf:type ?i . VALUES ( ?i ) { ( ontology:painting ) ( ontology:artwork_series ) } } . ?b property:depicts resource:clown } } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q822146
P180
Q12737077 Q3305213 Q15709879
USER
And also tell me about lyricist?
(c(Q3305213)|c(Q15709879),P180,c(Q12737077))
action greater
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q3305213
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q15709879
action count
action filter_multi_types
action find_reverse
entity Q822146
relation P180
type Q3305213
type Q15709879
[[{'concept': 'Q3305213'}, {'concept': 'Q15709879'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?a ) ?e WHERE { { ?e rdf:type ontology:Q12737077 . ?x rdf:type ontology:Q3305213 . ?x property:P180 ?e } UNION { ?x property:P180 ?e . ?e rdf:type ontology:Q12737077 . ?x rdf:type ontology:Q15709879 } } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?i ) WHERE { ?g property:P180 resource:Q822146 . { { ?g rdf:type ontology:Q3305213 } UNION { ?g rdf:type ontology:Q15709879 } } } } . FILTER ( ?a > ?i ) }
lyricist
action greater
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type painting
action find_reverse_tuple_counts
relation depicts
type occupation
type artwork series
action count
action filter_multi_types
action find_reverse
entity lyricist
relation depicts
type painting
type artwork series
[[{'concept': 'painting'}, {'concept': 'artwork series'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?a ) ?e WHERE { { ?e rdf:type ontology:occupation . ?x rdf:type ontology:painting . ?x property:depicts ?e } UNION { ?x property:depicts ?e . ?e rdf:type ontology:occupation . ?x rdf:type ontology:artwork_series } } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?i ) WHERE { ?g property:depicts resource:lyricist . { { ?g rdf:type ontology:painting } UNION { ?g rdf:type ontology:artwork_series } } } } . FILTER ( ?a > ?i ) }
[]
occupation painting artwork series
Q131512 Q1401609 Q4991371
SYSTEM
farmer, vaquero, soldier
Q131512 Q1401609 Q1124183 Q81710 Q1259917 Q4504549 Q842782 Q47064 Q486748 Q483501 Q215536 Q19723482 Q1139055 Q1028181 Q733786 Q805221 Q12097 Q12059906 Q622630 Q14009165 Q10833314 Q1318187 Q4991371 Q250867 Q10873124 Q2730732 Q103163 Q207651 Q5716684 Q833860 Q2191547 Q838811 Q331432 Q639669 Q49757 Q15296811 Q1281618 Q811122 Q42603 Q1630100 Q39631
(c(Q3305213)|c(Q15709879),P180,c(Q12737077))
action greater
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q3305213
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q15709879
action count
action filter_multi_types
action find_reverse
entity Q822146
relation P180
type Q3305213
type Q15709879
[ANSWERS]
[[{'concept': 'Q3305213'}, {'concept': 'Q15709879'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?a ) ?e WHERE { { ?e rdf:type ontology:Q12737077 . ?x rdf:type ontology:Q3305213 . ?x property:P180 ?e } UNION { ?x property:P180 ?e . ?e rdf:type ontology:Q12737077 . ?x rdf:type ontology:Q15709879 } } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?i ) WHERE { ?g property:P180 resource:Q822146 . { { ?g rdf:type ontology:Q3305213 } UNION { ?g rdf:type ontology:Q15709879 } } } } . FILTER ( ?a > ?i ) }
farmer vaquero lumberjack shepherd violinist religious servant detective military personnel pianist artist merchant mandolinist tax collector painter monk ballet dancer king herder odalisque trapper tennis player scrivener soldier Catholic priest chess player equestrian abbot executioner dancer maid picador peasant fisherman musician poet draughtsperson sculptor construction worker priest art model physician
farmer vaquero soldier
action greater
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type painting
action find_reverse_tuple_counts
relation depicts
type occupation
type artwork series
action count
action filter_multi_types
action find_reverse
entity lyricist
relation depicts
type painting
type artwork series
[[{'concept': 'painting'}, {'concept': 'artwork series'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?a ) ?e WHERE { { ?e rdf:type ontology:occupation . ?x rdf:type ontology:painting . ?x property:depicts ?e } UNION { ?x property:depicts ?e . ?e rdf:type ontology:occupation . ?x rdf:type ontology:artwork_series } } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?i ) WHERE { ?g property:depicts resource:lyricist . { { ?g rdf:type ontology:painting } UNION { ?g rdf:type ontology:artwork_series } } } } . FILTER ( ?a > ?i ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3826
P159
Q43229
USER
Which organizations have headquarters located at Muscat ?
(c(Q43229),P159,Q3826)
action filter_type
action find_reverse
entity Q3826
relation P159
type Q43229
[{'concept': 'Q43229'}, 'P159', 'Q3826']
SELECT DISTINCT ?f WHERE { ?f property:P159 resource:Q3826 . ?f rdf:type ontology:Q43229 }
Muscat
action filter_type
action find_reverse
entity Muscat
relation headquarters location
type organization
[{'concept': 'organization'}, 'headquarters location', 'Muscat']
SELECT DISTINCT ?f WHERE { ?f property:headquarters_location resource:Muscat . ?f rdf:type ontology:organization }
[]
organization
Q6982964 Q1535581 Q7089539
SYSTEM
Ooredoo Oman, Omantel, Oman Oil Marketing Company
Q806607 Q7603232 Q7763621 Q3503110 Q7089539 Q6982964 Q2023013 Q1535587 Q1535581
(c(Q43229),P159,Q3826)
action filter_type
action find_reverse
entity Q3826
relation P159
type Q43229
[ANSWERS] have headquarters located at Muscat
[{'concept': 'Q43229'}, 'P159', 'Q3826']
SELECT DISTINCT ?f WHERE { ?f property:P159 resource:Q3826 . ?f rdf:type ontology:Q43229 }
BankMuscat State General Reserve Fund The Shaksy Group Oman LNG Oman Oil Marketing Company Ooredoo Oman Oman Oil Company Petroleum Development Oman Omantel
Ooredoo Oman, Omantel and Oman Oil Marketing Company have headquarters located at Muscat
Ooredoo Oman Omantel Oman Oil Marketing Company
action filter_type
action find_reverse
entity Muscat
relation headquarters location
type organization
[{'concept': 'organization'}, 'headquarters location', 'Muscat']
SELECT DISTINCT ?f WHERE { ?f property:headquarters_location resource:Muscat . ?f rdf:type ontology:organization }
[]