Simple Question (Direct)
Simple Question
Q4360153
P102
Q7278
USER
Which political party is Viktor Petelin a member of ?
(Q4360153,P102,c(Q7278))
action filter_type
action find
entity Q4360153
relation P102
type Q7278
['Q4360153', 'P102', {'concept': 'Q7278'}]
SELECT DISTINCT ?b WHERE { resource:Q4360153 property:P102 ?b . ?b rdf:type ontology:Q7278 }
Viktor Petelin
action filter_type
action find
entity Viktor Petelin
relation member of political party
type political party
['Viktor Petelin', 'member of political party', {'concept': 'political party'}]
SELECT DISTINCT ?b WHERE { resource:Viktor_Petelin property:member_of_political_party ?b . ?b rdf:type ontology:political_party }
[]
political party
Q79854
SYSTEM
Communist Party of the Soviet Union
Q79854
(Q4360153,P102,c(Q7278))
action filter_type
action find
entity Q4360153
relation P102
type Q7278
[ANSWER] is Viktor Petelin a member of
['Q4360153', 'P102', {'concept': 'Q7278'}]
SELECT DISTINCT ?b WHERE { resource:Q4360153 property:P102 ?b . ?b rdf:type ontology:Q7278 }
Communist Party of the Soviet Union
Communist Party of the Soviet Union is Viktor Petelin a member of
Communist Party of the Soviet Union
action filter_type
action find
entity Viktor Petelin
relation member of political party
type political party
['Viktor Petelin', 'member of political party', {'concept': 'political party'}]
SELECT DISTINCT ?b WHERE { resource:Viktor_Petelin property:member_of_political_party ?b . ?b rdf:type ontology:political_party }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q4360153
P512
Q3412758
USER
What degree does that person hold ?
(Q79854,P512,c(Q3412758))
action filter_type
action find
entity Q4360153
relation P512
type Q3412758
['Q79854', 'P512', {'concept': 'Q3412758'}]
SELECT DISTINCT ?z WHERE { resource:Q4360153 property:P512 ?z . ?z rdf:type ontology:Q3412758 }
Viktor Petelin
action filter_type
action find
entity Viktor Petelin
relation academic degree
type qualification
['Communist Party of the Soviet Union', 'academic degree', {'concept': 'qualification'}]
SELECT DISTINCT ?z WHERE { resource:Viktor_Petelin property:academic_degree ?z . ?z rdf:type ontology:qualification }
[]
qualification
Q17281087
SYSTEM
Doktor Nauk in Philology
Q17281087
(Q79854,P512,c(Q3412758))
action filter_type
action find
entity Q4360153
relation P512
type Q3412758
That person holds the [ANSWER]
['Q79854', 'P512', {'concept': 'Q3412758'}]
SELECT DISTINCT ?z WHERE { resource:Q4360153 property:P512 ?z . ?z rdf:type ontology:Q3412758 }
Doktor Nauk in Philology
That person holds the Doktor Nauk in Philology
Doktor Nauk in Philology
action filter_type
action find
entity Viktor Petelin
relation academic degree
type qualification
['Communist Party of the Soviet Union', 'academic degree', {'concept': 'qualification'}]
SELECT DISTINCT ?z WHERE { resource:Viktor_Petelin property:academic_degree ?z . ?z rdf:type ontology:qualification }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q750116
P1142
Q1047113 Q7257 Q7278
USER
Which political parties believe in greater number of special fields or ideologies than Party of Communists of the Republic of Moldova ?
(c(Q7278),P1142,c(Q1047113)|c(Q7257))
action greater
action union
action find_tuple_counts
relation P1142
type Q7278
type Q1047113
action find_tuple_counts
relation P1142
type Q7278
type Q7257
action count
action filter_multi_types
action find
entity Q750116
relation P1142
type Q1047113
type Q7257
[{'concept': 'Q7278'}, 'P1142', [{'concept': 'Q1047113'}, {'concept': 'Q7257'}]]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?x ) AS ?q ) WHERE { VALUES ( ?t ) { ( ontology:Q1047113 ) ( ontology:Q7257 ) } . ?x rdf:type ?t } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?b ) WHERE { resource:Q750116 property:P1142 ?u . { { ?u rdf:type ontology:Q1047113 } UNION { ?u rdf:type ontology:Q7257 } } } } . FILTER ( ?q > ?b ) }
Party of Communists of the Republic of Moldova
action greater
action union
action find_tuple_counts
relation political ideology
type political party
type special field
action find_tuple_counts
relation political ideology
type political party
type ideology
action count
action filter_multi_types
action find
entity Party of Communists of the Republic of Moldova
relation political ideology
type special field
type ideology
[{'concept': 'political party'}, 'political ideology', [{'concept': 'special field'}, {'concept': 'ideology'}]]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?x ) AS ?q ) WHERE { VALUES ( ?t ) { ( ontology:special_field ) ( ontology:ideology ) } . ?x rdf:type ?t } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?b ) WHERE { resource:Party_of_Communists_of_the_Republic_of_Moldova property:political_ideology ?u . { { ?u rdf:type ontology:special_field } UNION { ?u rdf:type ontology:ideology } } } } . FILTER ( ?q > ?b ) }
[]
special field ideology political party
Q49766 Q196695 Q49768
SYSTEM
Alliance '90/The Greens, Green League, Social Democratic Party of Germany
Q3395191 Q280906 Q196695 Q3121556 Q950179 Q781486 Q3751152 Q5154286 Q852329 Q8960633 Q1778910 Q3499324 Q2576679 Q605468 Q3395560 Q1422942 Q438783 Q6063944 Q1445096 Q2531228 Q25079 Q2885750 Q587803 Q385543 Q3322686 Q43093 Q2031569 Q3366659 Q3133199 Q1104327 Q368067 Q980471 Q3573249 Q2395103 Q3306235 Q49758 Q2366462 Q3307042 Q2395467 Q155820 Q1129443 Q1278980 Q5033985 Q79854 Q49768 Q49762 Q1987660 Q3296785 Q653566 Q3324157 Q2866675 Q1628993 Q371402 Q641600 Q192821 Q3045391 Q1276239 Q49621 Q9056182 Q3327144 Q549209 Q4894568 Q3313706 Q713302 Q1437906 Q3306974 Q617603 Q537649 Q185088 Q325413 Q202649 Q584040 Q1737170 Q3328003 Q1125061 Q2257766 Q217009 Q49766 Q2118395 Q25713876 Q3313721 Q1377195 Q2838243 Q9056254 Q1153753 Q3326408 Q3327113 Q7309255 Q613786 Q2749535 Q2733414 Q1786349 Q2876738 Q9056440 Q1089640 Q3322790 Q5398117 Q1577483 Q6064176 Q4753534 Q662502 Q576518 Q794247 Q3751189 Q220945 Q777074 Q2165306 Q3750882 Q209546 Q659739 Q3320917 Q9669 Q5154414 Q883448 Q4345980 Q3306652 Q2054574 Q581186 Q2055003 Q634372 Q1393123 Q3322771 Q3028838 Q11698116 Q3328052 Q3327928 Q1029761 Q1359816 Q208242 Q18761823 Q17427 Q3395147 Q611548 Q2099347 Q3366598 Q3125165 Q3089721 Q49756 Q965481 Q49754 Q49755 Q639383 Q3133156 Q150068 Q625556 Q6063925 Q1412555 Q606955 Q788345 Q18511333 Q3306992 Q3780661 Q3134856 Q5604424 Q3328040 Q3047694 Q3327447 Q3571603 Q3181825 Q956240 Q1780610 Q2597196 Q937365 Q3175770 Q6063953 Q427325 Q8347650 Q3133165 Q8350511 Q130761 Q885433
(c(Q7278),P1142,c(Q1047113)|c(Q7257))
action greater
action union
action find_tuple_counts
relation P1142
type Q7278
type Q1047113
action find_tuple_counts
relation P1142
type Q7278
type Q7257
action count
action filter_multi_types
action find
entity Q750116
relation P1142
type Q1047113
type Q7257
[ANSWERS] believe in greater number of special fields or ideologies than Party of Communists of the Republic of Moldova
[{'concept': 'Q7278'}, 'P1142', [{'concept': 'Q1047113'}, {'concept': 'Q7257'}]]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?x ) AS ?q ) WHERE { VALUES ( ?t ) { ( ontology:Q1047113 ) ( ontology:Q7257 ) } . ?x rdf:type ?t } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?b ) WHERE { resource:Q750116 property:P1142 ?u . { { ?u rdf:type ontology:Q1047113 } UNION { ?u rdf:type ontology:Q7257 } } } } . FILTER ( ?q > ?b ) }
Liberal Democratic Party (Spain) Socialist Party of Navarra-PSOE Green League Syndicalist Party European Green Party Australian Greens Democrats Convergence of Navarre Communist Initiative Movement for a Europe of Liberties and Democracy Ezker Anitza Popular Socialist Party Green Party Communist Party of Greece (Marxist–Leninist) Communist Party of Poland Partido Galeguista Demócrata Radical Democratic Party Democratic Alternative Revolutionary Communist Party People's Party of Catalonia Euskadiko Ezkerra Alliance of Liberals and Democrats for Europe Party Socialist Party of National Liberation Communist Party of Norway Communist Party of the Netherlands Liberal Party Basque Nationalist Party People's Party of Galicia Russian Party Revolutionary Communist League Canarian Coalition Alliance of European National Movements Regional Action Communist Party of Aragon Pridnestrovie Communist Party Partido Galeguista National Democratic Party of Germany Regionalist Party of Cantabria Communist Party of National Liberation Communist Party of West Belarus Constitutional Democratic Party Democratic Convergence of Catalonia Andalusian Party Cantonal Party Communist Party of the Soviet Union Social Democratic Party of Germany Christian Democratic Union Green Confederation Galician Socialist Party-Galician Left European National Front Galician Party of the Proletariat Askatasuna Democratic Union of Catalonia Communist Party of Cuba Japanese Communist Party French Communist Party Ezker Batua – Berdeak EUDemocrats Workers Party of South Korea Christian Democratic Party Liberal Democratic Centre Union of the Democratic Centre Communist Party of Asturias Assembleia do Povo Unido Green Party Taiwan Asturias Forum Galician Nationalist Party-Galicianist Party Communist Workers' Party of Germany Communist Party of Hungary People's Party Communist Party of Belarus Party of the European Left España 2000 Italian Pirate Party Nationalist Left Eusko Alkartasuna Spanish Communist Workers' Party Socialist Revolutionary Party Alliance '90/The Greens Algerian Communist Party Catalan European Democratic Party Catalunya Lliure European Alliance for Freedom People's Alliance People's Party of Cantabria Ecology Generation Communist Party of the Valencian Country Communist Party of Spain Regionalist Party of Guadalajara Europe Ecology – The Greens Galician Left Alternative Socialist Party of the Basque Country – Basque Country Left Spanish Communist Workers' Party Democratic Left Nationalist Party of the Valencian Country Chunta Aragonesista Euskal Ezkerra Canarian Nationalist Alternative Alliance of European Conservatives and Reformists Nationalist Party of Cantabria Andalusian Social Liberal Party Federation of the Greens Communist Party of Aragon Partíu Asturianista Alternativa Popular Canaria Party of European Socialists Communist Party of Burma People's Alliance Communist Party of the Basque Country Batasuna Green Party of Switzerland Equo Green Party of England and Wales Communist Party of Madrid Association for Solidarity Perspectives Party of Democratic Reform Galician Coalition Aragonese Party Communist Party of Albania Socialists' Party of Catalonia Democratic Popular Party Ciudadanos Euskal Iraultzarako Alderdia Social Democratic Party Unified Socialist Party of Andalusia Partido Galeguista Anova-Nationalist Brotherhood Euskal Herria Bildu Communist Party of Thailand European People's Party The Greens Communist Party of China Democratic Reformist Party Bildu Azerbaijan Communist Party People's Party of Navarre Democratic Federal Republican Party Workers' Communist Party Democratic Farmers' Party of Germany Communist Party Christian Democratic Union Liberal Democratic Party of Germany European Free Alliance Unified Communist Party of Spain Republican Left of Catalonia Aralar Party Castilian Party Communist League of West Germany Communist Party of South Ossetia Democratic and Social Centre VZDOR - strana práce Galician Workers Party Communist Party of the Canaries Communist Party of Spain (Marxist–Leninist) Greens New South Wales National Front of Catalonia Socialist Party of Galicia United Left Socialist Party of Aragon Revolutionary Communist Party Spanish Socialist Workers' Party of Andalusia Communist Party of Latvia Brazilian Communist Party PSM-Nationalist Agreement Communist Party of Spain (Reconstituted) Partido Comunista de Galicia Communist Party of Vietnam Unitarian Candidacy of Workers Workers' Party of Spain – Communist Unity Galician Convergence Popular Unity Candidates Galician Nationalist Bloc
Alliance '90/The Greens, Green League and Social Democratic Party of Germany believe in greater number of special fields or ideologies than Party of Communists of the Republic of Moldova
Alliance '90/The Greens Green League Social Democratic Party of Germany
action greater
action union
action find_tuple_counts
relation political ideology
type political party
type special field
action find_tuple_counts
relation political ideology
type political party
type ideology
action count
action filter_multi_types
action find
entity Party of Communists of the Republic of Moldova
relation political ideology
type special field
type ideology
[{'concept': 'political party'}, 'political ideology', [{'concept': 'special field'}, {'concept': 'ideology'}]]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?x ) AS ?q ) WHERE { VALUES ( ?t ) { ( ontology:special_field ) ( ontology:ideology ) } . ?x rdf:type ?t } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?b ) WHERE { resource:Party_of_Communists_of_the_Republic_of_Moldova property:political_ideology ?u . { { ?u rdf:type ontology:special_field } UNION { ?u rdf:type ontology:ideology } } } } . FILTER ( ?q > ?b ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q2165306
P1142
Q1047113 Q7257 Q7278
USER
And what about People's Alliance?
(c(Q7278),P1142,c(Q1047113)|c(Q7257))
action greater
action union
action find_tuple_counts
relation P1142
type Q7278
type Q1047113
action find_tuple_counts
relation P1142
type Q7278
type Q7257
action count
action filter_multi_types
action find
entity Q2165306
relation P1142
type Q1047113
type Q7257
[{'concept': 'Q7278'}, 'P1142', [{'concept': 'Q1047113'}, {'concept': 'Q7257'}]]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?s ) ?g WHERE { VALUES ( ?q ) { ( ontology:Q7257 ) ( ontology:Q1047113 ) } . ?v rdf:type ?q } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?z ) WHERE { resource:Q2165306 property:P1142 ?m . { ?m rdf:type ?f . VALUES ( ?f ) { ( ontology:Q1047113 ) ( ontology:Q7257 ) } } } } . FILTER ( ?s > ?z ) }
People's Alliance
action greater
action union
action find_tuple_counts
relation political ideology
type political party
type special field
action find_tuple_counts
relation political ideology
type political party
type ideology
action count
action filter_multi_types
action find
entity People's Alliance
relation political ideology
type special field
type ideology
[{'concept': 'political party'}, 'political ideology', [{'concept': 'special field'}, {'concept': 'ideology'}]]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?s ) ?g WHERE { VALUES ( ?q ) { ( ontology:ideology ) ( ontology:special_field ) } . ?v rdf:type ?q } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?z ) WHERE { resource:People's_Alliance property:political_ideology ?m . { ?m rdf:type ?f . VALUES ( ?f ) { ( ontology:special_field ) ( ontology:ideology ) } } } } . FILTER ( ?s > ?z ) }
[]
special field ideology political party
Q49766 Q196695 Q49768
SYSTEM
Alliance '90/The Greens, Green League, Social Democratic Party of Germany
Q196695 Q1129443 Q49768 Q49762 Q653566 Q1628993 Q192821 Q49766 Q25713876 Q613786 Q5398117 Q1393123 Q208242 Q150068 Q18511333 Q130761
(c(Q7278),P1142,c(Q1047113)|c(Q7257))
action greater
action union
action find_tuple_counts
relation P1142
type Q7278
type Q1047113
action find_tuple_counts
relation P1142
type Q7278
type Q7257
action count
action filter_multi_types
action find
entity Q2165306
relation P1142
type Q1047113
type Q7257
[ANSWERS]
[{'concept': 'Q7278'}, 'P1142', [{'concept': 'Q1047113'}, {'concept': 'Q7257'}]]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?s ) ?g WHERE { VALUES ( ?q ) { ( ontology:Q7257 ) ( ontology:Q1047113 ) } . ?v rdf:type ?q } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?z ) WHERE { resource:Q2165306 property:P1142 ?m . { ?m rdf:type ?f . VALUES ( ?f ) { ( ontology:Q1047113 ) ( ontology:Q7257 ) } } } } . FILTER ( ?s > ?z ) }
Green League Democratic Convergence of Catalonia Social Democratic Party of Germany Christian Democratic Union European National Front Democratic Union of Catalonia French Communist Party Alliance '90/The Greens Catalan European Democratic Party Europe Ecology – The Greens Canarian Nationalist Alternative Ciudadanos European People's Party Republican Left of Catalonia VZDOR - strana práce Popular Unity Candidates
Alliance '90/The Greens Green League Social Democratic Party of Germany
action greater
action union
action find_tuple_counts
relation political ideology
type political party
type special field
action find_tuple_counts
relation political ideology
type political party
type ideology
action count
action filter_multi_types
action find
entity People's Alliance
relation political ideology
type special field
type ideology
[{'concept': 'political party'}, 'political ideology', [{'concept': 'special field'}, {'concept': 'ideology'}]]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?s ) ?g WHERE { VALUES ( ?q ) { ( ontology:ideology ) ( ontology:special_field ) } . ?v rdf:type ?q } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?z ) WHERE { resource:People's_Alliance property:political_ideology ?m . { ?m rdf:type ?f . VALUES ( ?f ) { ( ontology:special_field ) ( ontology:ideology ) } } } } . FILTER ( ?s > ?z ) }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q33999 Q196695
P106 P102
Q502895
USER
Which people belong to the political party named Green League and have a job as actor ?
AND((c(Q502895),P102,Q196695), (c(Q502895),P106,Q33999))
action filter_type
action intersection
action find_reverse
entity Q196695
relation P102
action find_reverse
entity Q33999
relation P106
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P102', 'Q196695'], [{'concept': 'Q502895'}, 'P106', 'Q33999']]}
SELECT DISTINCT ?p WHERE { ?p property:P102 resource:Q196695 . ?p property:P106 resource:Q33999 . ?p rdf:type ontology:Q502895 }
actor Green League
action filter_type
action intersection
action find_reverse
entity Green League
relation member of political party
action find_reverse
entity actor
relation occupation
type common name
{'AND': [[{'concept': 'common name'}, 'member of political party', 'Green League'], [{'concept': 'common name'}, 'occupation', 'actor']]}
SELECT DISTINCT ?p WHERE { ?p property:member_of_political_party resource:Green_League . ?p property:occupation resource:actor . ?p rdf:type ontology:common_name }
[]
common name
Q5494368 Q3267077
SYSTEM
Jussi Chydenius, Jani Toivola
Q5494368 Q3267077
AND((c(Q502895),P102,Q196695), (c(Q502895),P106,Q33999))
action filter_type
action intersection
action find_reverse
entity Q196695
relation P102
action find_reverse
entity Q33999
relation P106
type Q502895
[ANSWERS] belong to the political party named Green League and have a job as actor
{'AND': [[{'concept': 'Q502895'}, 'P102', 'Q196695'], [{'concept': 'Q502895'}, 'P106', 'Q33999']]}
SELECT DISTINCT ?p WHERE { ?p property:P102 resource:Q196695 . ?p property:P106 resource:Q33999 . ?p rdf:type ontology:Q502895 }
Jussi Chydenius Jani Toivola
Jussi Chydenius and Jani Toivola belong to the political party named Green League and have a job as actor
Jussi Chydenius Jani Toivola
action filter_type
action intersection
action find_reverse
entity Green League
relation member of political party
action find_reverse
entity actor
relation occupation
type common name
{'AND': [[{'concept': 'common name'}, 'member of political party', 'Green League'], [{'concept': 'common name'}, 'occupation', 'actor']]}
SELECT DISTINCT ?p WHERE { ?p property:member_of_political_party resource:Green_League . ?p property:occupation resource:actor . ?p rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1303
Q34379 Q502895
USER
How many musical instruments can atmost 2669 people perform with ?
(c(Q502895),P1303,c(Q34379))
action count
action atmost
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 2669
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?g ) WHERE { { SELECT DISTINCT ?d ( COUNT ( ?m ) AS ?v ) WHERE { ?m property:P1303 ?d . ?d rdf:type ontology:Q34379 . ?m rdf:type ontology:Q502895 } GROUP BY ?d } . FILTER ( ?v <= 2669 ) }
action count
action atmost
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 2669
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?g ) WHERE { { SELECT DISTINCT ?d ( COUNT ( ?m ) AS ?v ) WHERE { ?m property:instrument ?d . ?d rdf:type ontology:musical_instrument . ?m rdf:type ontology:common_name } GROUP BY ?d } . FILTER ( ?v <= 2669 ) }
[]
musical instrument common name
SYSTEM
64
Q80284 Q46185 Q201129 Q424017 Q890073 Q80019 Q1178361 Q2563510 Q604538 Q2660670 Q39777 Q3574843 Q678090 Q81982 Q182718 Q490054 Q873588 Q593995 Q1327500 Q206987 Q1879664 Q189737 Q1759986 Q1798603 Q1099153 Q8338 Q120585 Q713298 Q8371 Q1024685 Q213461 Q3382191 Q816793 Q862501 Q213100 Q244976 Q537750 Q626035 Q1179017 Q742180 Q320341 Q1300012 Q1444 Q748455 Q669370 Q290951 Q220971 Q178933 Q16875637 Q790468 Q128309 Q1129422 Q379248 Q726306 Q173453 Q483994 Q744831 Q963150 Q16155191 Q644440 Q1343007 Q11404 Q497224 Q3623688
(c(Q502895),P1303,c(Q34379))
action count
action atmost
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 2669
[ANSWER]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?g ) WHERE { { SELECT DISTINCT ?d ( COUNT ( ?m ) AS ?v ) WHERE { ?m property:P1303 ?d . ?d rdf:type ontology:Q34379 . ?m rdf:type ontology:Q502895 } GROUP BY ?d } . FILTER ( ?v <= 2669 ) }
viola bass guitar lyre acoustic bass guitar Body percussion double bass davul steel-string acoustic guitar Temple block Irish bouzouki maraca tonbak Twelve-string guitar harpsichord Nyckelharpa Ondioline Jinghu player piano electronic musical instrument vibraphone spoon timpani Wurlitzer electric piano string instrument clavinet trumpet Tsuzumi geomungo cello cabasa harmonium upright piano Bendir ondes Martenot tabla bodhrán Djembe glockenspiel Daxophone viola d'amore celesta toy piano organ cajón gusle Kamancheh marimba Hardanger fiddle transverse flute baritone horn drum kit morin khuur Timbales erhu wind instrument Kazoo Mridangam tenor guitar Saraswati veena Lap steel guitar electronic keyboard drum Kayamb Paraguayan harp
64
action count
action atmost
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 2669
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?g ) WHERE { { SELECT DISTINCT ?d ( COUNT ( ?m ) AS ?v ) WHERE { ?m property:instrument ?d . ?d rdf:type ontology:musical_instrument . ?m rdf:type ontology:common_name } GROUP BY ?d } . FILTER ( ?v <= 2669 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q5494368
P40
Q502895
USER
Whose child are Jussi Chydenius ?
(c(Q502895),P40,Q5494368)
action filter_type
action find_reverse
entity Q5494368
relation P40
type Q502895
[{'concept': 'Q502895'}, 'P40', 'Q5494368']
SELECT DISTINCT ?k WHERE { ?k property:P40 resource:Q5494368 . ?k rdf:type ontology:Q502895 }
Jussi Chydenius
action filter_type
action find_reverse
entity Jussi Chydenius
relation child
type common name
[{'concept': 'common name'}, 'child', 'Jussi Chydenius']
SELECT DISTINCT ?k WHERE { ?k property:child resource:Jussi_Chydenius . ?k rdf:type ontology:common_name }
[]
common name
Q3075062 Q6348326
SYSTEM
Kaj Chydenius, Kaisa Korhonen
Q3075062 Q6348326
(c(Q502895),P40,Q5494368)
action filter_type
action find_reverse
entity Q5494368
relation P40
type Q502895
[ANSWERS] are Jussi Chydenius
[{'concept': 'Q502895'}, 'P40', 'Q5494368']
SELECT DISTINCT ?k WHERE { ?k property:P40 resource:Q5494368 . ?k rdf:type ontology:Q502895 }
Kaj Chydenius Kaisa Korhonen
Kaj Chydenius and Kaisa Korhonen are Jussi Chydenius
Kaj Chydenius Kaisa Korhonen
action filter_type
action find_reverse
entity Jussi Chydenius
relation child
type common name
[{'concept': 'common name'}, 'child', 'Jussi Chydenius']
SELECT DISTINCT ?k WHERE { ?k property:child resource:Jussi_Chydenius . ?k rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q3075062 Q6348326
P26
Q502895
USER
Which people are married to those ones ?
(c(Q502895),P26,Q3075062) (c(Q502895),P26,Q6348326)
action filter_type
action find
entity prev_answer
relation P26
type Q502895
[{'concept': 'Q502895'}, 'P26', 'Q3075062'] [{'concept': 'Q502895'}, 'P26', 'Q6348326']
SELECT DISTINCT ?c WHERE { ?h property:P26 ?c . ?c rdf:type ontology:Q502895 . VALUES ( ?h ) { ( resource:Q3075062 ) ( resource:Q6348326 ) } }
Kaj Chydenius Kaisa Korhonen
action filter_type
action find
entity prev_answer
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Kaj Chydenius'] [{'concept': 'common name'}, 'spouse', 'Kaisa Korhonen']
SELECT DISTINCT ?c WHERE { ?h property:spouse ?c . ?c rdf:type ontology:common_name . VALUES ( ?h ) { ( resource:Kaj_Chydenius ) ( resource:Kaisa_Korhonen ) } }
[]
common name
Q6348326 Q3075062
SYSTEM
Kaisa Korhonen, Kaj Chydenius
Q6348326 Q3075062
(c(Q502895),P26,Q3075062) (c(Q502895),P26,Q6348326)
action filter_type
action find
entity prev_answer
relation P26
type Q502895
[ANSWERS] are married to those ones
[{'concept': 'Q502895'}, 'P26', 'Q3075062'] [{'concept': 'Q502895'}, 'P26', 'Q6348326']
SELECT DISTINCT ?c WHERE { ?h property:P26 ?c . ?c rdf:type ontology:Q502895 . VALUES ( ?h ) { ( resource:Q3075062 ) ( resource:Q6348326 ) } }
Kaisa Korhonen Kaj Chydenius
Kaisa Korhonen and Kaj Chydenius are married to those ones
Kaisa Korhonen Kaj Chydenius
action filter_type
action find
entity prev_answer
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Kaj Chydenius'] [{'concept': 'common name'}, 'spouse', 'Kaisa Korhonen']
SELECT DISTINCT ?c WHERE { ?h property:spouse ?c . ?c rdf:type ontology:common_name . VALUES ( ?h ) { ( resource:Kaj_Chydenius ) ( resource:Kaisa_Korhonen ) } }
[]