Simple Question (Direct)
Simple Question
Q3809897
P119
Q43229
USER
Which organization is the resting place of Jonas Offrell ?
(Q3809897,P119,c(Q43229))
action filter_type
action find
entity Q3809897
relation P119
type Q43229
['Q3809897', 'P119', {'concept': 'Q43229'}]
SELECT DISTINCT ?w WHERE { resource:Q3809897 property:P119 ?w . ?w rdf:type ontology:Q43229 }
Jonas Offrell
action filter_type
action find
entity Jonas Offrell
relation place of burial
type organization
['Jonas Offrell', 'place of burial', {'concept': 'organization'}]
SELECT DISTINCT ?w WHERE { resource:Jonas_Offrell property:place_of_burial ?w . ?w rdf:type ontology:organization }
[]
organization
Q4353116
SYSTEM
Uppsala old cemetery
Q4353116
(Q3809897,P119,c(Q43229))
action filter_type
action find
entity Q3809897
relation P119
type Q43229
[ANSWER] is the resting place of Jonas Offrell
['Q3809897', 'P119', {'concept': 'Q43229'}]
SELECT DISTINCT ?w WHERE { resource:Q3809897 property:P119 ?w . ?w rdf:type ontology:Q43229 }
Uppsala old cemetery
Uppsala old cemetery is the resting place of Jonas Offrell
Uppsala old cemetery
action filter_type
action find
entity Jonas Offrell
relation place of burial
type organization
['Jonas Offrell', 'place of burial', {'concept': 'organization'}]
SELECT DISTINCT ?w WHERE { resource:Jonas_Offrell property:place_of_burial ?w . ?w rdf:type ontology:organization }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3809897
P19
Q15617994
USER
Which administrative territory was that person born in ?
(Q4353116,P19,c(Q15617994))
action filter_type
action find
entity Q3809897
relation P19
type Q15617994
['Q4353116', 'P19', {'concept': 'Q15617994'}]
SELECT DISTINCT ?a WHERE { resource:Q3809897 property:P19 ?a . ?a rdf:type ontology:Q15617994 }
Jonas Offrell
action filter_type
action find
entity Jonas Offrell
relation place of birth
type designation for an administrative territorial entity
['Uppsala old cemetery', 'place of birth', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:Jonas_Offrell property:place_of_birth ?a . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q34
SYSTEM
Sweden
Q34
(Q4353116,P19,c(Q15617994))
action filter_type
action find
entity Q3809897
relation P19
type Q15617994
That person was born in [ANSWER]
['Q4353116', 'P19', {'concept': 'Q15617994'}]
SELECT DISTINCT ?a WHERE { resource:Q3809897 property:P19 ?a . ?a rdf:type ontology:Q15617994 }
Sweden
That person was born in Sweden
Sweden
action filter_type
action find
entity Jonas Offrell
relation place of birth
type designation for an administrative territorial entity
['Uppsala old cemetery', 'place of birth', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:Jonas_Offrell property:place_of_birth ?a . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Indirect
P495
Q15617994 Q2031291 Q2088357
USER
How many administrative territories are the countries of origin of lesser number of releases and musical ensembles than that administrative territory ?
(c(Q2031291)|c(Q2088357),P495,c(Q15617994))
action count
action less
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q2031291
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q2088357
action count
action filter_multi_types
action find_reverse
entity Q34
relation P495
type Q2031291
type Q2088357
[[{'concept': 'Q2031291'}, {'concept': 'Q2088357'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?o ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?y ) AS ?r ) WHERE { { ?y property:P495 ?b . ?y rdf:type ontology:Q2031291 . ?b rdf:type ontology:Q15617994 } UNION { ?y property:P495 ?b . ?b rdf:type ontology:Q15617994 . ?y rdf:type ontology:Q2088357 } } GROUP BY ?b } . FILTER ( ?r < ?a ) . { SELECT DISTINCT ( COUNT ( ?z ) AS ?a ) WHERE { ?z property:P495 resource:Q34 . { VALUES ( ?u ) { ( ontology:Q2031291 ) ( ontology:Q2088357 ) } . ?z rdf:type ?u } } } }
action count
action less
action union
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type release
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type musical ensemble
action count
action filter_multi_types
action find_reverse
entity Sweden
relation country of origin
type release
type musical ensemble
[[{'concept': 'release'}, {'concept': 'musical ensemble'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?o ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?y ) AS ?r ) WHERE { { ?y property:country_of_origin ?b . ?y rdf:type ontology:release . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?y property:country_of_origin ?b . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y rdf:type ontology:musical_ensemble } } GROUP BY ?b } . FILTER ( ?r < ?a ) . { SELECT DISTINCT ( COUNT ( ?z ) AS ?a ) WHERE { ?z property:country_of_origin resource:Sweden . { VALUES ( ?u ) { ( ontology:release ) ( ontology:musical_ensemble ) } . ?z rdf:type ?u } } } }
[]
designation for an administrative territorial entity release musical ensemble
SYSTEM
165
Q805 Q804 Q801 Q800 Q1462 Q419 Q668 Q414 Q142 Q12536 Q262 Q148 Q783 Q265 Q37 Q36678 Q712 Q711 Q717 Q837 Q252 Q1460 Q399 Q398 Q403 Q657 Q258 Q45 Q159 Q43 Q41 Q155 Q792 Q790 Q4628 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q986 Q826 Q822 Q241 Q242 Q244 Q811 Q153136 Q33 Q32 Q31 Q924 Q36 Q928 Q39 Q38 Q739 Q423 Q983 Q851 Q733 Q29999 Q854 Q819 Q424 Q730 Q1013 Q159626 Q236 Q230 Q232 Q233 Q238 Q20 Q1045 Q1044 Q1041 Q27 Q28 Q921 Q1049 Q1025 Q1027 Q1020 Q189 Q843 Q184 Q1029 Q1028 Q736 Q786 Q227 Q225 Q224 Q223 Q222 Q221 Q96 Q229 Q347 Q17 Q902 Q1036 Q1037 Q974 Q1032 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 Q298 Q115 Q114 Q117 Q754 Q750 Q212 Q213 Q211 Q217 Q214 Q215 Q218 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q833 Q1009 Q1008 Q971 Q970 Q239502 Q686 Q836 Q574 Q874 Q79 Q77 Q858 Q878 Q774 Q948 Q817 Q810 Q1019 Q813 Q1014 Q1016 Q1011 Q945 Q29 Q672 Q176 Q863 Q869 Q953
(c(Q2031291)|c(Q2088357),P495,c(Q15617994))
action count
action less
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q2031291
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q2088357
action count
action filter_multi_types
action find_reverse
entity Q34
relation P495
type Q2031291
type Q2088357
[ANSWER]
[[{'concept': 'Q2031291'}, {'concept': 'Q2088357'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?o ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?y ) AS ?r ) WHERE { { ?y property:P495 ?b . ?y rdf:type ontology:Q2031291 . ?b rdf:type ontology:Q15617994 } UNION { ?y property:P495 ?b . ?b rdf:type ontology:Q15617994 . ?y rdf:type ontology:Q2088357 } } GROUP BY ?b } . FILTER ( ?r < ?a ) . { SELECT DISTINCT ( COUNT ( ?z ) AS ?a ) WHERE { ?z property:P495 resource:Q34 . { VALUES ( ?u ) { ( ontology:Q2031291 ) ( ontology:Q2088357 ) } . ?z rdf:type ?u } } } }
Yemen Panama Israel Costa Rica Sardinia Peru India Argentina France Abbasid caliphate Algeria People's Republic of China Honduras Uzbekistan Lithuania West Bank Fiji Mongolia Venezuela Nepal Indonesia Sicily Armenia Bahrain Serbia Chad South Africa Portugal Russia Turkey Greece Brazil El Salvador Haiti Faroe Islands Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam Eritrea Maldives Lebanon Cuba Belize Barbados Nicaragua Habsburg Empire Finland Luxembourg Belgium Tanzania Poland Philippines Switzerland Italy Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Kingdom of the Netherlands Sri Lanka Laos Cambodia Suriname Lesotho Württemberg Montenegro Georgia Kazakhstan Malta San Marino Norway Somalia Sierra Leone Senegal Ireland Hungary Brunei Sudan Mauritania Mauritius Malawi Iceland Pakistan Belarus Mozambique Morocco Ecuador Dominican Republic Azerbaijan Bosnia and Herzegovina Croatia Greenland Albania Republic of Macedonia Mexico Cyprus Liechtenstein Japan Bangladesh Uganda Rwanda Democratic Republic of the Congo Niger Nigeria Namibia Estonia Burkina Faso Burundi Benin Botswana Chile 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 Cameroon Côte d'Ivoire Republic of the Congo Comoros Kingdom of Galicia–Volhynia Vanuatu Myanmar East Timor Turkmenistan Egypt Uruguay Syria United Arab Emirates Guatemala Tunisia Kuwait Jordan Madagascar Kyrgyzstan Liberia Libya Cape Verde Togo Spain Tuvalu Quebec Tajikistan Thailand Zambia
165
action count
action less
action union
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type release
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type musical ensemble
action count
action filter_multi_types
action find_reverse
entity Sweden
relation country of origin
type release
type musical ensemble
[[{'concept': 'release'}, {'concept': 'musical ensemble'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?o ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?y ) AS ?r ) WHERE { { ?y property:country_of_origin ?b . ?y rdf:type ontology:release . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?y property:country_of_origin ?b . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y rdf:type ontology:musical_ensemble } } GROUP BY ?b } . FILTER ( ?r < ?a ) . { SELECT DISTINCT ( COUNT ( ?z ) AS ?a ) WHERE { ?z property:country_of_origin resource:Sweden . { VALUES ( ?u ) { ( ontology:release ) ( ontology:musical_ensemble ) } . ?z rdf:type ?u } } } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q34
P6
Q502895
USER
What people are Sweden the head of goverment of ?
(Q34,P6,c(Q502895))
action filter_type
action find
entity Q34
relation P6
type Q502895
['Q34', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q502895 . resource:Q34 property:P6 ?b }
Sweden
action filter_type
action find
entity Sweden
relation head of government
type common name
['Sweden', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:common_name . resource:Sweden property:head_of_government ?b }
[]
common name
Q52920 Q53747 Q2740012
SYSTEM
Fredrik Reinfeldt, Göran Persson, Stefan Löfven
Q2740012 Q52920 Q53740 Q53747
(Q34,P6,c(Q502895))
action filter_type
action find
entity Q34
relation P6
type Q502895
[ANSWERS] are Sweden the head of goverment of
['Q34', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q502895 . resource:Q34 property:P6 ?b }
Stefan Löfven Fredrik Reinfeldt Ingvar Carlsson Göran Persson
Fredrik Reinfeldt, Göran Persson and Stefan Löfven are Sweden the head of goverment of
Fredrik Reinfeldt Göran Persson Stefan Löfven
action filter_type
action find
entity Sweden
relation head of government
type common name
['Sweden', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:common_name . resource:Sweden property:head_of_government ?b }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q1645880
Q502895
USER
And how about Préjano?
(Q1645880,P6,c(Q502895))
action filter_type
action find
entity Q1645880
relation P6
type Q502895
['Q1645880', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?s WHERE { resource:Q1645880 property:P6 ?s . ?s rdf:type ontology:Q502895 }
Préjano
action filter_type
action find
entity Préjano
relation head of government
type common name
['Préjano', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?s WHERE { resource:Préjano property:head_of_government ?s . ?s rdf:type ontology:common_name }
[]
common name
Q14086453
SYSTEM
Santiago Jimenez Garcia
Q14086453
(Q1645880,P6,c(Q502895))
action filter_type
action find
entity Q1645880
relation P6
type Q502895
[ANSWER]
['Q1645880', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?s WHERE { resource:Q1645880 property:P6 ?s . ?s rdf:type ontology:Q502895 }
Santiago Jimenez Garcia
Santiago Jimenez Garcia
action filter_type
action find
entity Préjano
relation head of government
type common name
['Préjano', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?s WHERE { resource:Préjano property:head_of_government ?s . ?s rdf:type ontology:common_name }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P1303
Q34379 Q502895
USER
Which musical instruments can max number of people perform with ?
(c(Q502895),P1303,Q3623688)
action argmax
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
[{'concept': 'Q502895'}, 'P1303', 'Q3623688']
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( MAX ( ?m ) AS ?p ) { SELECT DISTINCT ?u ( COUNT ( ?b ) AS ?m ) WHERE { ?b property:P1303 ?u . ?u rdf:type ontology:Q34379 . ?b rdf:type ontology:Q502895 } GROUP BY ?u } } . { SELECT DISTINCT ?f ( COUNT ( ?i ) AS ?g ) WHERE { ?i property:P1303 ?f . ?f rdf:type ontology:Q34379 . ?i rdf:type ontology:Q502895 } GROUP BY ?f } . FILTER ( ?g = ?p ) }
action argmax
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
[{'concept': 'common name'}, 'instrument', 'Paraguayan harp']
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( MAX ( ?m ) AS ?p ) { SELECT DISTINCT ?u ( COUNT ( ?b ) AS ?m ) WHERE { ?b property:instrument ?u . ?u rdf:type ontology:musical_instrument . ?b rdf:type ontology:common_name } GROUP BY ?u } } . { SELECT DISTINCT ?f ( COUNT ( ?i ) AS ?g ) WHERE { ?i property:instrument ?f . ?f rdf:type ontology:musical_instrument . ?i rdf:type ontology:common_name } GROUP BY ?f } . FILTER ( ?g = ?p ) }
[]
musical instrument common name
Q5994
SYSTEM
piano
Q5994
(c(Q502895),P1303,Q3623688)
action argmax
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
Max number of people can perform on [ANSWER]
[{'concept': 'Q502895'}, 'P1303', 'Q3623688']
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( MAX ( ?m ) AS ?p ) { SELECT DISTINCT ?u ( COUNT ( ?b ) AS ?m ) WHERE { ?b property:P1303 ?u . ?u rdf:type ontology:Q34379 . ?b rdf:type ontology:Q502895 } GROUP BY ?u } } . { SELECT DISTINCT ?f ( COUNT ( ?i ) AS ?g ) WHERE { ?i property:P1303 ?f . ?f rdf:type ontology:Q34379 . ?i rdf:type ontology:Q502895 } GROUP BY ?f } . FILTER ( ?g = ?p ) }
piano
Max number of people can perform on piano
piano
action argmax
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
[{'concept': 'common name'}, 'instrument', 'Paraguayan harp']
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( MAX ( ?m ) AS ?p ) { SELECT DISTINCT ?u ( COUNT ( ?b ) AS ?m ) WHERE { ?b property:instrument ?u . ?u rdf:type ontology:musical_instrument . ?b rdf:type ontology:common_name } GROUP BY ?u } } . { SELECT DISTINCT ?f ( COUNT ( ?i ) AS ?g ) WHERE { ?i property:instrument ?f . ?f rdf:type ontology:musical_instrument . ?i rdf:type ontology:common_name } GROUP BY ?f } . FILTER ( ?g = ?p ) }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q5994
P26
Q502895
USER
Which person is the life partner of that musical instrument ?
(c(Q502895),P26,Q5994)
action filter_type
action find_reverse
entity Q5994
relation P26
type Q502895
[{'concept': 'Q502895'}, 'P26', 'Q5994']
SELECT DISTINCT ?p WHERE { ?p property:P26 resource:Q5994 . ?p rdf:type ontology:Q502895 }
piano
action filter_type
action find_reverse
entity piano
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'piano']
SELECT DISTINCT ?p WHERE { ?p property:spouse resource:piano . ?p rdf:type ontology:common_name }
[]
common name
Q3161739
SYSTEM
Jan Páleníček
Q3161739
(c(Q502895),P26,Q5994)
action filter_type
action find_reverse
entity Q5994
relation P26
type Q502895
[ANSWER] is the life partner of that musical instrument
[{'concept': 'Q502895'}, 'P26', 'Q5994']
SELECT DISTINCT ?p WHERE { ?p property:P26 resource:Q5994 . ?p rdf:type ontology:Q502895 }
Jan Páleníček
Jan Páleníček is the life partner of that musical instrument
Jan Páleníček
action filter_type
action find_reverse
entity piano
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'piano']
SELECT DISTINCT ?p WHERE { ?p property:spouse resource:piano . ?p rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q5994
P1056
Q43229
USER
Who makes that musical instrument ?
(c(Q43229),P1056,Q3161739)
action filter_type
action find_reverse
entity Q5994
relation P1056
type Q43229
[{'concept': 'Q43229'}, 'P1056', 'Q3161739']
SELECT DISTINCT ?k WHERE { ?k property:P1056 resource:Q5994 . ?k rdf:type ontology:Q43229 }
piano
action filter_type
action find_reverse
entity piano
relation product
type organization
[{'concept': 'organization'}, 'product', 'Jan Páleníček']
SELECT DISTINCT ?k WHERE { ?k property:product resource:piano . ?k rdf:type ontology:organization }
[]
organization
Q2684841 Q20773716
SYSTEM
Hoffmann, Weber Piano Company
Q2684841 Q20773716
(c(Q43229),P1056,Q3161739)
action filter_type
action find_reverse
entity Q5994
relation P1056
type Q43229
[ANSWERS] make that musical instrument
[{'concept': 'Q43229'}, 'P1056', 'Q3161739']
SELECT DISTINCT ?k WHERE { ?k property:P1056 resource:Q5994 . ?k rdf:type ontology:Q43229 }
Hoffmann Weber Piano Company
Hoffmann and Weber Piano Company make that musical instrument
Hoffmann Weber Piano Company
action filter_type
action find_reverse
entity piano
relation product
type organization
[{'concept': 'organization'}, 'product', 'Jan Páleníček']
SELECT DISTINCT ?k WHERE { ?k property:product resource:piano . ?k rdf:type ontology:organization }
[]
Clarification
Quantitative|Count|Single entity type|Indirect
P17
Q15617994
USER
How many administrative territories do that organization belong to ?
(Q20773716,P17,c(Q15617994))
['Q20773716', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q20773716 property:Q6256 ?z . ?z rdf:type ontology:Q15617994 }
['Weber Piano Company', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Weber_Piano_Company property:country ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Quantitative|Count|Single entity type|Clarification
Q20773716
SYSTEM
Did you mean Weber Piano Company ?
(Q2684841,P17,c(Q15617994)) (Q20773716,P17,c(Q15617994))
[ANSWER]
['Q2684841', 'P17', {'concept': 'Q15617994'}] ['Q20773716', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q20773716 property:Q6256 ?z . ?z rdf:type ontology:Q15617994 }
Did you mean Weber Piano Company ?
Weber Piano Company
['Hoffmann', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Weber Piano Company', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Weber_Piano_Company property:country ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
USER
Yes
(Q20773716,P17,c(Q15617994))
['Q20773716', 'P17', {'concept': 'Q15617994'}]
['Weber Piano Company', 'country', {'concept': 'designation for an administrative territorial entity'}]
[]
SYSTEM
1
Q30
(Q20773716,P17,c(Q15617994))
[ANSWER]
['Q20773716', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q20773716 property:Q6256 ?z . ?z rdf:type ontology:Q15617994 }
United States of America
1
['Weber Piano Company', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Weber_Piano_Company property:country ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q5994
P1303
Q11019 Q2207288
USER
How many machines or crafts can play piano ?
(c(Q11019),P1303,Q5994) (c(Q2207288),P1303,Q5994)
action count
action union
action filter_type
action find_reverse
entity Q5994
relation P1303
type Q11019
action filter_type
action find_reverse
entity Q5994
relation P1303
type Q2207288
[{'concept': 'Q11019'}, 'P1303', 'Q5994'] [{'concept': 'Q2207288'}, 'P1303', 'Q5994']
SELECT DISTINCT ( COUNT ( ?u ) AS ?s ) WHERE { { ?u property:P1303 resource:Q5994 . ?u rdf:type ontology:Q11019 } UNION { ?u rdf:type ontology:Q2207288 . ?u property:P1303 resource:Q5994 } }
piano
action count
action union
action filter_type
action find_reverse
entity piano
relation instrument
type machine
action filter_type
action find_reverse
entity piano
relation instrument
type craft
[{'concept': 'machine'}, 'instrument', 'piano'] [{'concept': 'craft'}, 'instrument', 'piano']
SELECT DISTINCT ( COUNT ( ?u ) AS ?s ) WHERE { { ?u property:instrument resource:piano . ?u rdf:type ontology:machine } UNION { ?u rdf:type ontology:craft . ?u property:instrument resource:piano } }
[]
machine craft
SYSTEM
2
Q16330882 Q20635115
(c(Q11019),P1303,Q5994) (c(Q2207288),P1303,Q5994)
action count
action union
action filter_type
action find_reverse
entity Q5994
relation P1303
type Q11019
action filter_type
action find_reverse
entity Q5994
relation P1303
type Q2207288
[ANSWER]
[{'concept': 'Q11019'}, 'P1303', 'Q5994'] [{'concept': 'Q2207288'}, 'P1303', 'Q5994']
SELECT DISTINCT ( COUNT ( ?u ) AS ?s ) WHERE { { ?u property:P1303 resource:Q5994 . ?u rdf:type ontology:Q11019 } UNION { ?u rdf:type ontology:Q2207288 . ?u property:P1303 resource:Q5994 } }
Crystallia Dmitry Masleev
2
action count
action union
action filter_type
action find_reverse
entity piano
relation instrument
type machine
action filter_type
action find_reverse
entity piano
relation instrument
type craft
[{'concept': 'machine'}, 'instrument', 'piano'] [{'concept': 'craft'}, 'instrument', 'piano']
SELECT DISTINCT ( COUNT ( ?u ) AS ?s ) WHERE { { ?u property:instrument resource:piano . ?u rdf:type ontology:machine } UNION { ?u rdf:type ontology:craft . ?u property:instrument resource:piano } }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P137
Q43229 Q2424752
USER
Which products are the administrator of max number of organizations ?
(c(Q2424752),P137,c(Q43229))
action argmax
action find_tuple_counts
relation P137
type Q2424752
type Q43229
[{'concept': 'Q2424752'}, 'P137', {'concept': 'Q43229'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ( MAX ( ?d ) AS ?z ) { SELECT DISTINCT ?m ( COUNT ( ?b ) AS ?d ) WHERE { ?m property:P137 ?b . ?m rdf:type ontology:Q2424752 . ?b rdf:type ontology:Q43229 } GROUP BY ?m } } . { SELECT DISTINCT ?q ( COUNT ( ?h ) AS ?n ) WHERE { ?q property:P137 ?h . ?q rdf:type ontology:Q2424752 . ?h rdf:type ontology:Q43229 } GROUP BY ?q } . FILTER ( ?n = ?z ) }
action argmax
action find_tuple_counts
relation operator
type product
type organization
[{'concept': 'product'}, 'operator', {'concept': 'organization'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ( MAX ( ?d ) AS ?z ) { SELECT DISTINCT ?m ( COUNT ( ?b ) AS ?d ) WHERE { ?m property:operator ?b . ?m rdf:type ontology:product . ?b rdf:type ontology:organization } GROUP BY ?m } } . { SELECT DISTINCT ?q ( COUNT ( ?h ) AS ?n ) WHERE { ?q property:operator ?h . ?q rdf:type ontology:product . ?h rdf:type ontology:organization } GROUP BY ?q } . FILTER ( ?n = ?z ) }
[]
organization product
Q21234191 Q15129020
SYSTEM
NuDat, Vickers Vimy Commercial
Q21234191 Q15129020
(c(Q2424752),P137,c(Q43229))
action argmax
action find_tuple_counts
relation P137
type Q2424752
type Q43229
[ANSWERS] are the administrator of max number of organizations
[{'concept': 'Q2424752'}, 'P137', {'concept': 'Q43229'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ( MAX ( ?d ) AS ?z ) { SELECT DISTINCT ?m ( COUNT ( ?b ) AS ?d ) WHERE { ?m property:P137 ?b . ?m rdf:type ontology:Q2424752 . ?b rdf:type ontology:Q43229 } GROUP BY ?m } } . { SELECT DISTINCT ?q ( COUNT ( ?h ) AS ?n ) WHERE { ?q property:P137 ?h . ?q rdf:type ontology:Q2424752 . ?h rdf:type ontology:Q43229 } GROUP BY ?q } . FILTER ( ?n = ?z ) }
NuDat Vickers Vimy Commercial
NuDat and Vickers Vimy Commercial are the administrator of max number of organizations
NuDat Vickers Vimy Commercial
action argmax
action find_tuple_counts
relation operator
type product
type organization
[{'concept': 'product'}, 'operator', {'concept': 'organization'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ( MAX ( ?d ) AS ?z ) { SELECT DISTINCT ?m ( COUNT ( ?b ) AS ?d ) WHERE { ?m property:operator ?b . ?m rdf:type ontology:product . ?b rdf:type ontology:organization } GROUP BY ?m } } . { SELECT DISTINCT ?q ( COUNT ( ?h ) AS ?n ) WHERE { ?q property:operator ?h . ?q rdf:type ontology:product . ?h rdf:type ontology:organization } GROUP BY ?q } . FILTER ( ?n = ?z ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3161739
P40
Q502895
USER
Who has Jan Páleníček as an offspring ?
(c(Q502895),P40,Q3161739)
action filter_type
action find_reverse
entity Q3161739
relation P40
type Q502895
[{'concept': 'Q502895'}, 'P40', 'Q3161739']
SELECT DISTINCT ?b WHERE { ?b property:P40 resource:Q3161739 . ?b rdf:type ontology:Q502895 }
Jan Páleníček
action filter_type
action find_reverse
entity Jan Páleníček
relation child
type common name
[{'concept': 'common name'}, 'child', 'Jan Páleníček']
SELECT DISTINCT ?b WHERE { ?b property:child resource:Jan_Páleníček . ?b rdf:type ontology:common_name }
[]
common name
Q1392377
SYSTEM
Josef Páleníček
Q1392377
(c(Q502895),P40,Q3161739)
action filter_type
action find_reverse
entity Q3161739
relation P40
type Q502895
[ANSWER] has Jan Páleníček as an offspring
[{'concept': 'Q502895'}, 'P40', 'Q3161739']
SELECT DISTINCT ?b WHERE { ?b property:P40 resource:Q3161739 . ?b rdf:type ontology:Q502895 }
Josef Páleníček
Josef Páleníček has Jan Páleníček as an offspring
Josef Páleníček
action filter_type
action find_reverse
entity Jan Páleníček
relation child
type common name
[{'concept': 'common name'}, 'child', 'Jan Páleníček']
SELECT DISTINCT ?b WHERE { ?b property:child resource:Jan_Páleníček . ?b rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3161739
P106
Q12737077
USER
What does Jan Páleníček do for a living ?
(Q3161739,P106,c(Q12737077))
action filter_type
action find
entity Q3161739
relation P106
type Q12737077
['Q3161739', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q12737077 . resource:Q3161739 property:P106 ?y }
Jan Páleníček
action filter_type
action find
entity Jan Páleníček
relation occupation
type occupation
['Jan Páleníček', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:occupation . resource:Jan_Páleníček property:occupation ?y }
[]
occupation
Q1231865
SYSTEM
educationist
Q1231865
(Q3161739,P106,c(Q12737077))
action filter_type
action find
entity Q3161739
relation P106
type Q12737077
[ANSWER] Jan Páleníček does for a living
['Q3161739', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q12737077 . resource:Q3161739 property:P106 ?y }
educationist
Educationist Jan Páleníček does for a living
educationist
action filter_type
action find
entity Jan Páleníček
relation occupation
type occupation
['Jan Páleníček', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:occupation . resource:Jan_Páleníček property:occupation ?y }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2684841
P355
Q43229
USER
Which organization is Hoffmann the subordinate of ?
(c(Q43229),P355,Q2684841)
action filter_type
action find_reverse
entity Q2684841
relation P355
type Q43229
[{'concept': 'Q43229'}, 'P355', 'Q2684841']
SELECT DISTINCT ?g WHERE { ?g property:P355 resource:Q2684841 . ?g rdf:type ontology:Q43229 }
Hoffmann
action filter_type
action find_reverse
entity Hoffmann
relation subsidiary
type organization
[{'concept': 'organization'}, 'subsidiary', 'Hoffmann']
SELECT DISTINCT ?g WHERE { ?g property:subsidiary resource:Hoffmann . ?g rdf:type ontology:organization }
[]
organization
Q697519
SYSTEM
C. Bechstein Pianofortefabrik
Q697519
(c(Q43229),P355,Q2684841)
action filter_type
action find_reverse
entity Q2684841
relation P355
type Q43229
[ANSWER] is Hoffmann the subordinate of
[{'concept': 'Q43229'}, 'P355', 'Q2684841']
SELECT DISTINCT ?g WHERE { ?g property:P355 resource:Q2684841 . ?g rdf:type ontology:Q43229 }
C. Bechstein Pianofortefabrik
C. Bechstein Pianofortefabrik is Hoffmann the subordinate of
C. Bechstein Pianofortefabrik
action filter_type
action find_reverse
entity Hoffmann
relation subsidiary
type organization
[{'concept': 'organization'}, 'subsidiary', 'Hoffmann']
SELECT DISTINCT ?g WHERE { ?g property:subsidiary resource:Hoffmann . ?g rdf:type ontology:organization }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q697519
P749
Q43229
USER
Which organization is owned by that one ?
(c(Q43229),P749,Q697519)
action filter_type
action find_reverse
entity Q697519
relation P749
type Q43229
[{'concept': 'Q43229'}, 'P749', 'Q697519']
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q43229 . ?u property:P749 resource:Q697519 }
C. Bechstein Pianofortefabrik
action filter_type
action find_reverse
entity C. Bechstein Pianofortefabrik
relation parent organization
type organization
[{'concept': 'organization'}, 'parent organization', 'C. Bechstein Pianofortefabrik']
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:organization . ?u property:parent_organization resource:C._Bechstein_Pianofortefabrik }
[]
organization
Q2684841
SYSTEM
Hoffmann
Q2684841
(c(Q43229),P749,Q697519)
action filter_type
action find_reverse
entity Q697519
relation P749
type Q43229
Was [ANSWER] is owned by that one
[{'concept': 'Q43229'}, 'P749', 'Q697519']
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q43229 . ?u property:P749 resource:Q697519 }
Hoffmann
Was Hoffmann is owned by that one
Hoffmann
action filter_type
action find_reverse
entity C. Bechstein Pianofortefabrik
relation parent organization
type organization
[{'concept': 'organization'}, 'parent organization', 'C. Bechstein Pianofortefabrik']
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:organization . ?u property:parent_organization resource:C._Bechstein_Pianofortefabrik }
[]