Simple Question (Direct)
Simple Question
Q23944
P27
Q15617994
USER
Which administrative territory is Mark Amodei a civilian of ?
(Q23944,P27,c(Q15617994))
action filter_type
action find
entity Q23944
relation P27
type Q15617994
['Q23944', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?q WHERE { resource:Q23944 property:P27 ?q . ?q rdf:type ontology:Q15617994 }
Mark Amodei
action filter_type
action find
entity Mark Amodei
relation country of citizenship
type designation for an administrative territorial entity
['Mark Amodei', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { resource:Mark_Amodei property:country_of_citizenship ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
(Q23944,P27,c(Q15617994))
action filter_type
action find
entity Q23944
relation P27
type Q15617994
The [ANSWER] is Mark Amodei a civilian of
['Q23944', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?q WHERE { resource:Q23944 property:P27 ?q . ?q rdf:type ontology:Q15617994 }
United States of America
The United States of America is Mark Amodei a civilian of
United States of America
action filter_type
action find
entity Mark Amodei
relation country of citizenship
type designation for an administrative territorial entity
['Mark Amodei', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { resource:Mark_Amodei property:country_of_citizenship ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q23944
P21
Q290
USER
Which sex does that person belong to ?
(Q30,P21,c(Q290))
action filter_type
action find
entity Q23944
relation P21
type Q290
['Q30', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q290 . resource:Q23944 property:P21 ?y }
Mark Amodei
action filter_type
action find
entity Mark Amodei
relation gender
type sex
['United States of America', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:sex . resource:Mark_Amodei property:gender ?y }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q30,P21,c(Q290))
action filter_type
action find
entity Q23944
relation P21
type Q290
That person belongs to [ANSWER]
['Q30', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q290 . resource:Q23944 property:P21 ?y }
male
That person belongs to male
male
action filter_type
action find
entity Mark Amodei
relation gender
type sex
['United States of America', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:sex . resource:Mark_Amodei property:gender ?y }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q36
P530
Q15617994 Q15617994
USER
Which administrative territories have diplomatic relations with more number of administrative territories than Poland ?
(c(Q15617994),P530,c(Q15617994))
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q36
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?v ) AS ?l ) WHERE { ?f property:P530 ?v . ?f rdf:type ontology:Q15617994 . ?v rdf:type ontology:Q15617994 } GROUP BY ?f } . FILTER ( ?l > ?w ) . { SELECT DISTINCT ( COUNT ( ?z ) AS ?w ) WHERE { resource:Q36 property:P530 ?z . ?z rdf:type ontology:Q15617994 } } }
Poland
action greater
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 Poland
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 ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?v ) AS ?l ) WHERE { ?f property:diplomatic_relation ?v . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?f } . FILTER ( ?l > ?w ) . { SELECT DISTINCT ( COUNT ( ?z ) AS ?w ) WHERE { resource:Poland property:diplomatic_relation ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity } } }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q38 Q155 Q30
SYSTEM
Italy, Brazil, United States of America
Q801 Q805 Q668 Q414 Q142 Q145 Q148 Q37 Q711 Q252 Q399 Q403 Q258 Q159 Q43 Q41 Q155 Q796 Q794 Q889 Q884 Q881 Q822 Q241 Q32 Q31 Q30 Q34 Q38 Q423 Q27 Q843 Q227 Q222 Q347 Q17 Q1033 Q213 Q916 Q79 Q1016 Q1011 Q953
(c(Q15617994),P530,c(Q15617994))
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q36
relation P530
type Q15617994
[ANSWERS] have diplomatic relations with more number of administrative territories than Poland
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?v ) AS ?l ) WHERE { ?f property:P530 ?v . ?f rdf:type ontology:Q15617994 . ?v rdf:type ontology:Q15617994 } GROUP BY ?f } . FILTER ( ?l > ?w ) . { SELECT DISTINCT ( COUNT ( ?z ) AS ?w ) WHERE { resource:Q36 property:P530 ?z . ?z rdf:type ontology:Q15617994 } } }
Israel Yemen India Argentina France United Kingdom People's Republic of China Lithuania Mongolia Indonesia Armenia Serbia South Africa Russia Turkey Greece Brazil Iraq Iran Afghanistan South Korea Vietnam Lebanon Cuba Luxembourg Belgium United States of America Sweden Italy North Korea Ireland Pakistan Azerbaijan Albania Liechtenstein Japan Nigeria Czech Republic Angola Egypt Libya Cape Verde Zambia
Italy, Brazil and United States of America have diplomatic relations with more number of administrative territories than Poland
Italy Brazil United States of America
action greater
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 Poland
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 ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?v ) AS ?l ) WHERE { ?f property:diplomatic_relation ?v . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?f } . FILTER ( ?l > ?w ) . { SELECT DISTINCT ( COUNT ( ?z ) AS ?w ) WHERE { resource:Poland property:diplomatic_relation ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity } } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q843
P530
Q15617994 Q15617994
USER
And what about Pakistan?
(c(Q15617994),P530,c(Q15617994))
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q843
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?l ) AS ?z ) WHERE { ?c property:P530 ?l . ?c rdf:type ontology:Q15617994 . ?l rdf:type ontology:Q15617994 } GROUP BY ?c } . FILTER ( ?z > ?b ) . { SELECT DISTINCT ( COUNT ( ?a ) AS ?b ) WHERE { resource:Q843 property:P530 ?a . ?a rdf:type ontology:Q15617994 } } }
Pakistan
action greater
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 Pakistan
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 ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?l ) AS ?z ) WHERE { ?c property:diplomatic_relation ?l . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?c } . FILTER ( ?z > ?b ) . { SELECT DISTINCT ( COUNT ( ?a ) AS ?b ) WHERE { resource:Pakistan property:diplomatic_relation ?a . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity } } }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q38 Q155 Q30
SYSTEM
Italy, Brazil, United States of America
Q801 Q805 Q668 Q414 Q142 Q145 Q148 Q37 Q711 Q252 Q399 Q403 Q258 Q159 Q43 Q41 Q155 Q796 Q794 Q822 Q241 Q31 Q30 Q38 Q27 Q222 Q347 Q17 Q213 Q916 Q79 Q1016 Q1011 Q953
(c(Q15617994),P530,c(Q15617994))
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q843
relation P530
type Q15617994
[ANSWERS]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?l ) AS ?z ) WHERE { ?c property:P530 ?l . ?c rdf:type ontology:Q15617994 . ?l rdf:type ontology:Q15617994 } GROUP BY ?c } . FILTER ( ?z > ?b ) . { SELECT DISTINCT ( COUNT ( ?a ) AS ?b ) WHERE { resource:Q843 property:P530 ?a . ?a rdf:type ontology:Q15617994 } } }
Israel Yemen India Argentina France United Kingdom People's Republic of China Lithuania Mongolia Indonesia Armenia Serbia South Africa Russia Turkey Greece Brazil Iraq Iran Lebanon Cuba Belgium United States of America Italy Ireland Albania Liechtenstein Japan Czech Republic Angola Egypt Libya Cape Verde Zambia
Italy Brazil United States of America
action greater
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 Pakistan
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 ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?l ) AS ?z ) WHERE { ?c property:diplomatic_relation ?l . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?c } . FILTER ( ?z > ?b ) . { SELECT DISTINCT ( COUNT ( ?a ) AS ?b ) WHERE { resource:Pakistan property:diplomatic_relation ?a . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity } } }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q10376240 Q38
P530 P27
Q15617994
USER
Which administrative territories have diplomatic relationships with Italy or are the native countriesof Sérgio Stock ?
OR((Q38,P530,c(Q15617994)), (Q10376240,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q38
relation P530
action find
entity Q10376240
relation P27
type Q15617994
{'OR': [['Q38', 'P530', {'concept': 'Q15617994'}], ['Q10376240', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Q38 property:P530 ?z } UNION { resource:Q10376240 property:P27 ?z } } . ?z rdf:type ontology:Q15617994 }
Sérgio Stock Italy
action filter_type
action union
action find
entity Italy
relation diplomatic relation
action find
entity Sérgio Stock
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Italy', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Sérgio Stock', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Italy property:diplomatic_relation ?z } UNION { resource:Sérgio_Stock property:country_of_citizenship ?z } } . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q889 Q238 Q159 Q869 Q227 Q77 Q233 Q36 Q218 Q229
SYSTEM
Some of them are Afghanistan, San Marino, Russia, Thailand, Azerbaijan, Uruguay, Malta, Poland, Romania, Cyprus
Q805 Q219 Q869 Q801 Q189 Q843 Q184 Q423 Q822 Q419 Q668 Q347 Q414 Q142 Q225 Q224 Q55 Q222 Q221 Q145 Q148 Q96 Q31 Q229 Q228 Q33 Q32 Q17 Q30 Q37 Q36 Q79 Q34 Q77 Q39 Q1016 Q739 Q227 Q948 Q191 Q733 Q928 Q298 Q45 Q252 Q114 Q399 Q403 Q230 Q233 Q258 Q43 Q212 Q213 Q236 Q211 Q159 Q217 Q214 Q215 Q155 Q218 Q41 Q238 Q796 Q794 Q20 Q1045 Q889 Q27 Q28 Q29 Q884 Q881
OR((Q38,P530,c(Q15617994)), (Q10376240,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q38
relation P530
action find
entity Q10376240
relation P27
type Q15617994
[ANSWERS] have diplomatic relationships with Italy or are the native countriesof Sérgio Stock
{'OR': [['Q38', 'P530', {'concept': 'Q15617994'}], ['Q10376240', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Q38 property:P530 ?z } UNION { resource:Q10376240 property:P27 ?z } } . ?z rdf:type ontology:Q15617994 }
Yemen Bulgaria Thailand Israel Iceland Pakistan Belarus North Korea Lebanon Peru India Liechtenstein Argentina France Bosnia and Herzegovina Croatia Netherlands Albania Republic of Macedonia United Kingdom People's Republic of China Mexico Belgium Cyprus Andorra Finland Luxembourg Japan United States of America Lithuania Poland Egypt Sweden Uruguay Switzerland Libya Colombia Azerbaijan Tunisia Estonia Paraguay Philippines Chile Portugal Indonesia Kenya Armenia Serbia Georgia Malta South Africa Turkey Ukraine Czech Republic Montenegro Latvia Russia Republic of Moldova Slovakia Slovenia Brazil Romania Greece San Marino Iraq Iran Norway Somalia Afghanistan Ireland Hungary Spain South Korea Vietnam
Afghanistan, San Marino, Russia, Thailand, Azerbaijan, Uruguay, Malta, Poland, Romania and Cyprus have diplomatic relationships with Italy or are the native countriesof Sérgio Stock
Afghanistan San Marino Russia Thailand Azerbaijan Uruguay Malta Poland Romania Cyprus
action filter_type
action union
action find
entity Italy
relation diplomatic relation
action find
entity Sérgio Stock
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Italy', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Sérgio Stock', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Italy property:diplomatic_relation ?z } UNION { resource:Sérgio_Stock property:country_of_citizenship ?z } } . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q4450814
P530
Q1048835
USER
Are Tamarivka known to have diplomatic connections with those administrative territories ?
(Q4450814,P530,Q889) (Q4450814,P530,Q238) (Q4450814,P530,Q159) (Q4450814,P530,Q869) (Q4450814,P530,Q227) (Q4450814,P530,Q77) (Q4450814,P530,Q233) (Q4450814,P530,Q36) (Q4450814,P530,Q218) (Q4450814,P530,Q229)
action is_in
entity prev_answer
action find
entity Q4450814
relation P530
['Q4450814', 'P530', 'Q889'] ['Q4450814', 'P530', 'Q238'] ['Q4450814', 'P530', 'Q159'] ['Q4450814', 'P530', 'Q869'] ['Q4450814', 'P530', 'Q227'] ['Q4450814', 'P530', 'Q77'] ['Q4450814', 'P530', 'Q233'] ['Q4450814', 'P530', 'Q36'] ['Q4450814', 'P530', 'Q218'] ['Q4450814', 'P530', 'Q229']
ASK WHERE { resource:Q4450814 property:P530 ?p . VALUES ( ?p ) { ( resource:Q805 ) ( resource:Q219 ) ( resource:Q869 ) } }
Tamarivka
action is_in
entity prev_answer
action find
entity Tamarivka
relation diplomatic relation
['Tamarivka', 'diplomatic relation', 'Afghanistan'] ['Tamarivka', 'diplomatic relation', 'San Marino'] ['Tamarivka', 'diplomatic relation', 'Russia'] ['Tamarivka', 'diplomatic relation', 'Thailand'] ['Tamarivka', 'diplomatic relation', 'Azerbaijan'] ['Tamarivka', 'diplomatic relation', 'Uruguay'] ['Tamarivka', 'diplomatic relation', 'Malta'] ['Tamarivka', 'diplomatic relation', 'Poland'] ['Tamarivka', 'diplomatic relation', 'Romania'] ['Tamarivka', 'diplomatic relation', 'Cyprus']
ASK WHERE { resource:Tamarivka property:diplomatic_relation ?p . VALUES ( ?p ) { ( resource:Yemen ) ( resource:Bulgaria ) ( resource:Thailand ) } }
[]
political territorial entity
SYSTEM
NO
(Q4450814,P530,Q889) (Q4450814,P530,Q238) (Q4450814,P530,Q159) (Q4450814,P530,Q869) (Q4450814,P530,Q227) (Q4450814,P530,Q77) (Q4450814,P530,Q233) (Q4450814,P530,Q36) (Q4450814,P530,Q218) (Q4450814,P530,Q229)
action is_in
entity prev_answer
action find
entity Q4450814
relation P530
[ANSWER]
['Q4450814', 'P530', 'Q889'] ['Q4450814', 'P530', 'Q238'] ['Q4450814', 'P530', 'Q159'] ['Q4450814', 'P530', 'Q869'] ['Q4450814', 'P530', 'Q227'] ['Q4450814', 'P530', 'Q77'] ['Q4450814', 'P530', 'Q233'] ['Q4450814', 'P530', 'Q36'] ['Q4450814', 'P530', 'Q218'] ['Q4450814', 'P530', 'Q229']
ASK WHERE { resource:Q4450814 property:P530 ?p . VALUES ( ?p ) { ( resource:Q805 ) ( resource:Q219 ) ( resource:Q869 ) } }
No
action is_in
entity prev_answer
action find
entity Tamarivka
relation diplomatic relation
['Tamarivka', 'diplomatic relation', 'Afghanistan'] ['Tamarivka', 'diplomatic relation', 'San Marino'] ['Tamarivka', 'diplomatic relation', 'Russia'] ['Tamarivka', 'diplomatic relation', 'Thailand'] ['Tamarivka', 'diplomatic relation', 'Azerbaijan'] ['Tamarivka', 'diplomatic relation', 'Uruguay'] ['Tamarivka', 'diplomatic relation', 'Malta'] ['Tamarivka', 'diplomatic relation', 'Poland'] ['Tamarivka', 'diplomatic relation', 'Romania'] ['Tamarivka', 'diplomatic relation', 'Cyprus']
ASK WHERE { resource:Tamarivka property:diplomatic_relation ?p . VALUES ( ?p ) { ( resource:Yemen ) ( resource:Bulgaria ) ( resource:Thailand ) } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q159 Q49405
P706
Q355304
USER
How many watercourses have their location as Russia or Franconian Lake District ?
(c(Q355304),P706,Q159) (c(Q355304),P706,Q49405)
action count
action union
action filter_type
action find_reverse
entity Q159
relation P706
type Q355304
action filter_type
action find_reverse
entity Q49405
relation P706
type Q355304
[{'concept': 'Q355304'}, 'P706', 'Q159'] [{'concept': 'Q355304'}, 'P706', 'Q49405']
SELECT DISTINCT ( COUNT ( ?f ) AS ?g ) WHERE { ?f property:P706 ?d . VALUES ( ?d ) { ( resource:Q159 ) ( resource:Q49405 ) } }
Russia Franconian Lake District
action count
action union
action filter_type
action find_reverse
entity Russia
relation located on terrain feature
type watercourse
action filter_type
action find_reverse
entity Franconian Lake District
relation located on terrain feature
type watercourse
[{'concept': 'watercourse'}, 'located on terrain feature', 'Russia'] [{'concept': 'watercourse'}, 'located on terrain feature', 'Franconian Lake District']
SELECT DISTINCT ( COUNT ( ?f ) AS ?g ) WHERE { ?f property:located_on_terrain_feature ?d . VALUES ( ?d ) { ( resource:Russia ) ( resource:Franconian_Lake_District ) } }
[]
watercourse
SYSTEM
3
Q1657122 Q729702 Q729851
(c(Q355304),P706,Q159) (c(Q355304),P706,Q49405)
action count
action union
action filter_type
action find_reverse
entity Q159
relation P706
type Q355304
action filter_type
action find_reverse
entity Q49405
relation P706
type Q355304
[ANSWER]
[{'concept': 'Q355304'}, 'P706', 'Q159'] [{'concept': 'Q355304'}, 'P706', 'Q49405']
SELECT DISTINCT ( COUNT ( ?f ) AS ?g ) WHERE { ?f property:P706 ?d . VALUES ( ?d ) { ( resource:Q159 ) ( resource:Q49405 ) } }
Igelsbach Rohrach Brombach
3
action count
action union
action filter_type
action find_reverse
entity Russia
relation located on terrain feature
type watercourse
action filter_type
action find_reverse
entity Franconian Lake District
relation located on terrain feature
type watercourse
[{'concept': 'watercourse'}, 'located on terrain feature', 'Russia'] [{'concept': 'watercourse'}, 'located on terrain feature', 'Franconian Lake District']
SELECT DISTINCT ( COUNT ( ?f ) AS ?g ) WHERE { ?f property:located_on_terrain_feature ?d . VALUES ( ?d ) { ( resource:Russia ) ( resource:Franconian_Lake_District ) } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P530
Q15617994 Q1048835 Q15617994
USER
How many administrative territories have a diplomatic relationship with around 1 political territories or administrative territories ?
(c(Q1048835)|c(Q15617994),P530,c(Q15617994))
action count
action approx
action union
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q1048835
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
value 1
[[{'concept': 'Q1048835'}, {'concept': 'Q15617994'}], 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?f ) WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?u ) ?r WHERE { { ?a property:P530 ?r . ?r rdf:type ontology:Q15617994 . ?a rdf:type ontology:Q15617994 } UNION { ?a property:P530 ?r . ?r rdf:type ontology:Q15617994 . ?a rdf:type ontology:Q1048835 } } GROUP BY ?r } . FILTER ( ?u = 1 ) }
action count
action approx
action union
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 1
[[{'concept': 'political territorial entity'}, {'concept': 'designation for an administrative territorial entity'}], 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?f ) WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?u ) ?r WHERE { { ?a property:diplomatic_relation ?r . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?a property:diplomatic_relation ?r . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . ?a rdf:type ontology:political_territorial_entity } } GROUP BY ?r } . FILTER ( ?u = 1 ) }
[]
designation for an administrative territorial entity political territorial entity designation for an administrative territorial entity
SYSTEM
150
Q702 Q804 Q800 Q419 Q414 Q55 Q262 Q783 Q784 Q265 Q37 Q712 Q711 Q710 Q717 Q837 Q252 Q399 Q398 Q657 Q258 Q45 Q41 Q792 Q790 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q986 Q822 Q241 Q242 Q244 Q811 Q33 Q32 Q31 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 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 Q77 Q858 Q878 Q774 Q948 Q817 Q810 Q1019 Q1016 Q945 Q678 Q29 Q33788 Q869
(c(Q1048835)|c(Q15617994),P530,c(Q15617994))
action count
action approx
action union
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q1048835
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
value 1
[ANSWER]
[[{'concept': 'Q1048835'}, {'concept': 'Q15617994'}], 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?f ) WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?u ) ?r WHERE { { ?a property:P530 ?r . ?r rdf:type ontology:Q15617994 . ?a rdf:type ontology:Q15617994 } UNION { ?a property:P530 ?r . ?r rdf:type ontology:Q15617994 . ?a rdf:type ontology:Q1048835 } } GROUP BY ?r } . FILTER ( ?u = 1 ) }
Federated States of Micronesia Panama Costa Rica Peru Argentina Netherlands Algeria Honduras Dominica Uzbekistan Lithuania Fiji Mongolia Kiribati Venezuela Nepal Indonesia Armenia Bahrain Chad South Africa Portugal Greece El Salvador Haiti Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam Eritrea Lebanon Cuba Belize Barbados Nicaragua Finland Luxembourg Belgium 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 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 Uruguay Syria United Arab Emirates Guatemala Tunisia Kuwait Jordan Madagascar Libya Togo Tonga Spain New Caledonia Thailand
150
action count
action approx
action union
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 1
[[{'concept': 'political territorial entity'}, {'concept': 'designation for an administrative territorial entity'}], 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?f ) WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?u ) ?r WHERE { { ?a property:diplomatic_relation ?r . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?a property:diplomatic_relation ?r . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . ?a rdf:type ontology:political_territorial_entity } } GROUP BY ?r } . FILTER ( ?u = 1 ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q717
P530
Q15617994 Q15617994
USER
How many administrative territories have diplomatic associations with less number of administrative territories than Venezuela ?
(c(Q15617994),P530,c(Q15617994))
action count
action less
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q717
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?q ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?c ) AS ?k ) WHERE { ?y property:P530 ?c . ?y rdf:type ontology:Q15617994 . ?c rdf:type ontology:Q15617994 } GROUP BY ?y } . FILTER ( ?k < ?b ) . { SELECT DISTINCT ( COUNT ( ?r ) AS ?b ) WHERE { resource:Q717 property:P530 ?r . ?r rdf:type ontology:Q15617994 } } }
Venezuela
action count
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 Venezuela
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 ( COUNT ( ?y ) AS ?q ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?c ) AS ?k ) WHERE { ?y property:diplomatic_relation ?c . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?y } . FILTER ( ?k < ?b ) . { SELECT DISTINCT ( COUNT ( ?r ) AS ?b ) WHERE { resource:Venezuela property:diplomatic_relation ?r . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity } } }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
SYSTEM
95
Q702 Q804 Q800 Q55 Q262 Q783 Q265 Q712 Q837 Q398 Q657 Q792 Q790 Q954 Q958 Q986 Q242 Q244 Q811 Q33 Q924 Q983 Q851 Q29999 Q854 Q734 Q819 Q424 Q730 Q736 Q236 Q232 Q233 Q238 Q20 Q1045 Q1041 Q921 Q1049 Q1027 Q1020 Q189 Q842 Q1029 Q1028 Q786 Q224 Q221 Q229 Q1036 Q1037 Q974 Q1032 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 Q697 Q695 Q115 Q117 Q754 Q750 Q211 Q217 Q214 Q215 Q219 Q912 Q917 Q1007 Q1006 Q1005 Q833 Q977 Q1009 Q1008 Q971 Q683 Q34020 Q686 Q836 Q574 Q878 Q774 Q817 Q810 Q1019 Q945 Q678 Q33788 Q869
(c(Q15617994),P530,c(Q15617994))
action count
action less
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q717
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?q ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?c ) AS ?k ) WHERE { ?y property:P530 ?c . ?y rdf:type ontology:Q15617994 . ?c rdf:type ontology:Q15617994 } GROUP BY ?y } . FILTER ( ?k < ?b ) . { SELECT DISTINCT ( COUNT ( ?r ) AS ?b ) WHERE { resource:Q717 property:P530 ?r . ?r rdf:type ontology:Q15617994 } } }
Federated States of Micronesia Panama Costa Rica Netherlands Algeria Honduras Uzbekistan Fiji Nepal Bahrain Chad El Salvador Haiti Zimbabwe South Sudan Eritrea Belize Barbados Nicaragua Finland Tanzania Equatorial Guinea Saudi Arabia Kingdom of the Netherlands Sri Lanka Guyana Laos Cambodia Suriname Ecuador Montenegro Kazakhstan Malta San Marino Norway Somalia Senegal Brunei Sudan Mauritius Malawi Iceland Oman Mozambique Morocco Dominican Republic Croatia Republic of Macedonia Cyprus Uganda Rwanda Democratic Republic of the Congo Niger Nigeria Namibia Estonia Burkina Faso Burundi Benin Botswana Nauru Palau Ethiopia Ghana Trinidad and Tobago Bolivia Latvia Republic of Moldova Slovakia Slovenia Bulgaria Mali Bhutan Guinea-Bissau Guinea Gambia Malaysia Djibouti Cameroon Côte d'Ivoire Republic of the Congo Samoa Niue Vanuatu Myanmar East Timor United Arab Emirates Guatemala Kuwait Jordan Madagascar Togo Tonga New Caledonia Thailand
95
action count
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 Venezuela
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 ( COUNT ( ?y ) AS ?q ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?c ) AS ?k ) WHERE { ?y property:diplomatic_relation ?c . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?y } . FILTER ( ?k < ?b ) . { SELECT DISTINCT ( COUNT ( ?r ) AS ?b ) WHERE { resource:Venezuela property:diplomatic_relation ?r . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity } } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q79
P530
Q15617994 Q15617994
USER
And also tell me about Egypt?
(c(Q15617994),P530,c(Q15617994))
action count
action less
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q79
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?w ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?e ) AS ?g ) WHERE { ?x property:P530 ?e . ?x rdf:type ontology:Q15617994 . ?e rdf:type ontology:Q15617994 } GROUP BY ?x } . FILTER ( ?g < ?m ) . { SELECT DISTINCT ( COUNT ( ?s ) AS ?m ) WHERE { resource:Q79 property:P530 ?s . ?s rdf:type ontology:Q15617994 } } }
Egypt
action count
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 Egypt
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 ( COUNT ( ?x ) AS ?w ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?e ) AS ?g ) WHERE { ?x property:diplomatic_relation ?e . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?x } . FILTER ( ?g < ?m ) . { SELECT DISTINCT ( COUNT ( ?s ) AS ?m ) WHERE { resource:Egypt property:diplomatic_relation ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity } } }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
SYSTEM
127
Q702 Q804 Q800 Q419 Q55 Q262 Q783 Q265 Q37 Q712 Q717 Q837 Q399 Q398 Q657 Q258 Q45 Q41 Q792 Q790 Q954 Q889 Q958 Q881 Q986 Q822 Q241 Q242 Q244 Q811 Q33 Q32 Q31 Q924 Q36 Q34 Q928 Q39 Q739 Q423 Q983 Q851 Q733 Q29999 Q854 Q734 Q819 Q424 Q730 Q736 Q236 Q232 Q233 Q238 Q20 Q1045 Q1041 Q28 Q921 Q1049 Q1027 Q1020 Q189 Q843 Q842 Q1029 Q1028 Q786 Q228 Q227 Q224 Q221 Q96 Q229 Q902 Q1036 Q1037 Q974 Q1032 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 Q697 Q298 Q695 Q115 Q117 Q754 Q750 Q211 Q217 Q214 Q215 Q218 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q833 Q977 Q1009 Q1008 Q971 Q683 Q34020 Q686 Q836 Q574 Q77 Q878 Q774 Q817 Q810 Q1019 Q1016 Q945 Q678 Q29 Q33788 Q869
(c(Q15617994),P530,c(Q15617994))
action count
action less
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q79
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?w ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?e ) AS ?g ) WHERE { ?x property:P530 ?e . ?x rdf:type ontology:Q15617994 . ?e rdf:type ontology:Q15617994 } GROUP BY ?x } . FILTER ( ?g < ?m ) . { SELECT DISTINCT ( COUNT ( ?s ) AS ?m ) WHERE { resource:Q79 property:P530 ?s . ?s rdf:type ontology:Q15617994 } } }
Federated States of Micronesia Panama Costa Rica Peru Netherlands Algeria Honduras Uzbekistan Lithuania Fiji Venezuela Nepal Armenia Bahrain Chad South Africa Portugal Greece El Salvador Haiti Zimbabwe Afghanistan South Sudan Vietnam Eritrea Lebanon Cuba Belize Barbados Nicaragua Finland Luxembourg Belgium Tanzania Poland Sweden Philippines Switzerland Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Kingdom of the Netherlands Sri Lanka Guyana Laos Cambodia Suriname Ecuador Montenegro Kazakhstan Malta San Marino Norway Somalia Senegal Hungary Brunei Sudan Mauritius Malawi Iceland Pakistan Oman Mozambique Morocco Dominican Republic Andorra Azerbaijan Croatia Republic of Macedonia Mexico Cyprus Bangladesh Uganda Rwanda Democratic Republic of the Congo Niger Nigeria Namibia Estonia Burkina Faso Burundi Benin Botswana Nauru Chile Palau Ethiopia Ghana Trinidad and Tobago Bolivia 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 Samoa Niue Vanuatu Myanmar East Timor Uruguay United Arab Emirates Guatemala Kuwait Jordan Madagascar Libya Togo Tonga Spain New Caledonia Thailand
127
action count
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 Egypt
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 ( COUNT ( ?x ) AS ?w ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?e ) AS ?g ) WHERE { ?x property:diplomatic_relation ?e . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?x } . FILTER ( ?g < ?m ) . { SELECT DISTINCT ( COUNT ( ?s ) AS ?m ) WHERE { resource:Egypt property:diplomatic_relation ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity } } }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q1140216 Q30
P161 P6
Q502895
USER
Which people have United States of America as their heads of government or starred in Piranha ?
OR((Q30,P6,c(Q502895)), (Q1140216,P161,c(Q502895)))
action filter_type
action union
action find
entity Q30
relation P6
action find
entity Q1140216
relation P161
type Q502895
{'OR': [['Q30', 'P6', {'concept': 'Q502895'}], ['Q1140216', 'P161', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?o WHERE { { { resource:Q30 property:P6 ?o } UNION { resource:Q1140216 property:P161 ?o } } . ?o rdf:type ontology:Q502895 }
Piranha United States of America
action filter_type
action union
action find
entity United States of America
relation head of government
action find
entity Piranha
relation cast member
type common name
{'OR': [['United States of America', 'head of government', {'concept': 'common name'}], ['Piranha', 'cast member', {'concept': 'common name'}]]}
SELECT DISTINCT ?o WHERE { { { resource:United_States_of_America property:head_of_government ?o } UNION { resource:Piranha property:cast_member ?o } } . ?o rdf:type ontology:common_name }
[]
common name
Q8007 Q34836 Q3635219 Q12312 Q11815 Q12325 Q35171 Q35686 Q207 Q946859
SYSTEM
Some of them are Franklin Delano Roosevelt, Ulysses S. Grant, Barry Brown, Franklin Pierce, James Monroe, James Buchanan, Grover Cleveland, Rutherford B. Hayes, George W. Bush, Keenan Wynn
Q35171 Q11815 Q11816 Q11817 Q9588 Q11812 Q12306 Q91 Q12325 Q33866 Q35648 Q23505 Q35498 Q9582 Q457751 Q1209753 Q11869 Q207 Q11813 Q35236 Q23685 Q9696 Q22686 Q34597 Q36023 Q11881 Q9916 Q12312 Q946859 Q3635219 Q896953 Q11806 Q3481630 Q281404 Q35286 Q9640 Q35686 Q11820 Q35678 Q462368 Q35041 Q1289785 Q266240 Q34296 Q76 Q8612 Q34836 Q1651660 Q23 Q1124 Q11613 Q11896 Q8007 Q9960 Q11891
OR((Q30,P6,c(Q502895)), (Q1140216,P161,c(Q502895)))
action filter_type
action union
action find
entity Q30
relation P6
action find
entity Q1140216
relation P161
type Q502895
[ANSWERS] have United States of America as their heads of government or starred in Piranha
{'OR': [['Q30', 'P6', {'concept': 'Q502895'}], ['Q1140216', 'P161', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?o WHERE { { { resource:Q30 property:P6 ?o } UNION { resource:Q1140216 property:P161 ?o } } . ?o rdf:type ontology:Q502895 }
Grover Cleveland James Monroe John Quincy Adams Andrew Jackson Richard Nixon Thomas Jefferson Millard Fillmore Abraham Lincoln James Buchanan Theodore Roosevelt William Howard Taft George H. W. Bush Chester A. Arthur Gerald Ford Melody Thomas Scott Dick Miller William Henry Harrison George W. Bush James Madison Herbert Hoover Jimmy Carter John F. Kennedy Donald Trump James A. Garfield Calvin Coolidge John Tyler Dwight D. Eisenhower Franklin Pierce Keenan Wynn Barry Brown Bradford Dillman John Adams Shawn Nelson Kevin McCarthy Warren G. Harding Lyndon B. Johnson Rutherford B. Hayes Martin Van Buren Benjamin Harrison Heather Menzies William McKinley Richard Deacon Barbara Steele Woodrow Wilson Barack Obama Andrew Johnson Ulysses S. Grant Paul Bartel George Washington Bill Clinton Harry S. Truman Zachary Taylor Franklin Delano Roosevelt Ronald Reagan James K. Polk
Franklin Delano Roosevelt, Ulysses S. Grant, Barry Brown, Franklin Pierce, James Monroe, James Buchanan, Grover Cleveland, Rutherford B. Hayes, George W. Bush and Keenan Wynn have United States of America as their heads of government or starred in Piranha
Franklin Delano Roosevelt Ulysses S. Grant Barry Brown Franklin Pierce James Monroe James Buchanan Grover Cleveland Rutherford B. Hayes George W. Bush Keenan Wynn
action filter_type
action union
action find
entity United States of America
relation head of government
action find
entity Piranha
relation cast member
type common name
{'OR': [['United States of America', 'head of government', {'concept': 'common name'}], ['Piranha', 'cast member', {'concept': 'common name'}]]}
SELECT DISTINCT ?o WHERE { { { resource:United_States_of_America property:head_of_government ?o } UNION { resource:Piranha property:cast_member ?o } } . ?o rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q20299607
P27
Q15617994
USER
How many administrative territories are Charles Couperin the older a civilian of ?
(Q20299607,P27,c(Q15617994))
action count
action filter_type
action find
entity Q20299607
relation P27
type Q15617994
['Q20299607', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?k ) WHERE { resource:Q20299607 property:P27 ?a . ?a rdf:type ontology:Q15617994 }
Charles Couperin the older
action count
action filter_type
action find
entity Charles Couperin the older
relation country of citizenship
type designation for an administrative territorial entity
['Charles Couperin the older', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?k ) WHERE { resource:Charles_Couperin_the_older property:country_of_citizenship ?a . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
SYSTEM
1
Q142
(Q20299607,P27,c(Q15617994))
action count
action filter_type
action find
entity Q20299607
relation P27
type Q15617994
[ANSWER]
['Q20299607', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?k ) WHERE { resource:Q20299607 property:P27 ?a . ?a rdf:type ontology:Q15617994 }
France
1
action count
action filter_type
action find
entity Charles Couperin the older
relation country of citizenship
type designation for an administrative territorial entity
['Charles Couperin the older', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?k ) WHERE { resource:Charles_Couperin_the_older property:country_of_citizenship ?a . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Incomplete count-based ques
Q20638954
Q15617994
USER
And how about Marie-Hélène Sola?
(Q20638954,P27,c(Q15617994))
action count
action filter_type
action find
entity Q20638954
relation P27
type Q15617994
['Q20638954', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?r ) WHERE { ?k rdf:type ontology:Q15617994 . resource:Q20638954 property:P27 ?k }
Marie-Hélène Sola
action count
action filter_type
action find
entity Marie-Hélène Sola
relation country of citizenship
type designation for an administrative territorial entity
['Marie-Hélène Sola', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?r ) WHERE { ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Marie-Hélène_Sola property:country_of_citizenship ?k }
[]
designation for an administrative territorial entity
SYSTEM
1
(Q20638954,P27,c(Q15617994))
action count
action filter_type
action find
entity Q20638954
relation P27
type Q15617994
[ANSWER]
['Q20638954', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?r ) WHERE { ?k rdf:type ontology:Q15617994 . resource:Q20638954 property:P27 ?k }
1
action count
action filter_type
action find
entity Marie-Hélène Sola
relation country of citizenship
type designation for an administrative territorial entity
['Marie-Hélène Sola', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?r ) WHERE { ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Marie-Hélène_Sola property:country_of_citizenship ?k }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q20638954
P106
Q12737077
USER
Which occupation is the profession of that person ?
action filter_type
action find
entity Q20638954
relation P106
type Q12737077
SELECT DISTINCT ?x WHERE { resource:Q20638954 property:P106 ?x . ?x rdf:type ontology:Q12737077 }
Marie-Hélène Sola
action filter_type
action find
entity Marie-Hélène Sola
relation occupation
type occupation
SELECT DISTINCT ?x WHERE { resource:Marie-Hélène_Sola property:occupation ?x . ?x rdf:type ontology:occupation }
[]
occupation
Q483501
SYSTEM
artist
Q483501
action filter_type
action find
entity Q20638954
relation P106
type Q12737077
[ANSWER] is the profession of that person
SELECT DISTINCT ?x WHERE { resource:Q20638954 property:P106 ?x . ?x rdf:type ontology:Q12737077 }
artist
Artist is the profession of that person
artist
action filter_type
action find
entity Marie-Hélène Sola
relation occupation
type occupation
SELECT DISTINCT ?x WHERE { resource:Marie-Hélène_Sola property:occupation ?x . ?x rdf:type ontology:occupation }
[]