Simple Question (Direct)
Simple Question
Q1747350
P102
Q7278
USER
Which political party is Käthe Zillbach a member of ?
(Q1747350,P102,c(Q7278))
action filter_type
action find
entity Q1747350
relation P102
type Q7278
['Q1747350', 'P102', {'concept': 'Q7278'}]
SELECT DISTINCT ?t WHERE { resource:Q1747350 property:P102 ?t . ?t rdf:type ontology:Q7278 }
Käthe Zillbach
action filter_type
action find
entity Käthe Zillbach
relation member of political party
type political party
['Käthe Zillbach', 'member of political party', {'concept': 'political party'}]
SELECT DISTINCT ?t WHERE { resource:Käthe_Zillbach property:member_of_political_party ?t . ?t rdf:type ontology:political_party }
[]
political party
Q49768
SYSTEM
Social Democratic Party of Germany
Q49768
(Q1747350,P102,c(Q7278))
action filter_type
action find
entity Q1747350
relation P102
type Q7278
Party [ANSWER] is Käthe Zillbach a member of
['Q1747350', 'P102', {'concept': 'Q7278'}]
SELECT DISTINCT ?t WHERE { resource:Q1747350 property:P102 ?t . ?t rdf:type ontology:Q7278 }
Social Democratic Party of Germany
Party Social Democratic Party of Germany is Käthe Zillbach a member of
Social Democratic Party of Germany
action filter_type
action find
entity Käthe Zillbach
relation member of political party
type political party
['Käthe Zillbach', 'member of political party', {'concept': 'political party'}]
SELECT DISTINCT ?t WHERE { resource:Käthe_Zillbach property:member_of_political_party ?t . ?t rdf:type ontology:political_party }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1747350
P27
Q1048835
USER
Which political territory is the country of citizenship of that person ?
(Q49768,P27,c(Q1048835))
action filter_type
action find
entity Q1747350
relation P27
type Q1048835
['Q49768', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?g WHERE { resource:Q1747350 property:P27 ?g . ?g rdf:type ontology:Q1048835 }
Käthe Zillbach
action filter_type
action find
entity Käthe Zillbach
relation country of citizenship
type political territorial entity
['Social Democratic Party of Germany', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?g WHERE { resource:Käthe_Zillbach property:country_of_citizenship ?g . ?g rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q183
SYSTEM
Germany
Q183
(Q49768,P27,c(Q1048835))
action filter_type
action find
entity Q1747350
relation P27
type Q1048835
[ANSWER] is the country of citizenship of that person
['Q49768', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?g WHERE { resource:Q1747350 property:P27 ?g . ?g rdf:type ontology:Q1048835 }
Germany
Germany is the country of citizenship of that person
Germany
action filter_type
action find
entity Käthe Zillbach
relation country of citizenship
type political territorial entity
['Social Democratic Party of Germany', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?g WHERE { resource:Käthe_Zillbach property:country_of_citizenship ?g . ?g rdf:type ontology:political_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q183 Q2512
P6
Q502895
USER
Is Kurt Georg Kiesinger the head of government of Germany ?
(Q183,P6,Q2512)
action is_in
entity Q2512
action find
entity Q183
relation P6
['Q183', 'P6', 'Q2512']
ASK WHERE { resource:Q183 property:P6 resource:Q2512 }
Germany Kurt Georg Kiesinger
action is_in
entity Kurt Georg Kiesinger
action find
entity Germany
relation head of government
['Germany', 'head of government', 'Kurt Georg Kiesinger']
ASK WHERE { resource:Germany property:head_of_government resource:Kurt_Georg_Kiesinger }
[]
common name
SYSTEM
YES
(Q183,P6,Q2512)
action is_in
entity Q2512
action find
entity Q183
relation P6
[ANSWER]
['Q183', 'P6', 'Q2512']
ASK WHERE { resource:Q183 property:P6 resource:Q2512 }
Yes
action is_in
entity Kurt Georg Kiesinger
action find
entity Germany
relation head of government
['Germany', 'head of government', 'Kurt Georg Kiesinger']
ASK WHERE { resource:Germany property:head_of_government resource:Kurt_Georg_Kiesinger }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q1048835
USER
How many administrative territories holds diplomatic relationship with atmost 5 political territories ?
(c(Q1048835),P530,c(Q15617994))
action count
action atmost
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q1048835
value 5
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?o ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?z ) AS ?s ) WHERE { ?z property:P530 ?e . ?z rdf:type ontology:Q1048835 . ?e rdf:type ontology:Q15617994 } GROUP BY ?e } . FILTER ( ?s <= 5 ) }
action count
action atmost
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
value 5
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?o ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?z ) AS ?s ) WHERE { ?z property:diplomatic_relation ?e . ?z rdf:type ontology:political_territorial_entity . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?e } . FILTER ( ?s <= 5 ) }
[]
designation for an administrative territorial entity political territorial entity
SYSTEM
165
Q702 Q804 Q801 Q800 Q805 Q419 Q668 Q414 Q142 Q55 Q145 Q262 Q148 Q783 Q784 Q265 Q37 Q712 Q711 Q710 Q717 Q837 Q252 Q399 Q398 Q403 Q657 Q258 Q45 Q159 Q43 Q41 Q155 Q792 Q790 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q986 Q822 Q241 Q242 Q244 Q811 Q33 Q32 Q31 Q30 Q924 Q36 Q34 Q928 Q929 Q39 Q739 Q423 Q983 Q851 Q733 Q29999 Q854 Q734 Q819 Q424 Q730 Q1013 Q236 Q230 Q232 Q233 Q238 Q20 Q1045 Q1041 Q27 Q28 Q921 Q1049 Q1027 Q1020 Q189 Q843 Q842 Q184 Q1029 Q1028 Q736 Q786 Q228 Q227 Q225 Q224 Q222 Q221 Q96 Q229 Q347 Q17 Q902 Q1036 Q1037 Q974 Q1032 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 Q697 Q298 Q695 Q115 Q114 Q117 Q754 Q750 Q212 Q213 Q211 Q217 Q214 Q215 Q218 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q833 Q977 Q1009 Q1008 Q971 Q970 Q683 Q34020 Q686 Q836 Q574 Q874 Q79 Q77 Q858 Q878 Q774 Q948 Q817 Q810 Q1019 Q1016 Q1011 Q945 Q678 Q29 Q33788 Q869 Q953
(c(Q1048835),P530,c(Q15617994))
action count
action atmost
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q1048835
value 5
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?o ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?z ) AS ?s ) WHERE { ?z property:P530 ?e . ?z rdf:type ontology:Q1048835 . ?e rdf:type ontology:Q15617994 } GROUP BY ?e } . FILTER ( ?s <= 5 ) }
Federated States of Micronesia Panama Israel Costa Rica Yemen Peru India Argentina France Netherlands United Kingdom Algeria People's Republic of China Honduras Dominica Uzbekistan Lithuania Fiji Mongolia Kiribati Venezuela Nepal Indonesia Armenia Bahrain Serbia Chad South Africa Portugal Russia Turkey Greece Brazil El Salvador Haiti Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam Eritrea Lebanon Cuba Belize Barbados Nicaragua Finland Luxembourg Belgium United States of America Tanzania Poland Sweden Philippines Central African Republic Switzerland Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Kingdom of the Netherlands Sri Lanka Guyana Laos Cambodia Suriname Lesotho Montenegro Georgia Kazakhstan Malta San Marino Norway Somalia Senegal Ireland Hungary Brunei Sudan Mauritius Malawi Iceland Pakistan Oman Belarus Mozambique Morocco Ecuador Dominican Republic Andorra Azerbaijan Bosnia and Herzegovina Croatia Albania Republic of Macedonia Mexico Cyprus Liechtenstein Japan Bangladesh Uganda Rwanda Democratic Republic of the Congo Niger Nigeria Namibia Estonia Burkina Faso Burundi Benin Botswana Nauru Chile Palau Ethiopia Kenya Ghana Trinidad and Tobago Bolivia Ukraine Czech Republic Latvia Republic of Moldova Slovakia Slovenia Romania Bulgaria Mali Bhutan Angola Guinea-Bissau Guinea Gambia Malaysia Djibouti Cameroon Côte d'Ivoire Republic of the Congo Comoros Samoa Niue Vanuatu Myanmar East Timor Turkmenistan Egypt Uruguay Syria United Arab Emirates Guatemala Tunisia Kuwait Jordan Madagascar Libya Cape Verde Togo Tonga Spain New Caledonia Thailand Zambia
165
action count
action atmost
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
value 5
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?o ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?z ) AS ?s ) WHERE { ?z property:diplomatic_relation ?e . ?z rdf:type ontology:political_territorial_entity . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?e } . FILTER ( ?s <= 5 ) }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P127
Q1048835 Q811430 Q4830453
USER
Which political territories owned min number of constructions or business enterprises ?
(c(Q811430)|c(Q4830453),P127,c(Q1048835))
action argmin
action union
action find_reverse_tuple_counts
relation P127
type Q1048835
type Q811430
action find_reverse_tuple_counts
relation P127
type Q1048835
type Q4830453
[[{'concept': 'Q811430'}, {'concept': 'Q4830453'}], 'P127', {'concept': 'Q1048835'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ( MIN ( ?o ) AS ?u ) { SELECT DISTINCT ( COUNT ( ?w ) AS ?o ) ?a WHERE { { ?w property:P127 ?a . ?a rdf:type ontology:Q1048835 . ?w rdf:type ontology:Q4830453 } UNION { ?w property:P127 ?a . ?a rdf:type ontology:Q1048835 . ?w rdf:type ontology:Q811430 } } GROUP BY ?a } } . FILTER ( ?g = ?u ) . { SELECT DISTINCT ( COUNT ( ?t ) AS ?g ) ?j WHERE { { ?j rdf:type ontology:Q1048835 . ?t rdf:type ontology:Q811430 . ?t property:P127 ?j } UNION { ?j rdf:type ontology:Q1048835 . ?t rdf:type ontology:Q4830453 . ?t property:P127 ?j } } GROUP BY ?j } }
action argmin
action union
action find_reverse_tuple_counts
relation owned by
type political territorial entity
type construction
action find_reverse_tuple_counts
relation owned by
type political territorial entity
type business enterprise
[[{'concept': 'construction'}, {'concept': 'business enterprise'}], 'owned by', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ( MIN ( ?o ) AS ?u ) { SELECT DISTINCT ( COUNT ( ?w ) AS ?o ) ?a WHERE { { ?w property:owned_by ?a . ?a rdf:type ontology:political_territorial_entity . ?w rdf:type ontology:business_enterprise } UNION { ?w property:owned_by ?a . ?a rdf:type ontology:political_territorial_entity . ?w rdf:type ontology:construction } } GROUP BY ?a } } . FILTER ( ?g = ?u ) . { SELECT DISTINCT ( COUNT ( ?t ) AS ?g ) ?j WHERE { { ?j rdf:type ontology:political_territorial_entity . ?t rdf:type ontology:construction . ?t property:owned_by ?j } UNION { ?j rdf:type ontology:political_territorial_entity . ?t rdf:type ontology:business_enterprise . ?t property:owned_by ?j } } GROUP BY ?j } }
[]
political territorial entity construction business enterprise
Q408 Q35 Q16
SYSTEM
Australia, Denmark, Canada
Q192536 Q170322 Q1648590 Q318314 Q3741 Q2321093 Q5691 Q188399 Q490638 Q6040 Q126514 Q211091 Q6053 Q192387 Q217838 Q74881 Q8543 Q6041 Q2379199 Q8178 Q6339 Q7379734 Q1823 Q8551 Q13786 Q5783 Q741765 Q193317 Q35 Q191091 Q2947 Q13862 Q276176 Q1135166 Q46070 Q211106 Q202174 Q54902 Q192697 Q188373 Q190930 Q192702 Q2175 Q849584 Q2271 Q909707 Q234 Q100166 Q17557 Q231 Q40 Q9331 Q6047 Q6045 Q9337 Q8182 Q23635 Q408 Q193307 Q207111 Q16 Q206926
(c(Q811430)|c(Q4830453),P127,c(Q1048835))
action argmin
action union
action find_reverse_tuple_counts
relation P127
type Q1048835
type Q811430
action find_reverse_tuple_counts
relation P127
type Q1048835
type Q4830453
[ANSWERS] owned min number of constructions or business enterprises
[[{'concept': 'Q811430'}, {'concept': 'Q4830453'}], 'P127', {'concept': 'Q1048835'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ( MIN ( ?o ) AS ?u ) { SELECT DISTINCT ( COUNT ( ?w ) AS ?o ) ?a WHERE { { ?w property:P127 ?a . ?a rdf:type ontology:Q1048835 . ?w rdf:type ontology:Q4830453 } UNION { ?w property:P127 ?a . ?a rdf:type ontology:Q1048835 . ?w rdf:type ontology:Q811430 } } GROUP BY ?a } } . FILTER ( ?g = ?u ) . { SELECT DISTINCT ( COUNT ( ?t ) AS ?g ) ?j WHERE { { ?j rdf:type ontology:Q1048835 . ?t rdf:type ontology:Q811430 . ?t property:P127 ?j } UNION { ?j rdf:type ontology:Q1048835 . ?t rdf:type ontology:Q4830453 . ?t property:P127 ?j } } GROUP BY ?j } }
Zlín Region Qingdao Manises Ipatinga Special Region of Yogyakarta Chorrillos South Karelia Central Bohemian Region Almendralejo Goslar Dumfries and Galloway Renfrewshire Gifhorn Londrina Stirling Dalian Germersheim Wolfenbüttel politics of Edinburgh Karlsruhe Erzgebirgskreis Aachen Aceh Südliche Weinstraße Cebu Andalusia San Fernando Pardubice Region Denmark Karlovy Vary Region Dithmarschen Negros Occidental Volta Redonda Greater London Authority Plzeň Region Moray Argyll and Bute Fuenlabrada South Moravian Region South Bohemia Region Vysočina Region Ústí nad Labem Region Riau Province Jaraguá do Sul South Sumatra Sestao Flemish Region Orkney Islands California Republic Walloon Region Austria Flemish Community Helmstedt Peine Flemish Region Rastatt Bermuda Australia Olomouc Region North Lanarkshire Canada North Ayrshire
Australia, Denmark and Canada owned min number of constructions or business enterprises
Australia Denmark Canada
action argmin
action union
action find_reverse_tuple_counts
relation owned by
type political territorial entity
type construction
action find_reverse_tuple_counts
relation owned by
type political territorial entity
type business enterprise
[[{'concept': 'construction'}, {'concept': 'business enterprise'}], 'owned by', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ( MIN ( ?o ) AS ?u ) { SELECT DISTINCT ( COUNT ( ?w ) AS ?o ) ?a WHERE { { ?w property:owned_by ?a . ?a rdf:type ontology:political_territorial_entity . ?w rdf:type ontology:business_enterprise } UNION { ?w property:owned_by ?a . ?a rdf:type ontology:political_territorial_entity . ?w rdf:type ontology:construction } } GROUP BY ?a } } . FILTER ( ?g = ?u ) . { SELECT DISTINCT ( COUNT ( ?t ) AS ?g ) ?j WHERE { { ?j rdf:type ontology:political_territorial_entity . ?t rdf:type ontology:construction . ?t property:owned_by ?j } UNION { ?j rdf:type ontology:political_territorial_entity . ?t rdf:type ontology:business_enterprise . ?t property:owned_by ?j } } GROUP BY ?j } }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q408 Q35 Q16
P1313
Q12737077
USER
Which occupations are fulfilled by Australia, Denmark and Canada ?
(Q408,P1313,c(Q12737077)) (Q35,P1313,c(Q12737077)) (Q16,P1313,c(Q12737077))
action union
action filter_type
action find
entity Q408
relation P1313
type Q12737077
action filter_type
action find
entity Q35
relation P1313
type Q12737077
action filter_type
action find
entity Q16
relation P1313
type Q12737077
['Q408', 'P1313', {'concept': 'Q12737077'}] ['Q35', 'P1313', {'concept': 'Q12737077'}] ['Q16', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?s WHERE { ?f property:P1313 ?s . VALUES ( ?f ) { ( resource:Q408 ) ( resource:Q35 ) } }
Australia Denmark Canada
action union
action filter_type
action find
entity Australia
relation office held by head of government
type occupation
action filter_type
action find
entity Denmark
relation office held by head of government
type occupation
action filter_type
action find
entity Canada
relation office held by head of government
type occupation
['Australia', 'office held by head of government', {'concept': 'occupation'}] ['Denmark', 'office held by head of government', {'concept': 'occupation'}] ['Canada', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?s WHERE { ?f property:office_held_by_head_of_government ?s . VALUES ( ?f ) { ( resource:Australia ) ( resource:Denmark ) } }
[]
occupation
Q319145 Q795477 Q839078
SYSTEM
Prime Minister of Australia, Prime Minister of Denmark, Prime Minister of Canada
Q319145 Q795477 Q839078
(Q408,P1313,c(Q12737077)) (Q35,P1313,c(Q12737077)) (Q16,P1313,c(Q12737077))
action union
action filter_type
action find
entity Q408
relation P1313
type Q12737077
action filter_type
action find
entity Q35
relation P1313
type Q12737077
action filter_type
action find
entity Q16
relation P1313
type Q12737077
[ANSWERS] are fulfilled by Australia, Denmark and Canada
['Q408', 'P1313', {'concept': 'Q12737077'}] ['Q35', 'P1313', {'concept': 'Q12737077'}] ['Q16', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?s WHERE { ?f property:P1313 ?s . VALUES ( ?f ) { ( resource:Q408 ) ( resource:Q35 ) } }
Prime Minister of Australia Prime Minister of Denmark Prime Minister of Canada
Prime Minister of Australia, Prime Minister of Denmark and Prime Minister of Canada are fulfilled by Australia, Denmark and Canada
Prime Minister of Australia Prime Minister of Denmark Prime Minister of Canada
action union
action filter_type
action find
entity Australia
relation office held by head of government
type occupation
action filter_type
action find
entity Denmark
relation office held by head of government
type occupation
action filter_type
action find
entity Canada
relation office held by head of government
type occupation
['Australia', 'office held by head of government', {'concept': 'occupation'}] ['Denmark', 'office held by head of government', {'concept': 'occupation'}] ['Canada', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?s WHERE { ?f property:office_held_by_head_of_government ?s . VALUES ( ?f ) { ( resource:Australia ) ( resource:Denmark ) } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q795477
P1037
Q327333
USER
Which government agency is the director of that occupation ?
(Q795477,P1037,c(Q327333))
action filter_type
action find
entity Q795477
relation P1037
type Q327333
['Q795477', 'P1037', {'concept': 'Q327333'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q327333 . resource:Q795477 property:P1037 ?q }
Prime Minister of Denmark
action filter_type
action find
entity Prime Minister of Denmark
relation manager/director
type government agency
['Prime Minister of Denmark', 'manager/director', {'concept': 'government agency'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:government_agency . resource:Prime_Minister_of_Denmark property:manager/director ?q }
[]
government agency
Clarification for simple ques.
Q839078
SYSTEM
Did you mean Prime Minister of Canada ?
Q319145 Q795477 Q839078
(Q319145,P1037,c(Q327333)) (Q795477,P1037,c(Q327333)) (Q839078,P1037,c(Q327333))
[ANSWER]
['Q319145', 'P1037', {'concept': 'Q327333'}] ['Q795477', 'P1037', {'concept': 'Q327333'}] ['Q839078', 'P1037', {'concept': 'Q327333'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q327333 . resource:Q795477 property:P1037 ?q }
Prime Minister of Australia Prime Minister of Denmark Prime Minister of Canada
Did you mean Prime Minister of Canada ?
Prime Minister of Canada
['Prime Minister of Australia', 'manager/director', {'concept': 'government agency'}] ['Prime Minister of Denmark', 'manager/director', {'concept': 'government agency'}] ['Prime Minister of Canada', 'manager/director', {'concept': 'government agency'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:government_agency . resource:Prime_Minister_of_Denmark property:manager/director ?q }
[]
Simple Question (Coreferenced)
USER
No, I meant Prime Minister of Denmark. Could you tell me the answer for that?
(Q795477,P1037,c(Q327333))
Q795477
['Q795477', 'P1037', {'concept': 'Q327333'}]
['Prime Minister of Denmark', 'manager/director', {'concept': 'government agency'}]
[]
Q1814356
SYSTEM
the Danish Prime Minister's Office
Q1814356
(Q795477,P1037,c(Q327333))
action filter_type
action find
entity Q795477
relation P1037
type Q327333
[ANSWER] is the director of that occupation
['Q795477', 'P1037', {'concept': 'Q327333'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q327333 . resource:Q795477 property:P1037 ?q }
the Danish Prime Minister's Office
The Danish Prime Minister's Office is the director of that occupation
the Danish Prime Minister's Office
action filter_type
action find
entity Prime Minister of Denmark
relation manager/director
type government agency
['Prime Minister of Denmark', 'manager/director', {'concept': 'government agency'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:government_agency . resource:Prime_Minister_of_Denmark property:manager/director ?q }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q1814356 Q35 Q984491
P17
Q1048835
USER
Is that government agency present in Denmark and Santa Margalida ?
(Q1814356,P17,Q35) (Q1814356,P17,Q984491)
action is_in
entity Q1814356
action intersection
action find_reverse
entity Q35
relation P17
action find_reverse
entity Q984491
relation P17
['Q1814356', 'P17', 'Q35'] ['Q1814356', 'P17', 'Q984491']
ASK WHERE { resource:Q1814356 property:P17 resource:Q35 . resource:Q1814356 property:P17 resource:Q984491 }
the Danish Prime Minister's Office Denmark Santa Margalida
action is_in
entity the Danish Prime Minister's Office
action intersection
action find_reverse
entity Denmark
relation country
action find_reverse
entity Santa Margalida
relation country
["the Danish Prime Minister's Office", 'country', 'Denmark'] ["the Danish Prime Minister's Office", 'country', 'Santa Margalida']
ASK WHERE { resource:the_Danish_Prime_Minister's_Office property:country resource:Denmark . resource:the_Danish_Prime_Minister's_Office property:country resource:Santa_Margalida }
[]
political territorial entity
SYSTEM
YES and NO respectively
(Q1814356,P17,Q35) (Q1814356,P17,Q984491)
action is_in
entity Q1814356
action intersection
action find_reverse
entity Q35
relation P17
action find_reverse
entity Q984491
relation P17
[ANSWER]
['Q1814356', 'P17', 'Q35'] ['Q1814356', 'P17', 'Q984491']
ASK WHERE { resource:Q1814356 property:P17 resource:Q35 . resource:Q1814356 property:P17 resource:Q984491 }
YES and NO respectively
action is_in
entity the Danish Prime Minister's Office
action intersection
action find_reverse
entity Denmark
relation country
action find_reverse
entity Santa Margalida
relation country
["the Danish Prime Minister's Office", 'country', 'Denmark'] ["the Danish Prime Minister's Office", 'country', 'Santa Margalida']
ASK WHERE { resource:the_Danish_Prime_Minister's_Office property:country resource:Denmark . resource:the_Danish_Prime_Minister's_Office property:country resource:Santa_Margalida }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q712865
P127
Q327333 Q699405
USER
How many dwellings belongs to less number of government agencies than Grand Hotel ?
(c(Q699405),P127,c(Q327333))
action count
action less
action find_tuple_counts
relation P127
type Q699405
type Q327333
action count
action filter_type
action find
entity Q712865
relation P127
type Q327333
[{'concept': 'Q699405'}, 'P127', {'concept': 'Q327333'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?e ) WHERE { FILTER ( ?h < ?a ) . { SELECT DISTINCT ( COUNT ( ?v ) AS ?a ) WHERE { resource:Q712865 property:P127 ?v . ?v rdf:type ontology:Q327333 } } . { SELECT DISTINCT ?z ( COUNT ( ?d ) AS ?h ) WHERE { ?z property:P127 ?d . ?z rdf:type ontology:Q699405 . ?d rdf:type ontology:Q327333 } GROUP BY ?z } }
Grand Hotel
action count
action less
action find_tuple_counts
relation owned by
type dwelling
type government agency
action count
action filter_type
action find
entity Grand Hotel
relation owned by
type government agency
[{'concept': 'dwelling'}, 'owned by', {'concept': 'government agency'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?e ) WHERE { FILTER ( ?h < ?a ) . { SELECT DISTINCT ( COUNT ( ?v ) AS ?a ) WHERE { resource:Grand_Hotel property:owned_by ?v . ?v rdf:type ontology:government_agency } } . { SELECT DISTINCT ?z ( COUNT ( ?d ) AS ?h ) WHERE { ?z property:owned_by ?d . ?z rdf:type ontology:dwelling . ?d rdf:type ontology:government_agency } GROUP BY ?z } }
[]
government agency dwelling
SYSTEM
308
Q7719548 Q14875596 Q16161029 Q4936105 Q5103365 Q5764637 Q7135335 Q5148462 Q5595010 Q14691217 Q7127011 Q2967950 Q2131379 Q7714569 Q5475503 Q7731964 Q6666624 Q2969483 Q4753642 Q6772998 Q6044873 Q8025144 Q12317310 Q6965236 Q3322510 Q2633715 Q7773691 Q16994989 Q5911331 Q5189545 Q11350493 Q13529113 Q5903491 Q5911457 Q6411469 Q25529551 Q1536160 Q7756128 Q6774603 Q23685988 Q220141 Q5579283 Q4975947 Q6911961 Q1630911 Q22930253 Q7733115 Q27048574 Q7733117 Q2373311 Q2269257 Q6435059 Q5911186 Q21559812 Q21479774 Q4680814 Q217708 Q15271154 Q4409125 Q22976715 Q7163496 Q26960663 Q13529180 Q15816032 Q7757079 Q7676700 Q3226464 Q5974717 Q6632716 Q6359104 Q5764722 Q7848562 Q5454896 Q7588279 Q23646439 Q7756547 Q7553767 Q1221513 Q7488588 Q7832418 Q7494689 Q5528868 Q5475511 Q6109248 Q3066336 Q4069476 Q5133119 Q5528860 Q5528863 Q7736735 Q3773063 Q2141411 Q1515412 Q13529309 Q7336899 Q11140595 Q1943482 Q1631000 Q27033712 Q4947928 Q7741540 Q768935 Q5142150 Q18199017 Q550379 Q18157332 Q4822225 Q7336902 Q7753810 Q26242212 Q7601898 Q11330335 Q11330332 Q5911493 Q5594664 Q5168833 Q7367053 Q16917918 Q3700280 Q5764648 Q7241199 Q3446105 Q6549580 Q5025873 Q3030360 Q1395561 Q13529202 Q17374602 Q5911761 Q27825013 Q7028398 Q2383600 Q20388886 Q5594666 Q2667158 Q1139845 Q4261856 Q19307691 Q6359126 Q26237391 Q5093580 Q7137875 Q18112026 Q13046758 Q18636944 Q16707754 Q2375304 Q20872953 Q19361341 Q6738851 Q4969660 Q18392962 Q10432289 Q4637759 Q5211759 Q5475499 Q2748565 Q7760943 Q16843761 Q5911906 Q979133 Q14682365 Q5880409 Q1279896 Q7756546 Q1757744 Q2992084 Q22956395 Q24054070 Q6666631 Q25478116 Q5952897 Q5764716 Q5594626 Q5254591 Q5033663 Q7281352 Q5911177 Q3286125 Q3145689 Q2967922 Q23274 Q5594804 Q16890873 Q17444603 Q6792506 Q18393956 Q377792 Q3322506 Q6772968 Q1631096 Q17066064 Q4875722 Q26734729 Q1064758 Q7768971 Q633737 Q17444624 Q7216435 Q27104038 Q20046383 Q1481002 Q17111075 Q10363091 Q7593472 Q3481157 Q4969271 Q5911856 Q1975806 Q580531 Q18286846 Q5911786 Q6842354 Q7756548 Q15214163 Q4816085 Q5911300 Q7712174 Q5275586 Q7092584 Q2303685 Q1375672 Q3145464 Q6694162 Q5594659 Q4749032 Q5475487 Q26878946 Q7121094 Q5594657 Q2912208 Q16241516 Q6507351 Q6954237 Q1515595 Q3506669 Q7245128 Q7057353 Q4635474 Q11314630 Q27456363 Q19513101 Q5035589 Q746639 Q5911588 Q7090741 Q18207860 Q7774328 Q5094546 Q4040675 Q3857987 Q7488584 Q5911505 Q7374293 Q1630870 Q2021533 Q6387094 Q3030485 Q11869185 Q5764570 Q4765980 Q4975949 Q756690 Q7281345 Q2442059 Q24073463 Q12316149 Q5594620 Q20987102 Q3145578 Q7312432 Q5764519 Q5911415 Q24241038 Q5610641 Q18918653 Q7714783 Q5253151 Q279260 Q2570624 Q27826630 Q7760942 Q3135697 Q18534517 Q979477 Q2099561 Q6172690 Q3135691 Q24284732 Q5928735 Q21504226 Q16844927 Q2524370 Q5528857 Q25204442 Q7761492 Q18391931 Q22073967 Q13529263 Q1412478 Q14272885 Q13529166 Q7448800 Q15037522 Q3507213 Q14875207 Q14707458 Q25212617
(c(Q699405),P127,c(Q327333))
action count
action less
action find_tuple_counts
relation P127
type Q699405
type Q327333
action count
action filter_type
action find
entity Q712865
relation P127
type Q327333
[ANSWER]
[{'concept': 'Q699405'}, 'P127', {'concept': 'Q327333'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?e ) WHERE { FILTER ( ?h < ?a ) . { SELECT DISTINCT ( COUNT ( ?v ) AS ?a ) WHERE { resource:Q712865 property:P127 ?v . ?v rdf:type ontology:Q327333 } } . { SELECT DISTINCT ?z ( COUNT ( ?d ) AS ?h ) WHERE { ?z property:P127 ?d . ?z rdf:type ontology:Q699405 . ?d rdf:type ontology:Q327333 } GROUP BY ?z } }
The Bowery House Hotel Beauséjour Nickelodeon Resorts by Marriott Boca Raton Resort Palace Hotel Hilton Liverpool City Centre Paramount Hotel Colonnade Hotel, London Grand Rapids Hotel Seelbach Hotel Versace Palace Château Montebello Beverly Hilton Hotel The Artisan Hotel Four Seasons Hotel Dublin The Empress Hotel Loews Madison Hotel Kilkea Castle Andaz West Hollywood Marriott West India Quay InterContinental Manila Wingate By Wyndham Hotel Phoenix Copenhagen Nara Hotel Monte-Carlo Bay Hotel & Resort Hotel Astoria The Water Club Conrad London St. James Hotel Carter, Manhattan Crowne Plaza Liverpool John Lennon Airport Hotel Lotte City Hotel Kinshicho Andaz Liverpool Street London Hotel Westin Lima Hotel & Convention Center Hotel Equatoria The Omni King Edward Hotel Hilton Garden Inn Dublin Custom House Grand Hotel, Vienna The Park, Chennai Martha Washington Inn Hilton Bristol Hotel Waldorf Astoria Berlin Golden Clouds Brown's Hotel Morgans Hotel Hilton Warsaw Hotel and Convention Centre Four Seasons Hotel Riyadh The Fairmont Orchid Waldorf Astoria Jeddah - Qasr Al Sharq The Fairmont Palm Hotel & Resort Swissôtel Nai Lert Park Hotel Hilton Moscow Leningradskaya Hotel Kowloon Shangri-La Hotel Aragon Hilton London Wembley Anantara Siam Bangkok Hotel Adare Manor Hôtel George-V Radha Regent Hotel, Chennai The Fullerton Hotel Singapore Hilton Dubai The Walk Penns Hall Hampton by Hilton Bournemouth Hilton London Hyde Park Reichshof Hamburg The Pierre Taj Boston Le Richemond ITC Grand Chola Hotel Hilton Eilat Queen of Sheba Kampala Hilton Hotel Hilton Singapore Tryp Bellver Fisherman's Cove St. Gregory Luxury Hotels & Suites DoubleTree by Hilton Hotel London - Kensington The Peninsula Chicago DoubleTree by Hilton Hotel Shanghai - Pudong Grand Hôtel Shangri-La Mactan Island Resort & Spa, Cebu The Trafalgar Hotel Sheraton Montevideo Gaylord Texan Resort Hotel & Convention Center Canary Riverside Plaza Hotel JW Marriott Grand Rapids New Yorker Hotel Hotel Arctic Clift Gaylord Palms Resort & Convention Center Gaylord Opryland Resort & Convention Center The Glasshouse Goldeneye Hilton Bandung Belmond Reid's Palace Hilton Cardiff Ritz-Carlton Kuala Lumpur Hyatt Regency Hong Kong, Sha Tin Hilton Molino Stucky Venice Mandarin Oriental, Bangkok The Morrison, a DoubleTree by Hilton Hotel Boston Harbor Hotel The Imperial Hotel Blackpool Langham Hotel, London Colcord Hotel North Stafford Hotel Conrad Dubai Rittenhouse Hotel Hilton Izmir Ritz-Carlton Jakarta The New York Palace Hotel Hilton Garden Inn Sunderland Starhotels Anderson Hilton Tokyo Bay Hilton Odawara Resort & Spa Hotel Fort Canning Grand Hyatt Washington Copperhill Mountain Lodge Rosa Grand Sheraton Vancouver Balmoral Hotel Hilton London Metropole President-Hotel Royalton Hotel Limketkai Hotel and Resort Camelback Inn Aulani Hotel Bellevue Palace Malmaison Hotel, Liverpool Regent Taipei Gran Hotel Montesol Ibiza, Curio Collection by Hilton Hilton Frankfurt City Centre Nickelodeon Suites Resort Orlando Hôtel Hermitage Monte-Carlo Swissôtel Makkah Grand Hyatt Taipei Hilton Orlando Lake Buena Vista The Empress Fontainebleau Resorts Hilton Garden Inn London Heathrow Airport Kampala Speke Hotel Conrad Tokyo Chester Grosvenor and Spa Park Lane Hotel DoubleTree by Hilton London-Chelsea Clarence Hotel Grand Hôtel Cannes Norfolk Hotel, Brighton Plaza Athénée Hilton Southampton Hotel New Netherland Makati Shangri-La, Manila British Colonial Hilton Nassau Staybridge Suites Abu Dhabi Yas Island Bolagshotellet 42 The Calls Dalvay-by-the-Sea Four Seasons Hotel Chicago Claridge's The Ritz-Carlton, Hong Kong Hilton Diagonal Mar Barcelona Hotel Roanoke Arizona Biltmore Hotel Hotel Arcata Holiday Inn & Suites Makati Hôtel de Paris Monte-Carlo The Peninsula Beverly Hills The Peninsula Hong Kong Hilton Paris Opera Laugesens Have Hilton Cambridge City Centre Loews Vanderbilt Hotel Hotet Hilton Budapest Hyatt Regency Indianapolis Hilton Sharm Waterfalls Resort Grand Hotel Delta Chelsea Le Méridien Indianapolis Hotel Radisson Montevideo Victoria Plaza Hotel Hotel Andaluz Manoir Richelieu Trianon Palace Versailles, A Waldorf Astoria Hotel Chateau Lake Louise Castille Paris Grand Metropole Hotel Edsa Shangri-La, Manila Hilton Frankfurt Airport Mauna Kea Beach Hotel The Westin Georgetown, Washington, D.C. Casapueblo Monte-Carlo Beach Marriott's Grande Vista Hotel del Coronado Ramada Plaza JFK Hotel Beach Hotel Conrad Istanbul Bosphorus Mandarin Oriental The Three Crowns Hotel Hotel Ukrayina Hilton Garden Inn Frankfurt Airport Hilton Tel Aviv Hampton by Hilton Krakow Hilton Bonn The Ritz London Hotel Strawberry Hill The Ritz-Carlton Millenia Singapore St James's Hotel and Club Shades of Green Britannia Adelphi Hotel Hotel Ponce Intercontinental Mardan Palace Sheraton Kansas City Hotel at Crown Center Waldorf Astoria Amsterdam Hotel Newfoundland Midland Hotel, Bradford The Peninsula Bangkok Divan Istanbul Atlanta Hotel Hotel Bristol The Academy Digby Pines Resort One Devonshire Gardens Oberoi Trident King David Hotel Crowne Plaza Belgrade Lowry Hotel Grand Hyatt New York Amway Grand Plaza Hotel Four Seasons Hotel, Washington, D.C. Hilton Sukhumvit Bangkok PUNTACANA Resort and Club Grand Hyatt Hong Kong David Citadel Hotel China World Hotel, Beijing Le Méridien Cyberport Hotel NH Gran Hotel Provincial Hôtel Lutetia Swissôtel Nankai Osaka Principe di Savoia North Western Hotel, Morecambe 350 West Mart Center Celestine Hotel Hilton Garden Inn Gurgaon Baani Square Hilton Manchester Deansgate Capital Hilton Savoy Hotel Hotel ICON Kimpton Tideline Ocean Resort & Spa Crowne Plaza Abu Dhabi Yas Island The Westin New York Grand Central Hotel Chewton Glen Hilton Prague Millennium Biltmore Hotel Shangri-La Hotel, Tokyo Hotel Fremantle Royal Horseguards Hotel Hotel Dajti Beverly Hills Hotel Kempinski Hotel N'Djamena Disney Vacation Club Hilton Helsinki Kalastajatorppa Hilton Glasgow Ankara Palas Brown's Hotel Atlantis, The Palm Radisson Blu Daugava Hotel Queen Elizabeth Hotel Hilton Sorrento Palace Hotel Marselis Grand Hotel Four Seasons Hotel Prague Hotel Macdonald Renaissance Malmö Hotel Hilton Chennai Hilton Podgorica Crna Gora DoubleTree by Hilton Cambridge City Centre Grosvenor House Hotel Hilton Athens The Athenaeum Hotel Delano Hotel Hotel Sacher Radisson Royal Hotel DoubleTree by Hilton Hotel Cairns The Ritz-Carlton, Georgetown Hilton Hawaiian Village Hilton London Syon Park Athenee Palace Hilton Bucharest Hilton Chicago Jeddah Hilton Hilton Kuala Lumpur Burlington Hotel Hudson Hotel Hilton Birmingham Metropole Boscolo Exedra Roma Carlton Cannes Gaylord National Resort & Convention Center Hilton Zurich Airport The Roosevelt Hotel Embassy Suites Washington, D.C. Hilton Bournemouth Mannings Heath Golf Club The Waldorf Hilton, London Spa Hotel Eden (Oulu) Threadneedles Hotel Selsdon Park Hotel The Thief (hotel) Hotel InterContinental Prague InterContinental Toronto Centre The Standard, High Line Carlton Hotel
308
action count
action less
action find_tuple_counts
relation owned by
type dwelling
type government agency
action count
action filter_type
action find
entity Grand Hotel
relation owned by
type government agency
[{'concept': 'dwelling'}, 'owned by', {'concept': 'government agency'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?e ) WHERE { FILTER ( ?h < ?a ) . { SELECT DISTINCT ( COUNT ( ?v ) AS ?a ) WHERE { resource:Grand_Hotel property:owned_by ?v . ?v rdf:type ontology:government_agency } } . { SELECT DISTINCT ?z ( COUNT ( ?d ) AS ?h ) WHERE { ?z property:owned_by ?d . ?z rdf:type ontology:dwelling . ?d rdf:type ontology:government_agency } GROUP BY ?z } }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q319145 Q1923857 Q408
P27
Q1048835
USER
Is Prime Minister of Australia a citizen of Fonfría and Australia ?
(Q319145,P27,Q1923857) (Q319145,P27,Q408)
action is_in
entity Q319145
action intersection
action find_reverse
entity Q1923857
relation P27
action find_reverse
entity Q408
relation P27
['Q319145', 'P27', 'Q1923857'] ['Q319145', 'P27', 'Q408']
ASK WHERE { resource:Q319145 property:P27 resource:Q1923857 . resource:Q319145 property:P27 resource:Q408 }
Prime Minister of Australia Fonfría Australia
action is_in
entity Prime Minister of Australia
action intersection
action find_reverse
entity Fonfría
relation country of citizenship
action find_reverse
entity Australia
relation country of citizenship
['Prime Minister of Australia', 'country of citizenship', 'Fonfría'] ['Prime Minister of Australia', 'country of citizenship', 'Australia']
ASK WHERE { resource:Prime_Minister_of_Australia property:country_of_citizenship resource:Fonfría . resource:Prime_Minister_of_Australia property:country_of_citizenship resource:Australia }
[]
political territorial entity
SYSTEM
NO and YES respectively
(Q319145,P27,Q1923857) (Q319145,P27,Q408)
action is_in
entity Q319145
action intersection
action find_reverse
entity Q1923857
relation P27
action find_reverse
entity Q408
relation P27
[ANSWER]
['Q319145', 'P27', 'Q1923857'] ['Q319145', 'P27', 'Q408']
ASK WHERE { resource:Q319145 property:P27 resource:Q1923857 . resource:Q319145 property:P27 resource:Q408 }
NO and YES respectively
action is_in
entity Prime Minister of Australia
action intersection
action find_reverse
entity Fonfría
relation country of citizenship
action find_reverse
entity Australia
relation country of citizenship
['Prime Minister of Australia', 'country of citizenship', 'Fonfría'] ['Prime Minister of Australia', 'country of citizenship', 'Australia']
ASK WHERE { resource:Prime_Minister_of_Australia property:country_of_citizenship resource:Fonfría . resource:Prime_Minister_of_Australia property:country_of_citizenship resource:Australia }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P127
Q327333 Q811430
USER
Which constructions are owned by exactly 1 government agency ?
(c(Q811430),P127,c(Q327333))
action equal
action find_tuple_counts
relation P127
type Q811430
type Q327333
value 1
[{'concept': 'Q811430'}, 'P127', {'concept': 'Q327333'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ?v ( COUNT ( ?z ) AS ?l ) WHERE { ?v property:P127 ?z . ?v rdf:type ontology:Q811430 . ?z rdf:type ontology:Q327333 } GROUP BY ?v } . FILTER ( ?l = 1 ) }
action equal
action find_tuple_counts
relation owned by
type construction
type government agency
value 1
[{'concept': 'construction'}, 'owned by', {'concept': 'government agency'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ?v ( COUNT ( ?z ) AS ?l ) WHERE { ?v property:owned_by ?z . ?v rdf:type ontology:construction . ?z rdf:type ontology:government_agency } GROUP BY ?v } . FILTER ( ?l = 1 ) }
[]
government agency construction
Q5216770
SYSTEM
Daniel Carter Beard Bridge
Q5216770
(c(Q811430),P127,c(Q327333))
action equal
action find_tuple_counts
relation P127
type Q811430
type Q327333
value 1
[ANSWER] is owned by exactly 1 government agency
[{'concept': 'Q811430'}, 'P127', {'concept': 'Q327333'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ?v ( COUNT ( ?z ) AS ?l ) WHERE { ?v property:P127 ?z . ?v rdf:type ontology:Q811430 . ?z rdf:type ontology:Q327333 } GROUP BY ?v } . FILTER ( ?l = 1 ) }
Daniel Carter Beard Bridge
Daniel Carter Beard Bridge is owned by exactly 1 government agency
Daniel Carter Beard Bridge
action equal
action find_tuple_counts
relation owned by
type construction
type government agency
value 1
[{'concept': 'construction'}, 'owned by', {'concept': 'government agency'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ?v ( COUNT ( ?z ) AS ?l ) WHERE { ?v property:owned_by ?z . ?v rdf:type ontology:construction . ?z rdf:type ontology:government_agency } GROUP BY ?v } . FILTER ( ?l = 1 ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q319145
P17
Q1048835
USER
How many political territories do Prime Minister of Australia belong to ?
(Q319145,P17,c(Q1048835))
action count
action filter_type
action find
entity Q319145
relation P17
type Q1048835
['Q319145', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?p ) WHERE { resource:Q319145 property:P17 ?j . ?j rdf:type ontology:Q1048835 }
Prime Minister of Australia
action count
action filter_type
action find
entity Prime Minister of Australia
relation country
type political territorial entity
['Prime Minister of Australia', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?p ) WHERE { resource:Prime_Minister_of_Australia property:country ?j . ?j rdf:type ontology:political_territorial_entity }
[]
political territorial entity
SYSTEM
1
Q408
(Q319145,P17,c(Q1048835))
action count
action filter_type
action find
entity Q319145
relation P17
type Q1048835
[ANSWER]
['Q319145', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?p ) WHERE { resource:Q319145 property:P17 ?j . ?j rdf:type ontology:Q1048835 }
Australia
1
action count
action filter_type
action find
entity Prime Minister of Australia
relation country
type political territorial entity
['Prime Minister of Australia', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?p ) WHERE { resource:Prime_Minister_of_Australia property:country ?j . ?j rdf:type ontology:political_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q319145
P37
Q34770
USER
What is considered to be the official language of Prime Minister of Australia ?
(Q319145,P37,c(Q34770))
action filter_type
action find
entity Q319145
relation P37
type Q34770
['Q319145', 'P37', {'concept': 'Q34770'}]
SELECT DISTINCT ?m WHERE { resource:Q319145 property:P37 ?m . ?m rdf:type ontology:Q34770 }
Prime Minister of Australia
action filter_type
action find
entity Prime Minister of Australia
relation official language
type language
['Prime Minister of Australia', 'official language', {'concept': 'language'}]
SELECT DISTINCT ?m WHERE { resource:Prime_Minister_of_Australia property:official_language ?m . ?m rdf:type ontology:language }
[]
language
Q1860
SYSTEM
English
Q1860
(Q319145,P37,c(Q34770))
action filter_type
action find
entity Q319145
relation P37
type Q34770
[ANSWER] is considered to be the official language of Prime Minister of Australia
['Q319145', 'P37', {'concept': 'Q34770'}]
SELECT DISTINCT ?m WHERE { resource:Q319145 property:P37 ?m . ?m rdf:type ontology:Q34770 }
English
English is considered to be the official language of Prime Minister of Australia
English
action filter_type
action find
entity Prime Minister of Australia
relation official language
type language
['Prime Minister of Australia', 'official language', {'concept': 'language'}]
SELECT DISTINCT ?m WHERE { resource:Prime_Minister_of_Australia property:official_language ?m . ?m rdf:type ontology:language }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q623277
Q34770
USER
And also tell me about Aquila?
(Q623277,P37,c(Q34770))
action filter_type
action find
entity Q623277
relation P37
type Q34770
['Q623277', 'P37', {'concept': 'Q34770'}]
SELECT DISTINCT ?c WHERE { resource:Q623277 property:P37 ?c . ?c rdf:type ontology:Q34770 }
Aquila
action filter_type
action find
entity Aquila
relation official language
type language
['Aquila', 'official language', {'concept': 'language'}]
SELECT DISTINCT ?c WHERE { resource:Aquila property:official_language ?c . ?c rdf:type ontology:language }
[]
language
Q652
SYSTEM
Italian
Q652
(Q623277,P37,c(Q34770))
action filter_type
action find
entity Q623277
relation P37
type Q34770
[ANSWER]
['Q623277', 'P37', {'concept': 'Q34770'}]
SELECT DISTINCT ?c WHERE { resource:Q623277 property:P37 ?c . ?c rdf:type ontology:Q34770 }
Italian
Italian
action filter_type
action find
entity Aquila
relation official language
type language
['Aquila', 'official language', {'concept': 'language'}]
SELECT DISTINCT ?c WHERE { resource:Aquila property:official_language ?c . ?c rdf:type ontology:language }
[]