Simple Question (Direct)
Simple Question
Q514497
P25
Q502895
USER
Who was the mother of Ursula Graham Bower ?
(Q514497,P25,c(Q502895))
action filter_type
action find
entity Q514497
relation P25
type Q502895
['Q514497', 'P25', {'concept': 'Q502895'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q502895 . resource:Q514497 property:P25 ?w }
Ursula Graham Bower
action filter_type
action find
entity Ursula Graham Bower
relation mother
type common name
['Ursula Graham Bower', 'mother', {'concept': 'common name'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:common_name . resource:Ursula_Graham_Bower property:mother ?w }
[]
common name
Q117345
SYSTEM
Barbara Euphan Todd
Q117345
(Q514497,P25,c(Q502895))
action filter_type
action find
entity Q514497
relation P25
type Q502895
The mother of Ursula Graham Bower was named [ANSWER]
['Q514497', 'P25', {'concept': 'Q502895'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q502895 . resource:Q514497 property:P25 ?w }
Barbara Euphan Todd
The mother of Ursula Graham Bower was named Barbara Euphan Todd
Barbara Euphan Todd
action filter_type
action find
entity Ursula Graham Bower
relation mother
type common name
['Ursula Graham Bower', 'mother', {'concept': 'common name'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:common_name . resource:Ursula_Graham_Bower property:mother ?w }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q117345
P27
Q15617994
USER
Which administrative territory is the country of citizenship of that person ?
(Q117345,P27,c(Q15617994))
action filter_type
action find
entity Q117345
relation P27
type Q15617994
['Q117345', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?l WHERE { resource:Q117345 property:P27 ?l . ?l rdf:type ontology:Q15617994 }
Barbara Euphan Todd
action filter_type
action find
entity Barbara Euphan Todd
relation country of citizenship
type designation for an administrative territorial entity
['Barbara Euphan Todd', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { resource:Barbara_Euphan_Todd property:country_of_citizenship ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q145
SYSTEM
United Kingdom
Q145
(Q117345,P27,c(Q15617994))
action filter_type
action find
entity Q117345
relation P27
type Q15617994
[ANSWER] is the country of citizenship of that person
['Q117345', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?l WHERE { resource:Q117345 property:P27 ?l . ?l rdf:type ontology:Q15617994 }
United Kingdom
United Kingdom is the country of citizenship of that person
United Kingdom
action filter_type
action find
entity Barbara Euphan Todd
relation country of citizenship
type designation for an administrative territorial entity
['Barbara Euphan Todd', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { resource:Barbara_Euphan_Todd property:country_of_citizenship ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q145
P6
Q502895
USER
Which people have that administrative territory as their heads of government ?
(Q145,P6,c(Q502895))
action filter_type
action find
entity Q145
relation P6
type Q502895
['Q145', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?v WHERE { resource:Q145 property:P6 ?v . ?v rdf:type ontology:Q502895 }
United Kingdom
action filter_type
action find
entity United Kingdom
relation head of government
type common name
['United Kingdom', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?v WHERE { resource:United_Kingdom property:head_of_government ?v . ?v rdf:type ontology:common_name }
[]
common name
Q192 Q264766
SYSTEM
David Cameron, Theresa May
Q192 Q264766
(Q145,P6,c(Q502895))
action filter_type
action find
entity Q145
relation P6
type Q502895
[ANSWERS] have that administrative territory as their heads of government
['Q145', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?v WHERE { resource:Q145 property:P6 ?v . ?v rdf:type ontology:Q502895 }
David Cameron Theresa May
David Cameron and Theresa May have that administrative territory as their heads of government
David Cameron Theresa May
action filter_type
action find
entity United Kingdom
relation head of government
type common name
['United Kingdom', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?v WHERE { resource:United_Kingdom property:head_of_government ?v . ?v rdf:type ontology:common_name }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P725
Q502895 Q11424
USER
Which films did min number of people dub for ?
(c(Q11424),P725,c(Q502895))
action argmin
action find_tuple_counts
relation P725
type Q11424
type Q502895
[{'concept': 'Q11424'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?p ) AS ?o ) WHERE { ?f property:P725 ?p . ?f rdf:type ontology:Q11424 . ?p rdf:type ontology:Q502895 } GROUP BY ?f } . FILTER ( ?o = ?z ) . { SELECT DISTINCT ( MIN ( ?b ) AS ?z ) { SELECT DISTINCT ?r ( COUNT ( ?x ) AS ?b ) WHERE { ?r rdf:type ontology:Q11424 . ?x rdf:type ontology:Q502895 . ?r property:P725 ?x } GROUP BY ?r } } }
action argmin
action find_tuple_counts
relation voice actor
type film
type common name
[{'concept': 'film'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?p ) AS ?o ) WHERE { ?f property:voice_actor ?p . ?f rdf:type ontology:film . ?p rdf:type ontology:common_name } GROUP BY ?f } . FILTER ( ?o = ?z ) . { SELECT DISTINCT ( MIN ( ?b ) AS ?z ) { SELECT DISTINCT ?r ( COUNT ( ?x ) AS ?b ) WHERE { ?r rdf:type ontology:film . ?x rdf:type ontology:common_name . ?r property:voice_actor ?x } GROUP BY ?r } } }
[]
common name film
Q943192
SYSTEM
Fantasia
Q943192
(c(Q11424),P725,c(Q502895))
action argmin
action find_tuple_counts
relation P725
type Q11424
type Q502895
Min number of people dubbed [ANSWER]
[{'concept': 'Q11424'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?p ) AS ?o ) WHERE { ?f property:P725 ?p . ?f rdf:type ontology:Q11424 . ?p rdf:type ontology:Q502895 } GROUP BY ?f } . FILTER ( ?o = ?z ) . { SELECT DISTINCT ( MIN ( ?b ) AS ?z ) { SELECT DISTINCT ?r ( COUNT ( ?x ) AS ?b ) WHERE { ?r rdf:type ontology:Q11424 . ?x rdf:type ontology:Q502895 . ?r property:P725 ?x } GROUP BY ?r } } }
Fantasia
Min number of people dubbed Fantasia
Fantasia
action argmin
action find_tuple_counts
relation voice actor
type film
type common name
[{'concept': 'film'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?p ) AS ?o ) WHERE { ?f property:voice_actor ?p . ?f rdf:type ontology:film . ?p rdf:type ontology:common_name } GROUP BY ?f } . FILTER ( ?o = ?z ) . { SELECT DISTINCT ( MIN ( ?b ) AS ?z ) { SELECT DISTINCT ?r ( COUNT ( ?x ) AS ?b ) WHERE { ?r rdf:type ontology:film . ?x rdf:type ontology:common_name . ?r property:voice_actor ?x } GROUP BY ?r } } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q145
P463
Q43229 Q484652
USER
How many organizations and international organizations had United Kingdom as their member ?
(Q145,P463,c(Q43229)) (Q145,P463,c(Q484652))
action count
action union
action filter_type
action find
entity Q145
relation P463
type Q43229
action filter_type
action find
entity Q145
relation P463
type Q484652
['Q145', 'P463', {'concept': 'Q43229'}] ['Q145', 'P463', {'concept': 'Q484652'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?a ) WHERE { ?o rdf:type ?q . VALUES ( ?q ) { ( ontology:Q43229 ) ( ontology:Q484652 ) } }
United Kingdom
action count
action union
action filter_type
action find
entity United Kingdom
relation member of
type organization
action filter_type
action find
entity United Kingdom
relation member of
type international organization
['United Kingdom', 'member of', {'concept': 'organization'}] ['United Kingdom', 'member of', {'concept': 'international organization'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?a ) WHERE { ?o rdf:type ?q . VALUES ( ?q ) { ( ontology:organization ) ( ontology:international_organization ) } }
[]
organization international organization
SYSTEM
9 organizations and 9 international organizations
Q340195 Q81299 Q37143 Q191384 Q899770 Q19771 Q7785 Q41550 Q3772571 Q188822 Q656801 Q151991 Q7825 Q1043527 Q7184 Q42262 Q1065 Q827525
(Q145,P463,c(Q43229)) (Q145,P463,c(Q484652))
action count
action union
action filter_type
action find
entity Q145
relation P463
type Q43229
action filter_type
action find
entity Q145
relation P463
type Q484652
[ANSWER]
['Q145', 'P463', {'concept': 'Q43229'}] ['Q145', 'P463', {'concept': 'Q484652'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?a ) WHERE { ?o rdf:type ?q . VALUES ( ?q ) { ( ontology:Q43229 ) ( ontology:Q484652 ) } }
African Development Bank Organization for Security and Co-operation in Europe G8 International Bank for Reconstruction and Development International Centre for Settlement of Investment Disputes G20 Commonwealth of Nations Organisation for Economic Co-operation and Development Caribbean Development Bank Asian Development Bank International Finance Corporation European Southern Observatory World Trade Organization Multilateral Investment Guarantee Agency North Atlantic Treaty Organisation European Space Agency United Nations International Development Association
9 organizations and 9 international organizations
action count
action union
action filter_type
action find
entity United Kingdom
relation member of
type organization
action filter_type
action find
entity United Kingdom
relation member of
type international organization
['United Kingdom', 'member of', {'concept': 'organization'}] ['United Kingdom', 'member of', {'concept': 'international organization'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?a ) WHERE { ?o rdf:type ?q . VALUES ( ?q ) { ( ontology:organization ) ( ontology:international_organization ) } }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P608
Q464980 Q2668072 Q502895
USER
Which people were presented at min number of exhibitions and collections ?
(c(Q502895),P608,c(Q464980)|c(Q2668072))
action argmin
action union
action find_tuple_counts
relation P608
type Q502895
type Q464980
action find_tuple_counts
relation P608
type Q502895
type Q2668072
[{'concept': 'Q502895'}, 'P608', [{'concept': 'Q464980'}, {'concept': 'Q2668072'}]]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( MIN ( ?x ) AS ?l ) { SELECT DISTINCT ?m ( COUNT ( ?w ) AS ?x ) WHERE { VALUES ( ?y ) { ( ontology:Q464980 ) ( ontology:Q2668072 ) } . ?w rdf:type ?y } GROUP BY ?m } } . { SELECT DISTINCT ?i ( COUNT ( ?j ) AS ?t ) WHERE { ?j rdf:type ?f . VALUES ( ?f ) { ( ontology:Q464980 ) ( ontology:Q2668072 ) } } GROUP BY ?i } . FILTER ( ?t = ?l ) }
action argmin
action union
action find_tuple_counts
relation exhibition history
type common name
type exhibition
action find_tuple_counts
relation exhibition history
type common name
type collection
[{'concept': 'common name'}, 'exhibition history', [{'concept': 'exhibition'}, {'concept': 'collection'}]]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( MIN ( ?x ) AS ?l ) { SELECT DISTINCT ?m ( COUNT ( ?w ) AS ?x ) WHERE { VALUES ( ?y ) { ( ontology:exhibition ) ( ontology:collection ) } . ?w rdf:type ?y } GROUP BY ?m } } . { SELECT DISTINCT ?i ( COUNT ( ?j ) AS ?t ) WHERE { ?j rdf:type ?f . VALUES ( ?f ) { ( ontology:exhibition ) ( ontology:collection ) } } GROUP BY ?i } . FILTER ( ?t = ?l ) }
[]
exhibition collection common name
Q5040332 Q55192 Q17455385
SYSTEM
Carl Holty, Gertrude Abercrombie, Jerry Cooke
Q17455385 Q6196481 Q4945678 Q16004451 Q4648360 Q7649008 Q16858002 Q6990118 Q16062545 Q16005428 Q27505608 Q15734237 Q2965423 Q5040332 Q6687160 Q20888837 Q22815085 Q5375139 Q16121375 Q55192 Q3335569 Q16968866
(c(Q502895),P608,c(Q464980)|c(Q2668072))
action argmin
action union
action find_tuple_counts
relation P608
type Q502895
type Q464980
action find_tuple_counts
relation P608
type Q502895
type Q2668072
[ANSWERS] were presented at min number of exhibitions and collections
[{'concept': 'Q502895'}, 'P608', [{'concept': 'Q464980'}, {'concept': 'Q2668072'}]]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( MIN ( ?x ) AS ?l ) { SELECT DISTINCT ?m ( COUNT ( ?w ) AS ?x ) WHERE { VALUES ( ?y ) { ( ontology:Q464980 ) ( ontology:Q2668072 ) } . ?w rdf:type ?y } GROUP BY ?m } } . { SELECT DISTINCT ?i ( COUNT ( ?j ) AS ?t ) WHERE { ?j rdf:type ?f . VALUES ( ?f ) { ( ontology:Q464980 ) ( ontology:Q2668072 ) } } GROUP BY ?i } . FILTER ( ?t = ?l ) }
Jerry Cooke Jim Love Martha Edelheit Jennifer Bolande A. S. Baylinson Susie Bootja Bootja Napaltjarri Anne Mee Nellie Mae Rowe Alice Havers Andrea Bowers Wolfgang Sellinger Tony van Alphen Christian Lhopital Carl Holty Louis Ferstadt Angélique Bègue Georges Violet Ena Swansea Judith Lowry Gertrude Abercrombie Nancy Elizabeth Prophet Lydia Schouten
Carl Holty, Gertrude Abercrombie and Jerry Cooke were presented at min number of exhibitions and collections
Carl Holty Gertrude Abercrombie Jerry Cooke
action argmin
action union
action find_tuple_counts
relation exhibition history
type common name
type exhibition
action find_tuple_counts
relation exhibition history
type common name
type collection
[{'concept': 'common name'}, 'exhibition history', [{'concept': 'exhibition'}, {'concept': 'collection'}]]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( MIN ( ?x ) AS ?l ) { SELECT DISTINCT ?m ( COUNT ( ?w ) AS ?x ) WHERE { VALUES ( ?y ) { ( ontology:exhibition ) ( ontology:collection ) } . ?w rdf:type ?y } GROUP BY ?m } } . { SELECT DISTINCT ?i ( COUNT ( ?j ) AS ?t ) WHERE { ?j rdf:type ?f . VALUES ( ?f ) { ( ontology:exhibition ) ( ontology:collection ) } } GROUP BY ?i } . FILTER ( ?t = ?l ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P1001
Q15617994 Q1292279 Q12737077
USER
How many administrative territories apply to jurisdiction of around 18 political borders and occupations ?
(c(Q1292279)|c(Q12737077),P1001,c(Q15617994))
action count
action approx
action union
action find_reverse_tuple_counts
relation P1001
type Q15617994
type Q1292279
action find_reverse_tuple_counts
relation P1001
type Q15617994
type Q12737077
value 18
[[{'concept': 'Q1292279'}, {'concept': 'Q12737077'}], 'P1001', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?e ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?i ) AS ?n ) WHERE { { ?i property:P1001 ?q . ?q rdf:type ontology:Q15617994 . ?i rdf:type ontology:Q1292279 } UNION { ?i property:P1001 ?q . ?q rdf:type ontology:Q15617994 . ?i rdf:type ontology:Q12737077 } } GROUP BY ?q } . FILTER ( ?n = 18 ) }
action count
action approx
action union
action find_reverse_tuple_counts
relation applies to jurisdiction
type designation for an administrative territorial entity
type political border
action find_reverse_tuple_counts
relation applies to jurisdiction
type designation for an administrative territorial entity
type occupation
value 18
[[{'concept': 'political border'}, {'concept': 'occupation'}], 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?e ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?i ) AS ?n ) WHERE { { ?i property:applies_to_jurisdiction ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . ?i rdf:type ontology:political_border } UNION { ?i property:applies_to_jurisdiction ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . ?i rdf:type ontology:occupation } } GROUP BY ?q } . FILTER ( ?n = 18 ) }
[]
designation for an administrative territorial entity political border occupation
SYSTEM
156
Q702 Q709 Q811 Q805 Q419 Q668 Q414 Q55 Q262 Q189 Q784 Q31 Q265 Q842 Q37 Q398 Q874 Q712 Q711 Q710 Q717 Q837 Q213 Q1028 Q252 Q399 Q403 Q657 Q258 Q45 Q159 Q43 Q155 Q792 Q790 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q739 Q826 Q822 Q241 Q244 Q1019 Q813 Q218 Q33 Q924 Q36 Q34 Q928 Q39 Q986 Q423 Q983 Q851 Q733 Q29999 Q854 Q734 Q819 Q424 Q730 Q236 Q230 Q232 Q233 Q20 Q1045 Q1042 Q1041 Q27 Q28 Q1049 Q1025 Q1027 Q783 Q1020 Q843 Q184 Q1029 Q736 Q786 Q1904 Q227 Q225 Q224 Q222 Q221 Q96 Q229 Q17 Q902 Q1036 Q1037 Q974 Q1032 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 Q695 Q115 Q114 Q117 Q754 Q750 Q212 Q211 Q217 Q214 Q215 Q219 Q683 Q242 Q912 Q916 Q1006 Q1005 Q833 Q977 Q1009 Q1008 Q971 Q970 Q686 Q836 Q760 Q29 Q574 Q79 Q77 Q858 Q878 Q774 Q948 Q810 Q1014 Q1016 Q1011 Q678 Q800 Q1039 Q672 Q929 Q298 Q863 Q869 Q953
(c(Q1292279)|c(Q12737077),P1001,c(Q15617994))
action count
action approx
action union
action find_reverse_tuple_counts
relation P1001
type Q15617994
type Q1292279
action find_reverse_tuple_counts
relation P1001
type Q15617994
type Q12737077
value 18
[ANSWER]
[[{'concept': 'Q1292279'}, {'concept': 'Q12737077'}], 'P1001', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?e ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?i ) AS ?n ) WHERE { { ?i property:P1001 ?q . ?q rdf:type ontology:Q15617994 . ?i rdf:type ontology:Q1292279 } UNION { ?i property:P1001 ?q . ?q rdf:type ontology:Q15617994 . ?i rdf:type ontology:Q12737077 } } GROUP BY ?q } . FILTER ( ?n = 18 ) }
Federated States of Micronesia Marshall Islands Nicaragua Yemen Peru India Argentina Netherlands Algeria Iceland Dominica Belgium Uzbekistan Oman Lithuania Bahrain Turkmenistan Fiji Mongolia Kiribati Venezuela Nepal Czech Republic Morocco Indonesia Armenia Serbia Chad South Africa Portugal Russia Turkey Brazil El Salvador Haiti Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam Colombia Maldives Lebanon Cuba Barbados Madagascar Kyrgyzstan Romania Finland Tanzania Poland Sweden Philippines Switzerland Eritrea North Korea Equatorial Guinea Saudi Arabia Paraguay Kingdom of the Netherlands Sri Lanka Guyana Laos Cambodia Suriname Montenegro Georgia Kazakhstan Malta Norway Somalia Seychelles Senegal Ireland Hungary Sudan Mauritania Mauritius Honduras Malawi Pakistan Belarus Mozambique Ecuador Dominican Republic Ontario Azerbaijan Bosnia and Herzegovina Croatia Albania Republic of Macedonia Mexico Cyprus Japan Bangladesh Uganda Rwanda Democratic Republic of the Congo Niger Nigeria Namibia Estonia Burkina Faso Burundi Benin Botswana Palau Ethiopia Kenya Ghana Trinidad and Tobago Bolivia Ukraine Latvia Republic of Moldova Slovakia Slovenia Bulgaria Samoa Belize Mali Angola Guinea Gambia Malaysia Djibouti Cameroon Côte d'Ivoire Republic of the Congo Comoros Vanuatu Myanmar Saint Lucia Spain East Timor Egypt Uruguay Syria United Arab Emirates Guatemala Tunisia Jordan Liberia Libya Cape Verde Tonga Costa Rica Sao Tomé and Príncipe Tuvalu Central African Republic Chile Tajikistan Thailand Zambia
156
action count
action approx
action union
action find_reverse_tuple_counts
relation applies to jurisdiction
type designation for an administrative territorial entity
type political border
action find_reverse_tuple_counts
relation applies to jurisdiction
type designation for an administrative territorial entity
type occupation
value 18
[[{'concept': 'political border'}, {'concept': 'occupation'}], 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?e ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?i ) AS ?n ) WHERE { { ?i property:applies_to_jurisdiction ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . ?i rdf:type ontology:political_border } UNION { ?i property:applies_to_jurisdiction ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . ?i rdf:type ontology:occupation } } GROUP BY ?q } . FILTER ( ?n = 18 ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q715062 Q117345
P40
Q502895
USER
Which people are an offsprings of Barbara Euphan Todd or Herman II, Duke of Swabia ?
OR((Q117345,P40,c(Q502895)), (Q715062,P40,c(Q502895)))
action filter_type
action union
action find
entity Q117345
relation P40
action find
entity Q715062
relation P40
type Q502895
{'OR': [['Q117345', 'P40', {'concept': 'Q502895'}], ['Q715062', 'P40', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?e WHERE { { VALUES ( ?j ) { ( resource:Q117345 ) ( resource:Q715062 ) } . ?j property:P40 ?e } . ?e rdf:type ontology:Q502895 }
Herman II, Duke of Swabia Barbara Euphan Todd
action filter_type
action union
action find
entity Barbara Euphan Todd
relation child
action find
entity Herman II, Duke of Swabia
relation child
type common name
{'OR': [['Barbara Euphan Todd', 'child', {'concept': 'common name'}], ['Herman II, Duke of Swabia', 'child', {'concept': 'common name'}]]}
SELECT DISTINCT ?e WHERE { { VALUES ( ?j ) { ( resource:Barbara_Euphan_Todd ) ( resource:Herman_II,_Duke_of_Swabia ) } . ?j property:child ?e } . ?e rdf:type ontology:common_name }
[]
common name
Q514497 Q77573 Q470283 Q62033
SYSTEM
Ursula Graham Bower, Herman III, Duke of Swabia, Matilda of Swabia, Gisela of Swabia
Q514497 Q77573 Q470283 Q62033
OR((Q117345,P40,c(Q502895)), (Q715062,P40,c(Q502895)))
action filter_type
action union
action find
entity Q117345
relation P40
action find
entity Q715062
relation P40
type Q502895
[ANSWERS] are an offsprings of Barbara Euphan Todd or Herman II, Duke of Swabia
{'OR': [['Q117345', 'P40', {'concept': 'Q502895'}], ['Q715062', 'P40', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?e WHERE { { VALUES ( ?j ) { ( resource:Q117345 ) ( resource:Q715062 ) } . ?j property:P40 ?e } . ?e rdf:type ontology:Q502895 }
Ursula Graham Bower Herman III, Duke of Swabia Matilda of Swabia Gisela of Swabia
Ursula Graham Bower, Herman III, Duke of Swabia, Matilda of Swabia and Gisela of Swabia are an offsprings of Barbara Euphan Todd or Herman II, Duke of Swabia
Ursula Graham Bower Herman III, Duke of Swabia Matilda of Swabia Gisela of Swabia
action filter_type
action union
action find
entity Barbara Euphan Todd
relation child
action find
entity Herman II, Duke of Swabia
relation child
type common name
{'OR': [['Barbara Euphan Todd', 'child', {'concept': 'common name'}], ['Herman II, Duke of Swabia', 'child', {'concept': 'common name'}]]}
SELECT DISTINCT ?e WHERE { { VALUES ( ?j ) { ( resource:Barbara_Euphan_Todd ) ( resource:Herman_II,_Duke_of_Swabia ) } . ?j property:child ?e } . ?e rdf:type ontology:common_name }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q3623688
P1303
Q34379 Q502895
USER
Which musical instruments are played by greater number of people than Paraguayan harp ?
(c(Q502895),P1303,c(Q34379))
action greater
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find
entity Q3623688
relation P1303
type Q34379
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ?l ( COUNT ( ?m ) AS ?b ) WHERE { ?m property:P1303 ?l . ?m rdf:type ontology:Q502895 . ?l rdf:type ontology:Q34379 } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?g ) WHERE { resource:Q3623688 property:P1303 ?h . ?h rdf:type ontology:Q34379 } } . FILTER ( ?b > ?g ) }
Paraguayan harp
action greater
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity Paraguayan harp
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ?l ( COUNT ( ?m ) AS ?b ) WHERE { ?m property:instrument ?l . ?m rdf:type ontology:common_name . ?l rdf:type ontology:musical_instrument } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?g ) WHERE { resource:Paraguayan_harp property:instrument ?h . ?h rdf:type ontology:musical_instrument } } . FILTER ( ?b > ?g ) }
[]
musical instrument common name
Q5994 Q81982 Q862501
SYSTEM
piano, harpsichord, ondes Martenot
Q80284 Q46185 Q201129 Q424017 Q80019 Q2563510 Q5994 Q3574843 Q81982 Q182718 Q206987 Q189737 Q8338 Q8371 Q8355 Q213461 Q3382191 Q862501 Q213100 Q537750 Q626035 Q742180 Q1300012 Q1444 Q220971 Q128309 Q726306 Q483994 Q1343007 Q11404
(c(Q502895),P1303,c(Q34379))
action greater
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find
entity Q3623688
relation P1303
type Q34379
[ANSWERS] are played by greater number of people than Paraguayan harp
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ?l ( COUNT ( ?m ) AS ?b ) WHERE { ?m property:P1303 ?l . ?m rdf:type ontology:Q502895 . ?l rdf:type ontology:Q34379 } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?g ) WHERE { resource:Q3623688 property:P1303 ?h . ?h rdf:type ontology:Q34379 } } . FILTER ( ?b > ?g ) }
viola bass guitar lyre acoustic bass guitar double bass steel-string acoustic guitar piano tonbak harpsichord Nyckelharpa vibraphone timpani trumpet cello violin harmonium upright piano ondes Martenot tabla Djembe glockenspiel viola d'amore toy piano organ marimba drum kit erhu Kazoo electronic keyboard drum
Piano, harpsichord and ondes Martenot are played by greater number of people than Paraguayan harp
piano harpsichord ondes Martenot
action greater
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity Paraguayan harp
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ?l ( COUNT ( ?m ) AS ?b ) WHERE { ?m property:instrument ?l . ?m rdf:type ontology:common_name . ?l rdf:type ontology:musical_instrument } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?g ) WHERE { resource:Paraguayan_harp property:instrument ?h . ?h rdf:type ontology:musical_instrument } } . FILTER ( ?b > ?g ) }
[]