Simple Question (Direct)
Simple Question
Q5361982
P21
Q290
USER
Which sex does Shin'ya Ueda possess ?
(Q5361982,P21,c(Q290))
action filter_type
action find
entity Q5361982
relation P21
type Q290
['Q5361982', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?h WHERE { resource:Q5361982 property:P21 ?h . ?h rdf:type ontology:Q290 }
Shin'ya Ueda
action filter_type
action find
entity Shin'ya Ueda
relation gender
type sex
["Shin'ya Ueda", 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?h WHERE { resource:Shin'ya_Ueda property:gender ?h . ?h rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q5361982,P21,c(Q290))
action filter_type
action find
entity Q5361982
relation P21
type Q290
Shin'ya Ueda possesses a [ANSWER]
['Q5361982', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?h WHERE { resource:Q5361982 property:P21 ?h . ?h rdf:type ontology:Q290 }
male
Shin'ya Ueda possesses a male
male
action filter_type
action find
entity Shin'ya Ueda
relation gender
type sex
["Shin'ya Ueda", 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?h WHERE { resource:Shin'ya_Ueda property:gender ?h . ?h rdf:type ontology:sex }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q5361982
P27
Q15617994
USER
Which administrative territory is the country of citizenship of that person ?
(Q6581097,P27,c(Q15617994))
action filter_type
action find
entity Q5361982
relation P27
type Q15617994
['Q6581097', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?s WHERE { resource:Q5361982 property:P27 ?s . ?s rdf:type ontology:Q15617994 }
Shin'ya Ueda
action filter_type
action find
entity Shin'ya Ueda
relation country of citizenship
type designation for an administrative territorial entity
['male', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { resource:Shin'ya_Ueda property:country_of_citizenship ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q17
SYSTEM
Japan
Q17
(Q6581097,P27,c(Q15617994))
action filter_type
action find
entity Q5361982
relation P27
type Q15617994
The [ANSWER] is the country of citizenship of that person
['Q6581097', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?s WHERE { resource:Q5361982 property:P27 ?s . ?s rdf:type ontology:Q15617994 }
Japan
The Japan is the country of citizenship of that person
Japan
action filter_type
action find
entity Shin'ya Ueda
relation country of citizenship
type designation for an administrative territorial entity
['male', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { resource:Shin'ya_Ueda property:country_of_citizenship ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q5361982
P734
Q82799
USER
Which name is associated with that person ?
(Q17,P734,c(Q82799))
action filter_type
action find
entity Q5361982
relation P734
type Q82799
['Q17', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q82799 . resource:Q5361982 property:P734 ?o }
Shin'ya Ueda
action filter_type
action find
entity Shin'ya Ueda
relation family name
type name
['Japan', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:name . resource:Shin'ya_Ueda property:family_name ?o }
[]
name
Q18210630
SYSTEM
Ueda
Q18210630
(Q17,P734,c(Q82799))
action filter_type
action find
entity Q5361982
relation P734
type Q82799
[ANSWER] is associated with that person
['Q17', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q82799 . resource:Q5361982 property:P734 ?o }
Ueda
Ueda is associated with that person
Ueda
action filter_type
action find
entity Shin'ya Ueda
relation family name
type name
['Japan', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:name . resource:Shin'ya_Ueda property:family_name ?o }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q18210630 Q7827815
P734
Q502895
USER
Does Toshiya Ueda have that name as surname ?
(Q7827815,P734,Q18210630)
action is_in
entity Q18210630
action find
entity Q7827815
relation P734
['Q7827815', 'P734', 'Q18210630']
ASK WHERE { resource:Q7827815 property:P734 resource:Q18210630 }
Ueda Toshiya Ueda
action is_in
entity Ueda
action find
entity Toshiya Ueda
relation family name
['Toshiya Ueda', 'family name', 'Ueda']
ASK WHERE { resource:Toshiya_Ueda property:family_name resource:Ueda }
[]
common name
SYSTEM
YES
(Q7827815,P734,Q18210630)
action is_in
entity Q18210630
action find
entity Q7827815
relation P734
[ANSWER]
['Q7827815', 'P734', 'Q18210630']
ASK WHERE { resource:Q7827815 property:P734 resource:Q18210630 }
Yes
action is_in
entity Ueda
action find
entity Toshiya Ueda
relation family name
['Toshiya Ueda', 'family name', 'Ueda']
ASK WHERE { resource:Toshiya_Ueda property:family_name resource:Ueda }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q218
P194
Q701632 Q1752346 Q15617994
USER
Which administrative territories have lesser number of municipal councils and assemblies as their legislative body than Romania ?
(c(Q15617994),P194,c(Q701632)|c(Q1752346))
action less
action union
action find_tuple_counts
relation P194
type Q15617994
type Q701632
action find_tuple_counts
relation P194
type Q15617994
type Q1752346
action count
action filter_multi_types
action find
entity Q218
relation P194
type Q701632
type Q1752346
[{'concept': 'Q15617994'}, 'P194', [{'concept': 'Q701632'}, {'concept': 'Q1752346'}]]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?a ) ?k WHERE { { ?k property:P194 ?d . ?k rdf:type ontology:Q15617994 . ?d rdf:type ontology:Q701632 } UNION { ?k rdf:type ontology:Q15617994 . ?d rdf:type ontology:Q1752346 . ?k property:P194 ?d } } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?i ) WHERE { resource:Q218 property:P194 ?g . { { ?g rdf:type ontology:Q701632 } UNION { ?g rdf:type ontology:Q1752346 } } } } . FILTER ( ?a < ?i ) }
Romania
action less
action union
action find_tuple_counts
relation legislative body
type designation for an administrative territorial entity
type municipal council
action find_tuple_counts
relation legislative body
type designation for an administrative territorial entity
type assembly
action count
action filter_multi_types
action find
entity Romania
relation legislative body
type municipal council
type assembly
[{'concept': 'designation for an administrative territorial entity'}, 'legislative body', [{'concept': 'municipal council'}, {'concept': 'assembly'}]]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?a ) ?k WHERE { { ?k property:legislative_body ?d . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . ?d rdf:type ontology:municipal_council } UNION { ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . ?d rdf:type ontology:assembly . ?k property:legislative_body ?d } } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?i ) WHERE { resource:Romania property:legislative_body ?g . { { ?g rdf:type ontology:municipal_council } UNION { ?g rdf:type ontology:assembly } } } } . FILTER ( ?a < ?i ) }
[]
municipal council assembly designation for an administrative territorial entity
Q30 Q148 Q17
SYSTEM
United States of America, People's Republic of China, Japan
Q805 Q800 Q1462 Q1250 Q1948 Q148 Q189 Q786 Q710 Q252320 Q187035 Q1460 Q3361 Q1979 Q43 Q792 Q779011 Q889 Q884 Q958 Q12574 Q153529 Q12761 Q244 Q1974 Q32 Q31 Q30 Q37 Q1447 Q104192 Q603676 Q1282 Q1284 Q3389 Q236 Q12661 Q1273 Q1279 Q1049 Q2009 Q2007 Q2003 Q1458 Q1904 Q227 Q347 Q17 Q1989 Q902 Q191 Q114 Q212 Q1210 Q917 Q736 Q34020 Q686 Q760 Q574 Q694594 Q1222 Q774 Q948 Q1016 Q27 Q1011 Q1243 Q12620 Q12626 Q672 Q1951 Q2023 Q1237
(c(Q15617994),P194,c(Q701632)|c(Q1752346))
action less
action union
action find_tuple_counts
relation P194
type Q15617994
type Q701632
action find_tuple_counts
relation P194
type Q15617994
type Q1752346
action count
action filter_multi_types
action find
entity Q218
relation P194
type Q701632
type Q1752346
[ANSWERS] have lesser number of municipal councils and assemblies as their legislative body than Romania
[{'concept': 'Q15617994'}, 'P194', [{'concept': 'Q701632'}, {'concept': 'Q1752346'}]]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?a ) ?k WHERE { { ?k property:P194 ?d . ?k rdf:type ontology:Q15617994 . ?d rdf:type ontology:Q701632 } UNION { ?k rdf:type ontology:Q15617994 . ?d rdf:type ontology:Q1752346 . ?k property:P194 ?d } } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?i ) WHERE { resource:Q218 property:P194 ?g . { { ?g rdf:type ontology:Q701632 } UNION { ?g rdf:type ontology:Q1752346 } } } } . FILTER ( ?a < ?i ) }
Yemen Costa Rica Sardinia Friuli–Venezia Giulia Manitoba People's Republic of China Iceland Dominican Republic Kiribati Pleinfeld Principality of Albania Sicily Doubs Prince Edward Island Turkey El Salvador Principality of Montenegro Afghanistan South Korea South Sudan Loiret Duchy of Milan Seine-Saint-Denis Barbados British Columbia Luxembourg Belgium United States of America Lithuania Apulia Kleinmachnow District of Keewatin Lazio Abruzzo Finistère Montenegro Nord Tuscany Marche Sudan Yukon Northwest Territories Newfoundland and Labrador Calabria Ontario Azerbaijan Liechtenstein Japan Saskatchewan Bangladesh Estonia Kenya Ukraine Lombardy Bhutan Ecuador Niue Vanuatu Saint Lucia East Timor Bremen-Verden Aosta Valley Guatemala Tunisia Libya Ireland Cape Verde Veneto Mayenne Meurthe-et-Moselle Tuvalu Alberta Nunavut Trentino-South Tyrol
United States of America, People's Republic of China and Japan have lesser number of municipal councils and assemblies as their legislative body than Romania
United States of America People's Republic of China Japan
action less
action union
action find_tuple_counts
relation legislative body
type designation for an administrative territorial entity
type municipal council
action find_tuple_counts
relation legislative body
type designation for an administrative territorial entity
type assembly
action count
action filter_multi_types
action find
entity Romania
relation legislative body
type municipal council
type assembly
[{'concept': 'designation for an administrative territorial entity'}, 'legislative body', [{'concept': 'municipal council'}, {'concept': 'assembly'}]]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?a ) ?k WHERE { { ?k property:legislative_body ?d . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . ?d rdf:type ontology:municipal_council } UNION { ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . ?d rdf:type ontology:assembly . ?k property:legislative_body ?d } } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?i ) WHERE { resource:Romania property:legislative_body ?g . { { ?g rdf:type ontology:municipal_council } UNION { ?g rdf:type ontology:assembly } } } } . FILTER ( ?a < ?i ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q221
P194
Q701632 Q1752346 Q15617994
USER
And what about Republic of Macedonia?
(c(Q15617994),P194,c(Q701632)|c(Q1752346))
action less
action union
action find_tuple_counts
relation P194
type Q15617994
type Q701632
action find_tuple_counts
relation P194
type Q15617994
type Q1752346
action count
action filter_multi_types
action find
entity Q221
relation P194
type Q701632
type Q1752346
[{'concept': 'Q15617994'}, 'P194', [{'concept': 'Q701632'}, {'concept': 'Q1752346'}]]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?k ) AS ?q ) WHERE { { ?r property:P194 ?k . ?r rdf:type ontology:Q15617994 . ?k rdf:type ontology:Q701632 } UNION { ?r rdf:type ontology:Q15617994 . ?k rdf:type ontology:Q1752346 . ?r property:P194 ?k } } GROUP BY ?r } . FILTER ( ?q < ?b ) . { SELECT DISTINCT ( COUNT ( ?e ) AS ?b ) WHERE { resource:Q221 property:P194 ?e . { ?e rdf:type ?m . VALUES ( ?m ) { ( ontology:Q1752346 ) ( ontology:Q701632 ) } } } } }
Republic of Macedonia
action less
action union
action find_tuple_counts
relation legislative body
type designation for an administrative territorial entity
type municipal council
action find_tuple_counts
relation legislative body
type designation for an administrative territorial entity
type assembly
action count
action filter_multi_types
action find
entity Republic of Macedonia
relation legislative body
type municipal council
type assembly
[{'concept': 'designation for an administrative territorial entity'}, 'legislative body', [{'concept': 'municipal council'}, {'concept': 'assembly'}]]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?k ) AS ?q ) WHERE { { ?r property:legislative_body ?k . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . ?k rdf:type ontology:municipal_council } UNION { ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . ?k rdf:type ontology:assembly . ?r property:legislative_body ?k } } GROUP BY ?r } . FILTER ( ?q < ?b ) . { SELECT DISTINCT ( COUNT ( ?e ) AS ?b ) WHERE { resource:Republic_of_Macedonia property:legislative_body ?e . { ?e rdf:type ?m . VALUES ( ?m ) { ( ontology:assembly ) ( ontology:municipal_council ) } } } } }
[]
municipal council assembly designation for an administrative territorial entity
Q30 Q148 Q17
SYSTEM
United States of America, People's Republic of China, Japan
Q805 Q800 Q1462 Q1250 Q1948 Q148 Q189 Q786 Q710 Q252320 Q187035 Q1460 Q3361 Q1979 Q43 Q792 Q779011 Q889 Q884 Q958 Q12574 Q153529 Q12761 Q244 Q1974 Q32 Q31 Q30 Q37 Q1447 Q104192 Q603676 Q1282 Q1284 Q3389 Q236 Q12661 Q1273 Q1279 Q1049 Q2009 Q2007 Q2003 Q1458 Q1904 Q227 Q347 Q17 Q1989 Q902 Q191 Q114 Q212 Q1210 Q917 Q736 Q34020 Q686 Q760 Q574 Q694594 Q1222 Q774 Q948 Q1016 Q27 Q1011 Q1243 Q12620 Q12626 Q672 Q1951 Q2023 Q1237
(c(Q15617994),P194,c(Q701632)|c(Q1752346))
action less
action union
action find_tuple_counts
relation P194
type Q15617994
type Q701632
action find_tuple_counts
relation P194
type Q15617994
type Q1752346
action count
action filter_multi_types
action find
entity Q221
relation P194
type Q701632
type Q1752346
[ANSWERS]
[{'concept': 'Q15617994'}, 'P194', [{'concept': 'Q701632'}, {'concept': 'Q1752346'}]]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?k ) AS ?q ) WHERE { { ?r property:P194 ?k . ?r rdf:type ontology:Q15617994 . ?k rdf:type ontology:Q701632 } UNION { ?r rdf:type ontology:Q15617994 . ?k rdf:type ontology:Q1752346 . ?r property:P194 ?k } } GROUP BY ?r } . FILTER ( ?q < ?b ) . { SELECT DISTINCT ( COUNT ( ?e ) AS ?b ) WHERE { resource:Q221 property:P194 ?e . { ?e rdf:type ?m . VALUES ( ?m ) { ( ontology:Q1752346 ) ( ontology:Q701632 ) } } } } }
Yemen Costa Rica Sardinia Friuli–Venezia Giulia Manitoba People's Republic of China Iceland Dominican Republic Kiribati Pleinfeld Principality of Albania Sicily Doubs Prince Edward Island Turkey El Salvador Principality of Montenegro Afghanistan South Korea South Sudan Loiret Duchy of Milan Seine-Saint-Denis Barbados British Columbia Luxembourg Belgium United States of America Lithuania Apulia Kleinmachnow District of Keewatin Lazio Abruzzo Finistère Montenegro Nord Tuscany Marche Sudan Yukon Northwest Territories Newfoundland and Labrador Calabria Ontario Azerbaijan Liechtenstein Japan Saskatchewan Bangladesh Estonia Kenya Ukraine Lombardy Bhutan Ecuador Niue Vanuatu Saint Lucia East Timor Bremen-Verden Aosta Valley Guatemala Tunisia Libya Ireland Cape Verde Veneto Mayenne Meurthe-et-Moselle Tuvalu Alberta Nunavut Trentino-South Tyrol
United States of America People's Republic of China Japan
action less
action union
action find_tuple_counts
relation legislative body
type designation for an administrative territorial entity
type municipal council
action find_tuple_counts
relation legislative body
type designation for an administrative territorial entity
type assembly
action count
action filter_multi_types
action find
entity Republic of Macedonia
relation legislative body
type municipal council
type assembly
[{'concept': 'designation for an administrative territorial entity'}, 'legislative body', [{'concept': 'municipal council'}, {'concept': 'assembly'}]]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?k ) AS ?q ) WHERE { { ?r property:legislative_body ?k . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . ?k rdf:type ontology:municipal_council } UNION { ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . ?k rdf:type ontology:assembly . ?r property:legislative_body ?k } } GROUP BY ?r } . FILTER ( ?q < ?b ) . { SELECT DISTINCT ( COUNT ( ?e ) AS ?b ) WHERE { resource:Republic_of_Macedonia property:legislative_body ?e . { ?e rdf:type ?m . VALUES ( ?m ) { ( ontology:assembly ) ( ontology:municipal_council ) } } } } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q1048835 Q15617994
USER
How many political territories holds diplomatic relationship with approximately 99 administrative territories ?
(c(Q15617994),P530,c(Q1048835))
action count
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 99
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?a ) WHERE { FILTER ( ?y = 99 ) . { SELECT DISTINCT ?b ( COUNT ( ?l ) AS ?y ) WHERE { ?b property:P530 ?l . ?b rdf:type ontology:Q1048835 . ?l rdf:type ontology:Q15617994 } GROUP BY ?b } }
action count
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 99
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?a ) WHERE { FILTER ( ?y = 99 ) . { SELECT DISTINCT ?b ( COUNT ( ?l ) AS ?y ) WHERE { ?b property:diplomatic_relation ?l . ?b rdf:type ontology:political_territorial_entity . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?b } }
[]
political territorial entity designation for an administrative territorial entity
SYSTEM
2
Q183 Q408
(c(Q15617994),P530,c(Q1048835))
action count
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 99
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?a ) WHERE { FILTER ( ?y = 99 ) . { SELECT DISTINCT ?b ( COUNT ( ?l ) AS ?y ) WHERE { ?b property:P530 ?l . ?b rdf:type ontology:Q1048835 . ?l rdf:type ontology:Q15617994 } GROUP BY ?b } }
Germany Australia
2
action count
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 99
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?a ) WHERE { FILTER ( ?y = 99 ) . { SELECT DISTINCT ?b ( COUNT ( ?l ) AS ?y ) WHERE { ?b property:diplomatic_relation ?l . ?b rdf:type ontology:political_territorial_entity . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?b } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q77
P37
Q5962346 Q34770 Q15617994
USER
Which administrative territories are approximately the same number of classification schemes and languages the official language of as Uruguay ?
(c(Q15617994),P37,c(Q5962346)|c(Q34770))
action approx
action union
action find_tuple_counts
relation P37
type Q15617994
type Q5962346
action find_tuple_counts
relation P37
type Q15617994
type Q34770
action count
action filter_multi_types
action find
entity Q77
relation P37
type Q5962346
type Q34770
[{'concept': 'Q15617994'}, 'P37', [{'concept': 'Q5962346'}, {'concept': 'Q34770'}]]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?q ) ?b WHERE { ?j rdf:type ?h . VALUES ( ?h ) { ( ontology:Q5962346 ) ( ontology:Q34770 ) } } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?u ) WHERE { resource:Q77 property:P37 ?o . { ?o rdf:type ?n . VALUES ( ?n ) { ( ontology:Q5962346 ) ( ontology:Q34770 ) } } } } . FILTER ( ?q = ?u ) }
Uruguay
action approx
action union
action find_tuple_counts
relation official language
type designation for an administrative territorial entity
type classification scheme
action find_tuple_counts
relation official language
type designation for an administrative territorial entity
type language
action count
action filter_multi_types
action find
entity Uruguay
relation official language
type classification scheme
type language
[{'concept': 'designation for an administrative territorial entity'}, 'official language', [{'concept': 'classification scheme'}, {'concept': 'language'}]]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?q ) ?b WHERE { ?j rdf:type ?h . VALUES ( ?h ) { ( ontology:classification_scheme ) ( ontology:language ) } } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?u ) WHERE { resource:Uruguay property:official_language ?o . { ?o rdf:type ?n . VALUES ( ?n ) { ( ontology:classification_scheme ) ( ontology:language ) } } } } . FILTER ( ?q = ?u ) }
[]
classification scheme language designation for an administrative territorial entity
Q38 Q55 Q953
SYSTEM
Italy, Netherlands, Zambia
Q804 Q399 Q800 Q709 Q668 Q414 Q1948 Q783 Q784 Q493428 Q712 Q710 Q717 Q2003 Q258 Q1979 Q792 Q954 Q953 Q958 Q986 Q241 Q242 Q244 Q1974 Q811 Q53381 Q101526 Q924 Q34 Q928 Q39 Q38 Q739 Q733 Q734 Q55 Q1013 Q795587 Q693658 Q145 Q238 Q20 Q1044 Q1042 Q27 Q1049 Q1020 Q843 Q736 Q786 Q1904 Q96 Q1050 Q1989 Q686312 Q1036 Q1037 Q1033 Q1030 Q963 Q298 Q695 Q114 Q117 Q754 Q213 Q1005 Q833 Q1951 Q1009 Q243220 Q683 Q34020 Q686 Q760 Q77 Q774 Q1014 Q678 Q233 Q672 Q1952 Q2023
(c(Q15617994),P37,c(Q5962346)|c(Q34770))
action approx
action union
action find_tuple_counts
relation P37
type Q15617994
type Q5962346
action find_tuple_counts
relation P37
type Q15617994
type Q34770
action count
action filter_multi_types
action find
entity Q77
relation P37
type Q5962346
type Q34770
[ANSWERS] are approximately the same number of classification schemes and languages the official language of as Uruguay
[{'concept': 'Q15617994'}, 'P37', [{'concept': 'Q5962346'}, {'concept': 'Q34770'}]]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?q ) ?b WHERE { ?j rdf:type ?h . VALUES ( ?h ) { ( ontology:Q5962346 ) ( ontology:Q34770 ) } } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?u ) WHERE { resource:Q77 property:P37 ?o . { ?o rdf:type ?n . VALUES ( ?n ) { ( ontology:Q5962346 ) ( ontology:Q34770 ) } } } } . FILTER ( ?q = ?u ) }
Panama Armenia Costa Rica Marshall Islands India Argentina Manitoba Honduras Dominica Mistretta Fiji Kiribati Venezuela Newfoundland and Labrador South Africa Prince Edward Island El Salvador Zimbabwe Zambia South Sudan Eritrea Cuba Belize Barbados British Columbia Nicaragua Tolmezzo Rovetta Tanzania Sweden Philippines Switzerland Italy Colombia Paraguay Guyana Netherlands Lesotho Escuintla Izabal Department United Kingdom San Marino Norway Sierra Leone Seychelles Ireland Sudan Malawi Pakistan Ecuador Dominican Republic Ontario Mexico Swaziland Saskatchewan Duchy of Amalfi Uganda Rwanda Nigeria Namibia Botswana Chile Palau Kenya Ghana Trinidad and Tobago Czech Republic Gambia Malaysia Alberta Cameroon Rocca di Cave Samoa Niue Vanuatu Saint Lucia Uruguay Guatemala Liberia Tonga Malta Tuvalu Nova Scotia Nunavut
Italy, Netherlands and Zambia are approximately the same number of classification schemes and languages the official language of as Uruguay
Italy Netherlands Zambia
action approx
action union
action find_tuple_counts
relation official language
type designation for an administrative territorial entity
type classification scheme
action find_tuple_counts
relation official language
type designation for an administrative territorial entity
type language
action count
action filter_multi_types
action find
entity Uruguay
relation official language
type classification scheme
type language
[{'concept': 'designation for an administrative territorial entity'}, 'official language', [{'concept': 'classification scheme'}, {'concept': 'language'}]]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?q ) ?b WHERE { ?j rdf:type ?h . VALUES ( ?h ) { ( ontology:classification_scheme ) ( ontology:language ) } } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?u ) WHERE { resource:Uruguay property:official_language ?o . { ?o rdf:type ?n . VALUES ( ?n ) { ( ontology:classification_scheme ) ( ontology:language ) } } } } . FILTER ( ?q = ?u ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q223
P37
Q5962346 Q34770 Q15617994
USER
And how about Greenland?
(c(Q15617994),P37,c(Q5962346)|c(Q34770))
action approx
action union
action find_tuple_counts
relation P37
type Q15617994
type Q5962346
action find_tuple_counts
relation P37
type Q15617994
type Q34770
action count
action filter_multi_types
action find
entity Q223
relation P37
type Q5962346
type Q34770
[{'concept': 'Q15617994'}, 'P37', [{'concept': 'Q5962346'}, {'concept': 'Q34770'}]]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?k ) AS ?q ) WHERE { { ?i property:P37 ?k . ?i rdf:type ontology:Q15617994 . ?k rdf:type ontology:Q5962346 } UNION { ?i property:P37 ?k . ?i rdf:type ontology:Q15617994 . ?k rdf:type ontology:Q34770 } } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?y ) WHERE { resource:Q223 property:P37 ?f . { ?f rdf:type ?p . VALUES ( ?p ) { ( ontology:Q34770 ) ( ontology:Q5962346 ) } } } } . FILTER ( ?q = ?y ) }
Greenland
action approx
action union
action find_tuple_counts
relation official language
type designation for an administrative territorial entity
type classification scheme
action find_tuple_counts
relation official language
type designation for an administrative territorial entity
type language
action count
action filter_multi_types
action find
entity Greenland
relation official language
type classification scheme
type language
[{'concept': 'designation for an administrative territorial entity'}, 'official language', [{'concept': 'classification scheme'}, {'concept': 'language'}]]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?k ) AS ?q ) WHERE { { ?i property:official_language ?k . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . ?k rdf:type ontology:classification_scheme } UNION { ?i property:official_language ?k . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . ?k rdf:type ontology:language } } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?y ) WHERE { resource:Greenland property:official_language ?f . { ?f rdf:type ?p . VALUES ( ?p ) { ( ontology:language ) ( ontology:classification_scheme ) } } } } . FILTER ( ?q = ?y ) }
[]
classification scheme language designation for an administrative territorial entity
Q155 Q30 Q230
SYSTEM
Brazil, United States of America, Georgia
Q805 Q801 Q473259 Q398 Q142 Q1039 Q21671144 Q32 Q12536 Q262 Q148 Q265 Q30 Q37 Q16006 Q711 Q837 Q252 Q2068764 Q21850324 Q403 Q657 Q45 Q159 Q43 Q41 Q155 Q673813 Q790 Q4628 Q796 Q794 Q669945 Q884 Q881 Q503181 Q219 Q826 Q247613 Q603392 Q33 Q921 Q31 Q36 Q929 Q165934 Q423 Q889 Q851 Q29999 Q854 Q819 Q253445 Q424 Q730 Q236 Q230 Q232 Q1045 Q1041 Q28 Q21853467 Q189 Q842 Q184 Q1029 Q1028 Q228 Q227 Q225 Q224 Q223 Q222 Q221 Q229 Q347 Q17 Q10957559 Q902 Q974 Q1032 Q191 Q965 Q967 Q962 Q697 Q115 Q59118 Q212 Q211 Q217 Q214 Q215 Q218 Q160307 Q1483510 Q912 Q917 Q916 Q1007 Q1006 Q977 Q1008 Q971 Q970 Q836 Q574 Q637451 Q874 Q3365904 Q79 Q858 Q199688 Q878 Q948 Q817 Q810 Q770 Q813 Q1016 Q1011 Q945 Q8575586 Q21848848 Q176 Q61698 Q822 Q863 Q869 Q1230929
(c(Q15617994),P37,c(Q5962346)|c(Q34770))
action approx
action union
action find_tuple_counts
relation P37
type Q15617994
type Q5962346
action find_tuple_counts
relation P37
type Q15617994
type Q34770
action count
action filter_multi_types
action find
entity Q223
relation P37
type Q5962346
type Q34770
[ANSWERS]
[{'concept': 'Q15617994'}, 'P37', [{'concept': 'Q5962346'}, {'concept': 'Q34770'}]]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?k ) AS ?q ) WHERE { { ?i property:P37 ?k . ?i rdf:type ontology:Q15617994 . ?k rdf:type ontology:Q5962346 } UNION { ?i property:P37 ?k . ?i rdf:type ontology:Q15617994 . ?k rdf:type ontology:Q34770 } } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?y ) WHERE { resource:Q223 property:P37 ?f . { ?f rdf:type ?p . VALUES ( ?p ) { ( ontology:Q34770 ) ( ontology:Q5962346 ) } } } } . FILTER ( ?q = ?y ) }
Yemen Israel Ammerthal Bahrain France Sao Tomé and Príncipe Mezhetchina Luxembourg Abbasid caliphate Algeria People's Republic of China Uzbekistan United States of America Lithuania Goch Mongolia Nepal Indonesia Archa Darugha Gireyevo Serbia Chad Portugal Russia Turkey Greece Brazil Euratsfeld Haiti Faroe Islands Iraq Iran Vorau South Korea Vietnam Herzberg am Harz Bulgaria Maldives Bernese Jura Schönwalde Finland Brunei Belgium Poland Central African Republic Bokensdorf North Korea Afghanistan Saudi Arabia Kingdom of the Netherlands Sri Lanka Laos Kolbermoor Cambodia Suriname Montenegro Georgia Kazakhstan Somalia Senegal Hungary Romanovo Iceland Oman Belarus Mozambique Morocco Andorra Azerbaijan Bosnia and Herzegovina Croatia Greenland Albania Republic of Macedonia Cyprus Liechtenstein Japan Moldavia Bangladesh Democratic Republic of the Congo Niger Estonia Burkina Faso Burundi Benin Nauru Ethiopia Aappilattoq Ukraine Latvia Republic of Moldova Slovakia Slovenia Romania Fatimid caliphate Principality of Wales Mali Bhutan Angola Guinea-Bissau Guinea Djibouti Côte d'Ivoire Republic of the Congo Comoros Myanmar East Timor Rohrbach Turkmenistan Saint-Léonard Parish, New Brunswick Egypt Syria Almohad United Arab Emirates Tunisia Kuwait Jordan Friesland Kyrgyzstan Libya Cape Verde Togo Umayyad Caliphate Lyskovo Quebec Büsingen Lebanon Tajikistan Thailand Kesklinn
Brazil United States of America Georgia
action approx
action union
action find_tuple_counts
relation official language
type designation for an administrative territorial entity
type classification scheme
action find_tuple_counts
relation official language
type designation for an administrative territorial entity
type language
action count
action filter_multi_types
action find
entity Greenland
relation official language
type classification scheme
type language
[{'concept': 'designation for an administrative territorial entity'}, 'official language', [{'concept': 'classification scheme'}, {'concept': 'language'}]]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?k ) AS ?q ) WHERE { { ?i property:official_language ?k . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . ?k rdf:type ontology:classification_scheme } UNION { ?i property:official_language ?k . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . ?k rdf:type ontology:language } } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?y ) WHERE { resource:Greenland property:official_language ?f . { ?f rdf:type ?p . VALUES ( ?p ) { ( ontology:language ) ( ontology:classification_scheme ) } } } } . FILTER ( ?q = ?y ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q17
P530
Q15617994 Q1048835
USER
How many administrative territories or political territories holds diplomatic relationship with Japan ?
(Q17,P530,c(Q15617994)) (Q17,P530,c(Q1048835))
action count
action union
action filter_type
action find
entity Q17
relation P530
type Q15617994
action filter_type
action find
entity Q17
relation P530
type Q1048835
['Q17', 'P530', {'concept': 'Q15617994'}] ['Q17', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?h ) WHERE { { resource:Q17 property:P530 ?r . ?r rdf:type ontology:Q1048835 } UNION { resource:Q17 property:P530 ?r . ?r rdf:type ontology:Q15617994 } }
Japan
action count
action union
action filter_type
action find
entity Japan
relation diplomatic relation
type designation for an administrative territorial entity
action filter_type
action find
entity Japan
relation diplomatic relation
type political territorial entity
['Japan', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['Japan', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?h ) WHERE { { resource:Japan property:diplomatic_relation ?r . ?r rdf:type ontology:political_territorial_entity } UNION { resource:Japan property:diplomatic_relation ?r . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity } }
[]
designation for an administrative territorial entity political territorial entity
SYSTEM
13
Q227 Q142 Q711 Q884 Q159 Q801 Q145 Q155 Q183 Q408 Q30 Q869 Q38
(Q17,P530,c(Q15617994)) (Q17,P530,c(Q1048835))
action count
action union
action filter_type
action find
entity Q17
relation P530
type Q15617994
action filter_type
action find
entity Q17
relation P530
type Q1048835
[ANSWER]
['Q17', 'P530', {'concept': 'Q15617994'}] ['Q17', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?h ) WHERE { { resource:Q17 property:P530 ?r . ?r rdf:type ontology:Q1048835 } UNION { resource:Q17 property:P530 ?r . ?r rdf:type ontology:Q15617994 } }
Azerbaijan France Mongolia South Korea Russia Israel United Kingdom Brazil Germany Australia United States of America Thailand Italy
13
action count
action union
action filter_type
action find
entity Japan
relation diplomatic relation
type designation for an administrative territorial entity
action filter_type
action find
entity Japan
relation diplomatic relation
type political territorial entity
['Japan', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['Japan', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?h ) WHERE { { resource:Japan property:diplomatic_relation ?r . ?r rdf:type ontology:political_territorial_entity } UNION { resource:Japan property:diplomatic_relation ?r . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q17
P1001
Q783794 Q2712963
USER
How many companies and abstract nouns have jurisdiction over Japan ?
(c(Q783794),P1001,Q17) (c(Q2712963),P1001,Q17)
action count
action union
action filter_type
action find_reverse
entity Q17
relation P1001
type Q783794
action filter_type
action find_reverse
entity Q17
relation P1001
type Q2712963
[{'concept': 'Q783794'}, 'P1001', 'Q17'] [{'concept': 'Q2712963'}, 'P1001', 'Q17']
SELECT DISTINCT ( COUNT ( ?g ) AS ?p ) WHERE { { ?g property:P1001 resource:Q17 . ?g rdf:type ontology:Q783794 } UNION { ?g property:P1001 resource:Q17 . ?g rdf:type ontology:Q2712963 } }
Japan
action count
action union
action filter_type
action find_reverse
entity Japan
relation applies to jurisdiction
type company
action filter_type
action find_reverse
entity Japan
relation applies to jurisdiction
type abstract noun
[{'concept': 'company'}, 'applies to jurisdiction', 'Japan'] [{'concept': 'abstract noun'}, 'applies to jurisdiction', 'Japan']
SELECT DISTINCT ( COUNT ( ?g ) AS ?p ) WHERE { { ?g property:applies_to_jurisdiction resource:Japan . ?g rdf:type ontology:company } UNION { ?g property:applies_to_jurisdiction resource:Japan . ?g rdf:type ontology:abstract_noun } }
[]
company abstract noun
SYSTEM
1 companies and 5 abstract nouns
Q11570859 Q19753703 Q1562410 Q17000076 Q11571013 Q1480166
(c(Q783794),P1001,Q17) (c(Q2712963),P1001,Q17)
action count
action union
action filter_type
action find_reverse
entity Q17
relation P1001
type Q783794
action filter_type
action find_reverse
entity Q17
relation P1001
type Q2712963
[ANSWER]
[{'concept': 'Q783794'}, 'P1001', 'Q17'] [{'concept': 'Q2712963'}, 'P1001', 'Q17']
SELECT DISTINCT ( COUNT ( ?g ) AS ?p ) WHERE { { ?g property:P1001 resource:Q17 . ?g rdf:type ontology:Q783794 } UNION { ?g property:P1001 resource:Q17 . ?g rdf:type ontology:Q2712963 } }
special public interest promotion corporation National Research and Development Agency gōdō gaisha Gōshi gaisha tokushu hōjin kabushiki gaisha
1 companies and 5 abstract nouns
action count
action union
action filter_type
action find_reverse
entity Japan
relation applies to jurisdiction
type company
action filter_type
action find_reverse
entity Japan
relation applies to jurisdiction
type abstract noun
[{'concept': 'company'}, 'applies to jurisdiction', 'Japan'] [{'concept': 'abstract noun'}, 'applies to jurisdiction', 'Japan']
SELECT DISTINCT ( COUNT ( ?g ) AS ?p ) WHERE { { ?g property:applies_to_jurisdiction resource:Japan . ?g rdf:type ontology:company } UNION { ?g property:applies_to_jurisdiction resource:Japan . ?g rdf:type ontology:abstract_noun } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P180
Q15617994 Q11060274 Q340169
USER
How many administrative territories are depicted in exactly 1 prints or medias ?
(c(Q11060274)|c(Q340169),P180,c(Q15617994))
action count
action equal
action union
action find_reverse_tuple_counts
relation P180
type Q15617994
type Q11060274
action find_reverse_tuple_counts
relation P180
type Q15617994
type Q340169
value 1
[[{'concept': 'Q11060274'}, {'concept': 'Q340169'}], 'P180', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?b ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?v ) AS ?t ) WHERE { { ?v property:P180 ?n . ?n rdf:type ontology:Q15617994 . ?v rdf:type ontology:Q340169 } UNION { ?v property:P180 ?n . ?n rdf:type ontology:Q15617994 . ?v rdf:type ontology:Q11060274 } } GROUP BY ?n } . FILTER ( ?t = 1 ) }
action count
action equal
action union
action find_reverse_tuple_counts
relation depicts
type designation for an administrative territorial entity
type print
action find_reverse_tuple_counts
relation depicts
type designation for an administrative territorial entity
type media
value 1
[[{'concept': 'print'}, {'concept': 'media'}], 'depicts', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?b ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?v ) AS ?t ) WHERE { { ?v property:depicts ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . ?v rdf:type ontology:media } UNION { ?v property:depicts ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . ?v rdf:type ontology:print } } GROUP BY ?n } . FILTER ( ?t = 1 ) }
[]
designation for an administrative territorial entity print media
SYSTEM
8
Q674904 Q145 Q47505 Q131596 Q17 Q13320 Q376896 Q34876
(c(Q11060274)|c(Q340169),P180,c(Q15617994))
action count
action equal
action union
action find_reverse_tuple_counts
relation P180
type Q15617994
type Q11060274
action find_reverse_tuple_counts
relation P180
type Q15617994
type Q340169
value 1
[ANSWER]
[[{'concept': 'Q11060274'}, {'concept': 'Q340169'}], 'P180', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?b ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?v ) AS ?t ) WHERE { { ?v property:P180 ?n . ?n rdf:type ontology:Q15617994 . ?v rdf:type ontology:Q340169 } UNION { ?v property:P180 ?n . ?n rdf:type ontology:Q15617994 . ?v rdf:type ontology:Q11060274 } } GROUP BY ?n } . FILTER ( ?t = 1 ) }
Krumau am Kamp United Kingdom Dolo farm Japan Savona Grenelle province
8
action count
action equal
action union
action find_reverse_tuple_counts
relation depicts
type designation for an administrative territorial entity
type print
action find_reverse_tuple_counts
relation depicts
type designation for an administrative territorial entity
type media
value 1
[[{'concept': 'print'}, {'concept': 'media'}], 'depicts', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?b ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?v ) AS ?t ) WHERE { { ?v property:depicts ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . ?v rdf:type ontology:media } UNION { ?v property:depicts ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . ?v rdf:type ontology:print } } GROUP BY ?n } . FILTER ( ?t = 1 ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q15222787 Q5361982
P106
Q12737077
USER
Which occupations are the professions of Shin'ya Ueda or Louise Breling ?
OR((Q5361982,P106,c(Q12737077)), (Q15222787,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q5361982
relation P106
action find
entity Q15222787
relation P106
type Q12737077
{'OR': [['Q5361982', 'P106', {'concept': 'Q12737077'}], ['Q15222787', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?i WHERE { { { resource:Q15222787 property:P106 ?i } UNION { resource:Q5361982 property:P106 ?i } } . ?i rdf:type ontology:Q12737077 }
Louise Breling Shin'ya Ueda
action filter_type
action union
action find
entity Shin'ya Ueda
relation occupation
action find
entity Louise Breling
relation occupation
type occupation
{'OR': [["Shin'ya Ueda", 'occupation', {'concept': 'occupation'}], ['Louise Breling', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?i WHERE { { { resource:Louise_Breling property:occupation ?i } UNION { resource:Shin'ya_Ueda property:occupation ?i } } . ?i rdf:type ontology:occupation }
[]
occupation
Q1028181 Q33999 Q12330954 Q177220
SYSTEM
painter, actor, owarai tarento, singer
Q1028181 Q33999 Q12330954 Q177220
OR((Q5361982,P106,c(Q12737077)), (Q15222787,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q5361982
relation P106
action find
entity Q15222787
relation P106
type Q12737077
As [ANSWERS] are the professions of Shin'ya Ueda or Louise Breling
{'OR': [['Q5361982', 'P106', {'concept': 'Q12737077'}], ['Q15222787', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?i WHERE { { { resource:Q15222787 property:P106 ?i } UNION { resource:Q5361982 property:P106 ?i } } . ?i rdf:type ontology:Q12737077 }
painter actor owarai tarento singer
As painter, actor, owarai tarento and singer are the professions of Shin'ya Ueda or Louise Breling
painter actor owarai tarento singer
action filter_type
action union
action find
entity Shin'ya Ueda
relation occupation
action find
entity Louise Breling
relation occupation
type occupation
{'OR': [["Shin'ya Ueda", 'occupation', {'concept': 'occupation'}], ['Louise Breling', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?i WHERE { { { resource:Louise_Breling property:occupation ?i } UNION { resource:Shin'ya_Ueda property:occupation ?i } } . ?i rdf:type ontology:occupation }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q10365281 Q5361982
P106
Q12737077
USER
Which occupations do Shin'ya Ueda or Rui Manuel Cochicho Saramago do for a living ?
OR((Q5361982,P106,c(Q12737077)), (Q10365281,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q5361982
relation P106
action find
entity Q10365281
relation P106
type Q12737077
{'OR': [['Q5361982', 'P106', {'concept': 'Q12737077'}], ['Q10365281', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?m WHERE { { ?i property:P106 ?m . VALUES ( ?i ) { ( resource:Q5361982 ) ( resource:Q10365281 ) } } . ?m rdf:type ontology:Q12737077 }
Rui Manuel Cochicho Saramago Shin'ya Ueda
action filter_type
action union
action find
entity Shin'ya Ueda
relation occupation
action find
entity Rui Manuel Cochicho Saramago
relation occupation
type occupation
{'OR': [["Shin'ya Ueda", 'occupation', {'concept': 'occupation'}], ['Rui Manuel Cochicho Saramago', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?m WHERE { { ?i property:occupation ?m . VALUES ( ?i ) { ( resource:Shin'ya_Ueda ) ( resource:Rui_Manuel_Cochicho_Saramago ) } } . ?m rdf:type ontology:occupation }
[]
occupation
Q33999 Q12330954 Q937857
SYSTEM
actor, owarai tarento, association football player
Q33999 Q12330954 Q937857
OR((Q5361982,P106,c(Q12737077)), (Q10365281,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q5361982
relation P106
action find
entity Q10365281
relation P106
type Q12737077
[ANSWERS] Shin'ya Ueda or Rui Manuel Cochicho Saramago do for a living
{'OR': [['Q5361982', 'P106', {'concept': 'Q12737077'}], ['Q10365281', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?m WHERE { { ?i property:P106 ?m . VALUES ( ?i ) { ( resource:Q5361982 ) ( resource:Q10365281 ) } } . ?m rdf:type ontology:Q12737077 }
actor owarai tarento association football player
Actor, owarai tarento and association football player Shin'ya Ueda or Rui Manuel Cochicho Saramago do for a living
actor owarai tarento association football player
action filter_type
action union
action find
entity Shin'ya Ueda
relation occupation
action find
entity Rui Manuel Cochicho Saramago
relation occupation
type occupation
{'OR': [["Shin'ya Ueda", 'occupation', {'concept': 'occupation'}], ['Rui Manuel Cochicho Saramago', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?m WHERE { { ?i property:occupation ?m . VALUES ( ?i ) { ( resource:Shin'ya_Ueda ) ( resource:Rui_Manuel_Cochicho_Saramago ) } } . ?m rdf:type ontology:occupation }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P921
Q12737077 Q2342494 Q838948
USER
How many occupations were around 27 collectables or works of art mainly about ?
(c(Q2342494)|c(Q838948),P921,c(Q12737077))
action count
action approx
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q2342494
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q838948
value 27
[[{'concept': 'Q2342494'}, {'concept': 'Q838948'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?d ) WHERE { FILTER ( ?i = 27 ) . { SELECT DISTINCT ( COUNT ( ?t ) AS ?i ) ?v WHERE { { ?t property:P921 ?v . ?v rdf:type ontology:Q12737077 . ?t rdf:type ontology:Q2342494 } UNION { ?t property:P921 ?v . ?v rdf:type ontology:Q12737077 . ?t rdf:type ontology:Q838948 } } GROUP BY ?v } }
action count
action approx
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type collectable
action find_reverse_tuple_counts
relation main subject
type occupation
type work of art
value 27
[[{'concept': 'collectable'}, {'concept': 'work of art'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?d ) WHERE { FILTER ( ?i = 27 ) . { SELECT DISTINCT ( COUNT ( ?t ) AS ?i ) ?v WHERE { { ?t property:main_subject ?v . ?v rdf:type ontology:occupation . ?t rdf:type ontology:collectable } UNION { ?t property:main_subject ?v . ?v rdf:type ontology:occupation . ?t rdf:type ontology:work_of_art } } GROUP BY ?v } }
[]
occupation collectable work of art
SYSTEM
3
Q164236 Q16746569 Q33231
(c(Q2342494)|c(Q838948),P921,c(Q12737077))
action count
action approx
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q2342494
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q838948
value 27
[ANSWER]
[[{'concept': 'Q2342494'}, {'concept': 'Q838948'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?d ) WHERE { FILTER ( ?i = 27 ) . { SELECT DISTINCT ( COUNT ( ?t ) AS ?i ) ?v WHERE { { ?t property:P921 ?v . ?v rdf:type ontology:Q12737077 . ?t rdf:type ontology:Q2342494 } UNION { ?t property:P921 ?v . ?v rdf:type ontology:Q12737077 . ?t rdf:type ontology:Q838948 } } GROUP BY ?v } }
war correspondent high school student photographer
3
action count
action approx
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type collectable
action find_reverse_tuple_counts
relation main subject
type occupation
type work of art
value 27
[[{'concept': 'collectable'}, {'concept': 'work of art'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?d ) WHERE { FILTER ( ?i = 27 ) . { SELECT DISTINCT ( COUNT ( ?t ) AS ?i ) ?v WHERE { { ?t property:main_subject ?v . ?v rdf:type ontology:occupation . ?t rdf:type ontology:collectable } UNION { ?t property:main_subject ?v . ?v rdf:type ontology:occupation . ?t rdf:type ontology:work_of_art } } GROUP BY ?v } }
[]