Simple Question (Direct)
Simple Question
Q1293793
P20
Q56061
USER
Where did the expiration of Edward Streeter occur ?
(Q1293793,P20,c(Q56061))
action filter_type
action find
entity Q1293793
relation P20
type Q56061
['Q1293793', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?x WHERE { resource:Q1293793 property:P20 ?x . ?x rdf:type ontology:Q56061 }
Edward Streeter
action filter_type
action find
entity Edward Streeter
relation place of death
type administrative territorial entity
['Edward Streeter', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { resource:Edward_Streeter property:place_of_death ?x . ?x rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q60
SYSTEM
New York City
Q60
(Q1293793,P20,c(Q56061))
action filter_type
action find
entity Q1293793
relation P20
type Q56061
The expiration of Edward Streeter occurred in [ANSWER]
['Q1293793', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?x WHERE { resource:Q1293793 property:P20 ?x . ?x rdf:type ontology:Q56061 }
New York City
The expiration of Edward Streeter occurred in New York City
New York City
action filter_type
action find
entity Edward Streeter
relation place of death
type administrative territorial entity
['Edward Streeter', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { resource:Edward_Streeter property:place_of_death ?x . ?x rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q60
P931
Q62447
USER
Which city do that administrative territory serve ?
(c(Q62447),P931,Q60)
action filter_type
action find_reverse
entity Q60
relation P931
type Q62447
[{'concept': 'Q62447'}, 'P931', 'Q60']
SELECT DISTINCT ?e WHERE { ?e property:P931 resource:Q60 . ?e rdf:type ontology:Q62447 }
New York City
action filter_type
action find_reverse
entity New York City
relation place served by airport
type aerodrome
[{'concept': 'aerodrome'}, 'place served by airport', 'New York City']
SELECT DISTINCT ?e WHERE { ?e property:place_served_by_airport resource:New_York_City . ?e rdf:type ontology:aerodrome }
[]
aerodrome
Q7984216 Q5462911 Q1575175
SYSTEM
West 30th Street Heliport, Flushing Airport, Downtown Manhattan Heliport
Q7984216 Q5462911 Q1575175 Q3375426 Q10860385
(c(Q62447),P931,Q60)
action filter_type
action find_reverse
entity Q60
relation P931
type Q62447
That administrative territory serve s [ANSWERS]
[{'concept': 'Q62447'}, 'P931', 'Q60']
SELECT DISTINCT ?e WHERE { ?e property:P931 resource:Q60 . ?e rdf:type ontology:Q62447 }
West 30th Street Heliport Flushing Airport Downtown Manhattan Heliport East 34th Street Heliport New York Skyports Inc. Seaplane Base
That administrative territory serve s West 30th Street Heliport, Flushing Airport and Downtown Manhattan Heliport
West 30th Street Heliport Flushing Airport Downtown Manhattan Heliport
action filter_type
action find_reverse
entity New York City
relation place served by airport
type aerodrome
[{'concept': 'aerodrome'}, 'place served by airport', 'New York City']
SELECT DISTINCT ?e WHERE { ?e property:place_served_by_airport resource:New_York_City . ?e rdf:type ontology:aerodrome }
[]
Clarification
Simple Question|Single Entity|Indirect
Q1575175
P17
Q15617994
USER
Which administrative territory is that aerodrome located in ?
(Q1575175,P17,c(Q15617994))
action filter_type
action find
entity Q1575175
relation P17
type Q15617994
['Q1575175', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?r WHERE { resource:Q1575175 property:P17 ?r . ?r rdf:type ontology:Q15617994 }
Downtown Manhattan Heliport
action filter_type
action find
entity Downtown Manhattan Heliport
relation country
type designation for an administrative territorial entity
['Downtown Manhattan Heliport', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { resource:Downtown_Manhattan_Heliport property:country ?r . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Clarification for simple ques.
Q5462911
SYSTEM
Did you mean Flushing Airport ?
Q7984216 Q5462911 Q1575175
(Q7984216,P17,c(Q15617994)) (Q5462911,P17,c(Q15617994)) (Q1575175,P17,c(Q15617994))
[ANSWER]
['Q7984216', 'P17', {'concept': 'Q15617994'}] ['Q5462911', 'P17', {'concept': 'Q15617994'}] ['Q1575175', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?r WHERE { resource:Q1575175 property:P17 ?r . ?r rdf:type ontology:Q15617994 }
West 30th Street Heliport Flushing Airport Downtown Manhattan Heliport
Did you mean Flushing Airport ?
Flushing Airport
['West 30th Street Heliport', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Flushing Airport', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Downtown Manhattan Heliport', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { resource:Downtown_Manhattan_Heliport property:country ?r . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
USER
No, I meant Downtown Manhattan Heliport. Could you tell me the answer for that?
(Q1575175,P17,c(Q15617994))
Q1575175
['Q1575175', 'P17', {'concept': 'Q15617994'}]
['Downtown Manhattan Heliport', 'country', {'concept': 'designation for an administrative territorial entity'}]
[]
Q30
SYSTEM
United States of America
Q30
(Q1575175,P17,c(Q15617994))
action filter_type
action find
entity Q1575175
relation P17
type Q15617994
That aerodrome is located in [ANSWER]
['Q1575175', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?r WHERE { resource:Q1575175 property:P17 ?r . ?r rdf:type ontology:Q15617994 }
United States of America
That aerodrome is located in United States of America
United States of America
action filter_type
action find
entity Downtown Manhattan Heliport
relation country
type designation for an administrative territorial entity
['Downtown Manhattan Heliport', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { resource:Downtown_Manhattan_Heliport property:country ?r . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q30 Q347
P530
Q15617994
USER
Does Liechtenstein have a diplomatic relationship with that one ?
(Q30,P530,Q347)
action is_in
entity Q347
action find
entity Q30
relation P530
['Q30', 'P530', 'Q347']
ASK WHERE { resource:Q30 property:P530 resource:Q347 }
United States of America Liechtenstein
action is_in
entity Liechtenstein
action find
entity United States of America
relation diplomatic relation
['United States of America', 'diplomatic relation', 'Liechtenstein']
ASK WHERE { resource:United_States_of_America property:diplomatic_relation resource:Liechtenstein }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q30,P530,Q347)
action is_in
entity Q347
action find
entity Q30
relation P530
[ANSWER]
['Q30', 'P530', 'Q347']
ASK WHERE { resource:Q30 property:P530 resource:Q347 }
Yes
action is_in
entity Liechtenstein
action find
entity United States of America
relation diplomatic relation
['United States of America', 'diplomatic relation', 'Liechtenstein']
ASK WHERE { resource:United_States_of_America property:diplomatic_relation resource:Liechtenstein }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q691
P530
Q15617994 Q1048835
USER
How many political territories have ambassadorial relations with greater number of administrative territories than Papua New Guinea ?
(c(Q1048835),P530,c(Q15617994))
action count
action greater
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q691
relation P530
type Q15617994
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?k ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?d ) AS ?l ) WHERE { ?x property:P530 ?d . ?x rdf:type ontology:Q1048835 . ?d rdf:type ontology:Q15617994 } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?c ) WHERE { resource:Q691 property:P530 ?n . ?n rdf:type ontology:Q15617994 } } . FILTER ( ?l > ?c ) }
Papua New Guinea
action count
action greater
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Papua New Guinea
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?k ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?d ) AS ?l ) WHERE { ?x property:diplomatic_relation ?d . ?x rdf:type ontology:political_territorial_entity . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?c ) WHERE { resource:Papua_New_Guinea property:diplomatic_relation ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?l > ?c ) }
[]
designation for an administrative territorial entity political territorial entity
SYSTEM
7
Q40 Q183 Q408 Q35 Q16 Q664 Q766
(c(Q1048835),P530,c(Q15617994))
action count
action greater
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q691
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?k ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?d ) AS ?l ) WHERE { ?x property:P530 ?d . ?x rdf:type ontology:Q1048835 . ?d rdf:type ontology:Q15617994 } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?c ) WHERE { resource:Q691 property:P530 ?n . ?n rdf:type ontology:Q15617994 } } . FILTER ( ?l > ?c ) }
Austria Germany Australia Denmark Canada New Zealand Jamaica
7
action count
action greater
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Papua New Guinea
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?k ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?d ) AS ?l ) WHERE { ?x property:diplomatic_relation ?d . ?x rdf:type ontology:political_territorial_entity . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?c ) WHERE { resource:Papua_New_Guinea property:diplomatic_relation ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?l > ?c ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q35
P530
Q15617994 Q1048835
USER
And also tell me about Denmark?
(c(Q1048835),P530,c(Q15617994))
action count
action greater
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q35
relation P530
type Q1048835
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?y ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?c ) AS ?f ) WHERE { ?h property:P530 ?c . ?c rdf:type ontology:Q15617994 . ?h rdf:type ontology:Q1048835 } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?b ) WHERE { resource:Q35 property:P530 ?x . ?x rdf:type ontology:Q1048835 } } . FILTER ( ?f > ?b ) }
Denmark
action count
action greater
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Denmark
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?y ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?c ) AS ?f ) WHERE { ?h property:diplomatic_relation ?c . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . ?h rdf:type ontology:political_territorial_entity } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?b ) WHERE { resource:Denmark property:diplomatic_relation ?x . ?x rdf:type ontology:political_territorial_entity } } . FILTER ( ?f > ?b ) }
[]
designation for an administrative territorial entity political territorial entity
SYSTEM
4
Q40 Q183 Q408 Q16
(c(Q1048835),P530,c(Q15617994))
action count
action greater
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q35
relation P530
type Q1048835
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?y ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?c ) AS ?f ) WHERE { ?h property:P530 ?c . ?c rdf:type ontology:Q15617994 . ?h rdf:type ontology:Q1048835 } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?b ) WHERE { resource:Q35 property:P530 ?x . ?x rdf:type ontology:Q1048835 } } . FILTER ( ?f > ?b ) }
Austria Germany Australia Canada
4
action count
action greater
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Denmark
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?y ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?c ) AS ?f ) WHERE { ?h property:diplomatic_relation ?c . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . ?h rdf:type ontology:political_territorial_entity } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?b ) WHERE { resource:Denmark property:diplomatic_relation ?x . ?x rdf:type ontology:political_territorial_entity } } . FILTER ( ?f > ?b ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q117
P495
Q15617994 Q201658 Q838948
USER
Which administrative territories are the origins of less number of film genres or works of art than Ghana ?
(c(Q201658)|c(Q838948),P495,c(Q15617994))
action less
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q201658
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q838948
action count
action filter_multi_types
action find_reverse
entity Q117
relation P495
type Q201658
type Q838948
[[{'concept': 'Q201658'}, {'concept': 'Q838948'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?z ) AS ?h ) WHERE { { ?z property:P495 ?y . ?y rdf:type ontology:Q15617994 . ?z rdf:type ontology:Q201658 } UNION { ?y rdf:type ontology:Q15617994 . ?z rdf:type ontology:Q838948 . ?z property:P495 ?y } } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?n ) WHERE { { { ?i rdf:type ontology:Q201658 } UNION { ?i rdf:type ontology:Q838948 } } . ?i property:P495 resource:Q117 } } . FILTER ( ?h < ?n ) }
Ghana
action less
action union
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type film genre
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type work of art
action count
action filter_multi_types
action find_reverse
entity Ghana
relation country of origin
type film genre
type work of art
[[{'concept': 'film genre'}, {'concept': 'work of art'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?z ) AS ?h ) WHERE { { ?z property:country_of_origin ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?z rdf:type ontology:film_genre } UNION { ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?z rdf:type ontology:work_of_art . ?z property:country_of_origin ?y } } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?n ) WHERE { { { ?i rdf:type ontology:film_genre } UNION { ?i rdf:type ontology:work_of_art } } . ?i property:country_of_origin resource:Ghana } } . FILTER ( ?h < ?n ) }
[]
designation for an administrative territorial entity film genre work of art
Q953 Q184 Q347
SYSTEM
Zambia, Belarus, Liechtenstein
Q805 Q804 Q1462 Q12536 Q783 Q265 Q36678 Q712 Q711 Q1460 Q398 Q657 Q792 Q790 Q4628 Q954 Q958 Q986 Q826 Q242 Q244 Q811 Q153136 Q924 Q983 Q851 Q733 Q29999 Q819 Q730 Q1013 Q159626 Q236 Q233 Q238 Q1045 Q1044 Q921 Q1049 Q1025 Q1027 Q1020 Q184 Q223 Q221 Q229 Q347 Q1037 Q1032 Q1030 Q967 Q962 Q963 Q115 Q754 Q217 Q917 Q916 Q1007 Q1006 Q1005 Q1008 Q971 Q970 Q239502 Q686 Q574 Q874 Q774 Q817 Q810 Q1019 Q813 Q1014 Q1016 Q1011 Q945 Q672 Q176 Q863 Q953
(c(Q201658)|c(Q838948),P495,c(Q15617994))
action less
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q201658
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q838948
action count
action filter_multi_types
action find_reverse
entity Q117
relation P495
type Q201658
type Q838948
[ANSWERS] are the origins of less number of film genres or works of art than Ghana
[[{'concept': 'Q201658'}, {'concept': 'Q838948'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?z ) AS ?h ) WHERE { { ?z property:P495 ?y . ?y rdf:type ontology:Q15617994 . ?z rdf:type ontology:Q201658 } UNION { ?y rdf:type ontology:Q15617994 . ?z rdf:type ontology:Q838948 . ?z property:P495 ?y } } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?n ) WHERE { { { ?i rdf:type ontology:Q201658 } UNION { ?i rdf:type ontology:Q838948 } } . ?i property:P495 resource:Q117 } } . FILTER ( ?h < ?n ) }
Yemen Panama Sardinia Abbasid caliphate Honduras Uzbekistan West Bank Fiji Mongolia Sicily Bahrain Chad El Salvador Haiti Faroe Islands Zimbabwe South Sudan Eritrea Maldives Belize Barbados Nicaragua Habsburg Empire Tanzania Equatorial Guinea Saudi Arabia Paraguay Kingdom of the Netherlands Laos Suriname Lesotho Württemberg Montenegro Malta San Marino Somalia Sierra Leone Brunei Sudan Mauritania Mauritius Malawi Belarus Greenland Republic of Macedonia Cyprus Liechtenstein Rwanda Niger Namibia Burundi Benin Botswana Ethiopia Trinidad and Tobago Republic of Moldova Bhutan Angola Guinea-Bissau Guinea Gambia Côte d'Ivoire Republic of the Congo Comoros Kingdom of Galicia–Volhynia Vanuatu East Timor Turkmenistan Guatemala Kuwait Jordan Madagascar Kyrgyzstan Liberia Libya Cape Verde Togo Tuvalu Quebec Tajikistan Zambia
Zambia, Belarus and Liechtenstein are the origins of less number of film genres or works of art than Ghana
Zambia Belarus Liechtenstein
action less
action union
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type film genre
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type work of art
action count
action filter_multi_types
action find_reverse
entity Ghana
relation country of origin
type film genre
type work of art
[[{'concept': 'film genre'}, {'concept': 'work of art'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?z ) AS ?h ) WHERE { { ?z property:country_of_origin ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?z rdf:type ontology:film_genre } UNION { ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?z rdf:type ontology:work_of_art . ?z property:country_of_origin ?y } } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?n ) WHERE { { { ?i rdf:type ontology:film_genre } UNION { ?i rdf:type ontology:work_of_art } } . ?i property:country_of_origin resource:Ghana } } . FILTER ( ?h < ?n ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q1033
P495
Q15617994 Q201658 Q838948
USER
And also tell me about Nigeria?
(c(Q201658)|c(Q838948),P495,c(Q15617994))
action less
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q201658
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q838948
action count
action filter_multi_types
action find_reverse
entity Q1033
relation P495
type Q201658
type Q838948
[[{'concept': 'Q201658'}, {'concept': 'Q838948'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?h ) WHERE { ?z property:P495 resource:Q1033 . { ?z rdf:type ?c . VALUES ( ?c ) { ( ontology:Q201658 ) ( ontology:Q838948 ) } } } } . FILTER ( ?r < ?h ) . { SELECT DISTINCT ?o ( COUNT ( ?q ) AS ?r ) WHERE { VALUES ( ?n ) { ( ontology:Q201658 ) ( ontology:Q838948 ) } . ?q rdf:type ?n } GROUP BY ?o } }
Nigeria
action less
action union
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type film genre
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type work of art
action count
action filter_multi_types
action find_reverse
entity Nigeria
relation country of origin
type film genre
type work of art
[[{'concept': 'film genre'}, {'concept': 'work of art'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?h ) WHERE { ?z property:country_of_origin resource:Nigeria . { ?z rdf:type ?c . VALUES ( ?c ) { ( ontology:film_genre ) ( ontology:work_of_art ) } } } } . FILTER ( ?r < ?h ) . { SELECT DISTINCT ?o ( COUNT ( ?q ) AS ?r ) WHERE { VALUES ( ?n ) { ( ontology:film_genre ) ( ontology:work_of_art ) } . ?q rdf:type ?n } GROUP BY ?o } }
[]
designation for an administrative territorial entity film genre work of art
Q230 Q953 Q184
SYSTEM
Georgia, Zambia, Belarus
Q805 Q804 Q800 Q1462 Q419 Q12536 Q262 Q783 Q265 Q37 Q36678 Q712 Q711 Q717 Q837 Q1460 Q399 Q398 Q403 Q657 Q792 Q790 Q4628 Q796 Q954 Q889 Q958 Q881 Q986 Q826 Q822 Q241 Q242 Q244 Q811 Q153136 Q32 Q924 Q739 Q423 Q983 Q851 Q733 Q29999 Q854 Q819 Q424 Q730 Q1013 Q159626 Q236 Q230 Q232 Q233 Q238 Q1045 Q1044 Q1041 Q921 Q1049 Q1025 Q1027 Q1020 Q189 Q184 Q1029 Q1028 Q736 Q786 Q227 Q225 Q223 Q222 Q221 Q229 Q347 Q1036 Q1037 Q974 Q1032 Q1030 Q191 Q965 Q967 Q962 Q963 Q298 Q115 Q114 Q117 Q754 Q750 Q212 Q211 Q217 Q214 Q215 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q833 Q1009 Q1008 Q971 Q970 Q239502 Q686 Q836 Q574 Q874 Q77 Q858 Q878 Q774 Q948 Q817 Q810 Q1019 Q813 Q1014 Q1016 Q1011 Q945 Q672 Q176 Q863 Q953
(c(Q201658)|c(Q838948),P495,c(Q15617994))
action less
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q201658
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q838948
action count
action filter_multi_types
action find_reverse
entity Q1033
relation P495
type Q201658
type Q838948
[ANSWERS]
[[{'concept': 'Q201658'}, {'concept': 'Q838948'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?h ) WHERE { ?z property:P495 resource:Q1033 . { ?z rdf:type ?c . VALUES ( ?c ) { ( ontology:Q201658 ) ( ontology:Q838948 ) } } } } . FILTER ( ?r < ?h ) . { SELECT DISTINCT ?o ( COUNT ( ?q ) AS ?r ) WHERE { VALUES ( ?n ) { ( ontology:Q201658 ) ( ontology:Q838948 ) } . ?q rdf:type ?n } GROUP BY ?o } }
Yemen Panama Costa Rica Sardinia Peru Abbasid caliphate Algeria Honduras Uzbekistan Lithuania West Bank Fiji Mongolia Venezuela Nepal Sicily Armenia Bahrain Serbia Chad El Salvador Haiti Faroe Islands Iraq Zimbabwe Afghanistan South Sudan Vietnam Eritrea Maldives Lebanon Cuba Belize Barbados Nicaragua Habsburg Empire Luxembourg Tanzania Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Kingdom of the Netherlands Sri Lanka Laos Cambodia Suriname Lesotho Württemberg Montenegro Georgia Kazakhstan Malta San Marino Somalia Sierra Leone Senegal Brunei Sudan Mauritania Mauritius Malawi Iceland Belarus Mozambique Morocco Ecuador Dominican Republic Azerbaijan Bosnia and Herzegovina Greenland Albania Republic of Macedonia Cyprus Liechtenstein Uganda Rwanda Democratic Republic of the Congo Niger Namibia Estonia Burkina Faso Burundi Benin Botswana Chile Ethiopia Kenya Ghana Trinidad and Tobago Bolivia Ukraine Latvia Republic of Moldova Slovakia Slovenia Bulgaria Mali Bhutan Angola Guinea-Bissau Guinea Gambia Malaysia Cameroon Côte d'Ivoire Republic of the Congo Comoros Kingdom of Galicia–Volhynia Vanuatu Myanmar East Timor Turkmenistan Uruguay Syria United Arab Emirates Guatemala Tunisia Kuwait Jordan Madagascar Kyrgyzstan Liberia Libya Cape Verde Togo Tuvalu Quebec Tajikistan Zambia
Georgia Zambia Belarus
action less
action union
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type film genre
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type work of art
action count
action filter_multi_types
action find_reverse
entity Nigeria
relation country of origin
type film genre
type work of art
[[{'concept': 'film genre'}, {'concept': 'work of art'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?h ) WHERE { ?z property:country_of_origin resource:Nigeria . { ?z rdf:type ?c . VALUES ( ?c ) { ( ontology:film_genre ) ( ontology:work_of_art ) } } } } . FILTER ( ?r < ?h ) . { SELECT DISTINCT ?o ( COUNT ( ?q ) AS ?r ) WHERE { VALUES ( ?n ) { ( ontology:film_genre ) ( ontology:work_of_art ) } . ?q rdf:type ?n } GROUP BY ?o } }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q230 Q953 Q184
P47
Q15617994
USER
Which administrative territories share border with Georgia, Zambia and Belarus ?
(Q230,P47,c(Q15617994)) (Q953,P47,c(Q15617994)) (Q184,P47,c(Q15617994))
action union
action filter_type
action find
entity Q230
relation P47
type Q15617994
action filter_type
action find
entity Q953
relation P47
type Q15617994
action filter_type
action find
entity Q184
relation P47
type Q15617994
['Q230', 'P47', {'concept': 'Q15617994'}] ['Q953', 'P47', {'concept': 'Q15617994'}] ['Q184', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { { resource:Q230 property:P47 ?y . ?y rdf:type ontology:Q15617994 } UNION { resource:Q953 property:P47 ?y . ?y rdf:type ontology:Q15617994 } }
Georgia Zambia Belarus
action union
action filter_type
action find
entity Georgia
relation shares border with
type designation for an administrative territorial entity
action filter_type
action find
entity Zambia
relation shares border with
type designation for an administrative territorial entity
action filter_type
action find
entity Belarus
relation shares border with
type designation for an administrative territorial entity
['Georgia', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Zambia', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Belarus', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { { resource:Georgia property:shares_border_with ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { resource:Zambia property:shares_border_with ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity } }
[]
designation for an administrative territorial entity
Q159 Q159 Q36
SYSTEM
Russia for 1st, 2nd, Poland for 3rd
Q227 Q159 Q43 Q399 Q1020 Q1030 Q974 Q1029 Q963 Q954 Q924 Q916 Q212 Q159 Q211 Q37 Q36
(Q230,P47,c(Q15617994)) (Q953,P47,c(Q15617994)) (Q184,P47,c(Q15617994))
action union
action filter_type
action find
entity Q230
relation P47
type Q15617994
action filter_type
action find
entity Q953
relation P47
type Q15617994
action filter_type
action find
entity Q184
relation P47
type Q15617994
[ANSWERS]
['Q230', 'P47', {'concept': 'Q15617994'}] ['Q953', 'P47', {'concept': 'Q15617994'}] ['Q184', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { { resource:Q230 property:P47 ?y . ?y rdf:type ontology:Q15617994 } UNION { resource:Q953 property:P47 ?y . ?y rdf:type ontology:Q15617994 } }
Azerbaijan Russia Turkey Armenia Malawi Namibia Democratic Republic of the Congo Mozambique Botswana Zimbabwe Tanzania Angola Ukraine Russia Latvia Lithuania Poland
Russia, Russia and Poland share border with Georgia, Zambia and Belarus
Russia Russia Poland
action union
action filter_type
action find
entity Georgia
relation shares border with
type designation for an administrative territorial entity
action filter_type
action find
entity Zambia
relation shares border with
type designation for an administrative territorial entity
action filter_type
action find
entity Belarus
relation shares border with
type designation for an administrative territorial entity
['Georgia', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Zambia', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Belarus', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { { resource:Georgia property:shares_border_with ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { resource:Zambia property:shares_border_with ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q159
P1408
Q4830453
USER
Which business enterprise has procured license for broadcasting to that administrative territory ?
(c(Q4830453),P1408,Q159)
action filter_type
action find_reverse
entity Q159
relation P1408
type Q4830453
[{'concept': 'Q4830453'}, 'P1408', 'Q159']
SELECT DISTINCT ?q WHERE { ?q property:P1408 resource:Q159 . ?q rdf:type ontology:Q4830453 }
Russia
action filter_type
action find_reverse
entity Russia
relation licensed to broadcast to
type business enterprise
[{'concept': 'business enterprise'}, 'licensed to broadcast to', 'Russia']
SELECT DISTINCT ?q WHERE { ?q property:licensed_to_broadcast_to resource:Russia . ?q rdf:type ontology:business_enterprise }
[]
business enterprise
Clarification for simple ques.
Q36
SYSTEM
Did you mean Poland ?
Q159 Q159 Q36
(c(Q4830453),P1408,Q159) (c(Q4830453),P1408,Q159) (c(Q4830453),P1408,Q36)
[ANSWER]
[{'concept': 'Q4830453'}, 'P1408', 'Q159'] [{'concept': 'Q4830453'}, 'P1408', 'Q159'] [{'concept': 'Q4830453'}, 'P1408', 'Q36']
SELECT DISTINCT ?q WHERE { ?q property:P1408 resource:Q159 . ?q rdf:type ontology:Q4830453 }
Russia Russia Poland
Did you mean Poland ?
Poland
[{'concept': 'business enterprise'}, 'licensed to broadcast to', 'Russia'] [{'concept': 'business enterprise'}, 'licensed to broadcast to', 'Russia'] [{'concept': 'business enterprise'}, 'licensed to broadcast to', 'Poland']
SELECT DISTINCT ?q WHERE { ?q property:licensed_to_broadcast_to resource:Russia . ?q rdf:type ontology:business_enterprise }
[]
Simple Question (Coreferenced)
USER
No, I meant Russia. Could you tell me the answer for that?
(c(Q4830453),P1408,Q159)
Q159
[{'concept': 'Q4830453'}, 'P1408', 'Q159']
[{'concept': 'business enterprise'}, 'licensed to broadcast to', 'Russia']
[]
Q3651046
SYSTEM
Silver Rain Radio
Q3651046
(c(Q4830453),P1408,Q159)
action filter_type
action find_reverse
entity Q159
relation P1408
type Q4830453
[ANSWER] has procured license for broadcasting to that administrative territory
[{'concept': 'Q4830453'}, 'P1408', 'Q159']
SELECT DISTINCT ?q WHERE { ?q property:P1408 resource:Q159 . ?q rdf:type ontology:Q4830453 }
Silver Rain Radio
Silver Rain Radio has procured license for broadcasting to that administrative territory
Silver Rain Radio
action filter_type
action find_reverse
entity Russia
relation licensed to broadcast to
type business enterprise
[{'concept': 'business enterprise'}, 'licensed to broadcast to', 'Russia']
SELECT DISTINCT ?q WHERE { ?q property:licensed_to_broadcast_to resource:Russia . ?q rdf:type ontology:business_enterprise }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P355
Q4830453 Q43229
USER
Which organizations are around 5 business enterprises the subordinate of ?
(c(Q43229),P355,c(Q4830453))
action approx
action find_tuple_counts
relation P355
type Q43229
type Q4830453
value 5
[{'concept': 'Q43229'}, 'P355', {'concept': 'Q4830453'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?c ) AS ?f ) WHERE { ?j property:P355 ?c . ?j rdf:type ontology:Q43229 . ?c rdf:type ontology:Q4830453 } GROUP BY ?j } . FILTER ( ?f = 5 ) }
action approx
action find_tuple_counts
relation subsidiary
type organization
type business enterprise
value 5
[{'concept': 'organization'}, 'subsidiary', {'concept': 'business enterprise'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?c ) AS ?f ) WHERE { ?j property:subsidiary ?c . ?j rdf:type ontology:organization . ?c rdf:type ontology:business_enterprise } GROUP BY ?j } . FILTER ( ?f = 5 ) }
[]
business enterprise organization
Q5612191
SYSTEM
Grupo Bandeirantes de Comunicação
Q5612191
(c(Q43229),P355,c(Q4830453))
action approx
action find_tuple_counts
relation P355
type Q43229
type Q4830453
value 5
[ANSWER] is around 5 business enterprises the subordinate of
[{'concept': 'Q43229'}, 'P355', {'concept': 'Q4830453'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?c ) AS ?f ) WHERE { ?j property:P355 ?c . ?j rdf:type ontology:Q43229 . ?c rdf:type ontology:Q4830453 } GROUP BY ?j } . FILTER ( ?f = 5 ) }
Grupo Bandeirantes de Comunicação
Grupo Bandeirantes de Comunicação is around 5 business enterprises the subordinate of
Grupo Bandeirantes de Comunicação
action approx
action find_tuple_counts
relation subsidiary
type organization
type business enterprise
value 5
[{'concept': 'organization'}, 'subsidiary', {'concept': 'business enterprise'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?c ) AS ?f ) WHERE { ?j property:subsidiary ?c . ?j rdf:type ontology:organization . ?c rdf:type ontology:business_enterprise } GROUP BY ?j } . FILTER ( ?f = 5 ) }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q5612191 Q155
P17
Q15617994
USER
Is that organization a part of Brazil ?
(Q5612191,P17,Q155)
action is_in
entity Q155
action find
entity Q5612191
relation P17
['Q5612191', 'P17', 'Q155']
ASK WHERE { resource:Q5612191 property:P17 resource:Q155 }
Grupo Bandeirantes de Comunicação Brazil
action is_in
entity Brazil
action find
entity Grupo Bandeirantes de Comunicação
relation country
['Grupo Bandeirantes de Comunicação', 'country', 'Brazil']
ASK WHERE { resource:Grupo_Bandeirantes_de_Comunicação property:country resource:Brazil }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q5612191,P17,Q155)
action is_in
entity Q155
action find
entity Q5612191
relation P17
[ANSWER]
['Q5612191', 'P17', 'Q155']
ASK WHERE { resource:Q5612191 property:P17 resource:Q155 }
Yes
action is_in
entity Brazil
action find
entity Grupo Bandeirantes de Comunicação
relation country
['Grupo Bandeirantes de Comunicação', 'country', 'Brazil']
ASK WHERE { resource:Grupo_Bandeirantes_de_Comunicação property:country resource:Brazil }
[]