Simple Question (Direct)
Simple Question
Q2037809
P39
Q12737077
USER
Which occupation was a position for which Ottilie Scholz was appointed ?
(Q2037809,P39,c(Q12737077))
action filter_type
action find
entity Q2037809
relation P39
type Q12737077
['Q2037809', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?h WHERE { resource:Q2037809 property:P39 ?h . ?h rdf:type ontology:Q12737077 }
Ottilie Scholz
action filter_type
action find
entity Ottilie Scholz
relation position held
type occupation
['Ottilie Scholz', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?h WHERE { resource:Ottilie_Scholz property:position_held ?h . ?h rdf:type ontology:occupation }
[]
occupation
Q30185
SYSTEM
mayor
Q30185
(Q2037809,P39,c(Q12737077))
action filter_type
action find
entity Q2037809
relation P39
type Q12737077
The [ANSWER] was a position for which Ottilie Scholz was appointed
['Q2037809', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?h WHERE { resource:Q2037809 property:P39 ?h . ?h rdf:type ontology:Q12737077 }
mayor
The mayor was a position for which Ottilie Scholz was appointed
mayor
action filter_type
action find
entity Ottilie Scholz
relation position held
type occupation
['Ottilie Scholz', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?h WHERE { resource:Ottilie_Scholz property:position_held ?h . ?h rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2037809
P1344
Q1499496
USER
Which German presidential election did Ottilie Scholz compete in ?
(Q2037809,P1344,c(Q1499496))
action filter_type
action find
entity Q2037809
relation P1344
type Q1499496
['Q2037809', 'P1344', {'concept': 'Q1499496'}]
SELECT DISTINCT ?q WHERE { resource:Q2037809 property:P1344 ?q . ?q rdf:type ontology:Q1499496 }
Ottilie Scholz
action filter_type
action find
entity Ottilie Scholz
relation participant of
type German presidential election
['Ottilie Scholz', 'participant of', {'concept': 'German presidential election'}]
SELECT DISTINCT ?q WHERE { resource:Ottilie_Scholz property:participant_of ?q . ?q rdf:type ontology:German_presidential_election }
[]
German presidential election
Q707051
SYSTEM
German presidential election, 2009
Q707051
(Q2037809,P1344,c(Q1499496))
action filter_type
action find
entity Q2037809
relation P1344
type Q1499496
Ottilie Scholz competed in [ANSWER]
['Q2037809', 'P1344', {'concept': 'Q1499496'}]
SELECT DISTINCT ?q WHERE { resource:Q2037809 property:P1344 ?q . ?q rdf:type ontology:Q1499496 }
German presidential election, 2009
Ottilie Scholz competed in German presidential election, 2009
German presidential election, 2009
action filter_type
action find
entity Ottilie Scholz
relation participant of
type German presidential election
['Ottilie Scholz', 'participant of', {'concept': 'German presidential election'}]
SELECT DISTINCT ?q WHERE { resource:Ottilie_Scholz property:participant_of ?q . ?q rdf:type ontology:German_presidential_election }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q707051 Q10309031
P710
Q502895
USER
Did José Braga attend that German presidential election ?
(Q707051,P710,Q10309031)
action is_in
entity Q10309031
action find
entity Q707051
relation P710
['Q707051', 'P710', 'Q10309031']
ASK WHERE { resource:Q707051 property:P710 resource:Q10309031 }
German presidential election, 2009 José Braga
action is_in
entity José Braga
action find
entity German presidential election, 2009
relation participant
['German presidential election, 2009', 'participant', 'José Braga']
ASK WHERE { resource:German_presidential_election,_2009 property:participant resource:José_Braga }
[]
common name
SYSTEM
NO
(Q707051,P710,Q10309031)
action is_in
entity Q10309031
action find
entity Q707051
relation P710
[ANSWER]
['Q707051', 'P710', 'Q10309031']
ASK WHERE { resource:Q707051 property:P710 resource:Q10309031 }
No
action is_in
entity José Braga
action find
entity German presidential election, 2009
relation participant
['German presidential election, 2009', 'participant', 'José Braga']
ASK WHERE { resource:German_presidential_election,_2009 property:participant resource:José_Braga }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q965637 Q10309031
P19 P27
Q15617994
USER
Which administrative territories are the countries of citizenship of José Braga or were Napoleon Sarony born at ?
OR((Q10309031,P27,c(Q15617994)), (Q965637,P19,c(Q15617994)))
action filter_type
action union
action find
entity Q10309031
relation P27
action find
entity Q965637
relation P19
type Q15617994
{'OR': [['Q10309031', 'P27', {'concept': 'Q15617994'}], ['Q965637', 'P19', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Q10309031 property:P27 ?y } UNION { resource:Q965637 property:P19 ?y } } . ?y rdf:type ontology:Q15617994 }
Napoleon Sarony José Braga
action filter_type
action union
action find
entity José Braga
relation country of citizenship
action find
entity Napoleon Sarony
relation place of birth
type designation for an administrative territorial entity
{'OR': [['José Braga', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Napoleon Sarony', 'place of birth', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?y WHERE { { { resource:José_Braga property:country_of_citizenship ?y } UNION { resource:Napoleon_Sarony property:place_of_birth ?y } } . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q155 Q176
SYSTEM
Brazil, Quebec
Q155 Q176
OR((Q10309031,P27,c(Q15617994)), (Q965637,P19,c(Q15617994)))
action filter_type
action union
action find
entity Q10309031
relation P27
action find
entity Q965637
relation P19
type Q15617994
[ANSWERS] are the countries of citizenship of José Braga or were Napoleon Sarony born at
{'OR': [['Q10309031', 'P27', {'concept': 'Q15617994'}], ['Q965637', 'P19', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Q10309031 property:P27 ?y } UNION { resource:Q965637 property:P19 ?y } } . ?y rdf:type ontology:Q15617994 }
Brazil Quebec
Brazil and Quebec are the countries of citizenship of José Braga or were Napoleon Sarony born at
Brazil Quebec
action filter_type
action union
action find
entity José Braga
relation country of citizenship
action find
entity Napoleon Sarony
relation place of birth
type designation for an administrative territorial entity
{'OR': [['José Braga', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Napoleon Sarony', 'place of birth', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?y WHERE { { { resource:José_Braga property:country_of_citizenship ?y } UNION { resource:Napoleon_Sarony property:place_of_birth ?y } } . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Clarification
Quantitative|Count|Single entity type|Indirect
P530
Q15617994
USER
How many administrative territories have diplomatic relations with that administrative territory ?
(Q155,P530,c(Q15617994))
['Q155', 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q21475816 property:P530 ?z . ?z rdf:type ontology:Q15617994 }
['Brazil', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Brazil property:diplomatic_relation ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Quantitative|Count|Single entity type|Clarification
Q176
SYSTEM
Did you mean Quebec ?
(Q155,P530,c(Q15617994)) (Q176,P530,c(Q15617994))
[ANSWER]
['Q155', 'P530', {'concept': 'Q15617994'}] ['Q176', 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q21475816 property:P530 ?z . ?z rdf:type ontology:Q15617994 }
Did you mean Quebec ?
Quebec
['Brazil', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['Quebec', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Brazil property:diplomatic_relation ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Brazil. Could you tell me the answer for that?
(Q155,P530,c(Q15617994))
Q155
['Q155', 'P530', {'concept': 'Q15617994'}]
['Brazil', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
[]
SYSTEM
53
Q96 Q419 Q801 Q800 Q843 Q1029 Q822 Q241 Q244 Q668 Q574 Q414 Q983 Q142 Q145 Q148 Q783 Q43 Q17 Q30 Q36 Q77 Q750 Q1016 Q739 Q423 Q717 Q79 Q733 Q1011 Q962 Q736 Q298 Q252 Q399 Q403 Q258 Q212 Q213 Q45 Q159 Q734 Q41 Q790 Q38 Q796 Q794 Q917 Q1033 Q29 Q958 Q1049 Q916
(Q155,P530,c(Q15617994))
[ANSWER]
['Q155', 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q21475816 property:P530 ?z . ?z rdf:type ontology:Q15617994 }
Mexico Peru Israel Costa Rica Pakistan Mozambique Lebanon Cuba Barbados India East Timor Argentina Equatorial Guinea France United Kingdom People's Republic of China Honduras Turkey Japan United States of America Poland Uruguay Bolivia Libya Colombia North Korea Venezuela Egypt Paraguay Cape Verde Benin Ecuador Chile Indonesia Armenia Serbia South Africa Ukraine Czech Republic Portugal Russia Guyana Greece Haiti Italy Iraq Iran Bhutan Nigeria Spain South Sudan Sudan Angola
53
['Brazil', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Brazil property:diplomatic_relation ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q6581097 Q176
P19 P21
Q502895
USER
Which people have birthplace at Quebec and have the gender as male ?
AND((c(Q502895),P19,Q176), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q176
relation P19
action find_reverse
entity Q6581097
relation P21
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P19', 'Q176'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?j WHERE { ?j property:P19 resource:Q176 . ?j property:P21 resource:Q6581097 . ?j rdf:type ontology:Q502895 }
male Quebec
action filter_type
action intersection
action find_reverse
entity Quebec
relation place of birth
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'place of birth', 'Quebec'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?j WHERE { ?j property:place_of_birth resource:Quebec . ?j property:gender resource:male . ?j rdf:type ontology:common_name }
[]
common name
Q961273 Q5262364 Q2070202 Q1634325 Q15918253 Q6848643 Q704265 Q305503 Q128850 Q24807767
SYSTEM
Some of them are Jacques La Ramee, Derek Smith, Percival Molson, Hugh Farquharson, Dominic Gagnon, Mike Roy, Bat Masterson, Herman Murray, Olivier Occéan, Jean d'Ailleboust d'Argenteuil
Q950174 Q980381 Q3160099 Q15995663 Q9201569 Q3142396 Q1877030 Q2251646 Q128850 Q1451041 Q3014239 Q2848728 Q2848541 Q354670 Q454152 Q16186174 Q3271796 Q604334 Q3559527 Q1254791 Q3083431 Q1133492 Q3573611 Q3287975 Q4351994 Q20641325 Q2830316 Q18339800 Q630516 Q3115388 Q5415923 Q1160434 Q3339543 Q6074537 Q349739 Q961273 Q1255769 Q6170989 Q761556 Q1408766 Q1238207 Q3591163 Q445890 Q1742060 Q4759926 Q19886671 Q1263915 Q324619 Q1629227 Q3168459 Q17485894 Q2272452 Q334347 Q3559431 Q3170989 Q3295402 Q3419453 Q1389054 Q1312096 Q7027844 Q22096294 Q1410263 Q7810414 Q3018312 Q3387070 Q11813538 Q21064339 Q23776000 Q5233280 Q3176577 Q16546372 Q3369518 Q11285472 Q18152679 Q518699 Q2824507 Q5262364 Q16007649 Q3084059 Q24005208 Q1930637 Q1208406 Q3264787 Q3033951 Q1700011 Q3434698 Q3121221 Q220067 Q6283410 Q5081722 Q3501698 Q5497273 Q24807767 Q704265 Q20985363 Q5562091 Q7329482 Q3439761 Q5726633 Q3574156 Q1685006 Q3339645 Q2896594 Q3386998 Q2872046 Q3165214 Q6695802 Q3082790 Q3270436 Q3264836 Q17350711 Q14802429 Q4890108 Q3260640 Q20641575 Q2070202 Q593044 Q3289463 Q1634325 Q17485877 Q360286 Q1605651 Q20641196 Q3036195 Q1380793 Q3370434 Q305503 Q1999470 Q15918253 Q375243 Q16192621 Q2186716 Q6848643 Q3501883 Q965637 Q15917516 Q1381756
AND((c(Q502895),P19,Q176), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q176
relation P19
action find_reverse
entity Q6581097
relation P21
type Q502895
[ANSWERS] have birthplace at Quebec and have the gender as male
{'AND': [[{'concept': 'Q502895'}, 'P19', 'Q176'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?j WHERE { ?j property:P19 resource:Q176 . ?j property:P21 resource:Q6581097 . ?j rdf:type ontology:Q502895 }
Georges-Émile Tanguay Frank Crowe Jacques Tourangeau Frank Bond Danny Marino Hugo Girard Luke Gagnon George Trakas Olivier Occéan François Gauthier Daniel Johnson André Turpin André Ristic Albert Sanschagrin Domina Jalbert Denis Carufel Léopold Dion Maurice Baril Vincent Cauchon Alexis-Charles Boucher François-Joseph Bissot Damian Pettigrew Yves Desgagnés Marc Dupréé Alcide Laurin Nicolas Pinto Alain Thibault Michael Zehaf-Bibeau Marcel Pronovost Grant Crack Evans John Price Daniel Desnoyers Nic Leblanc Irving Corey Joseph McCormick Jacques La Ramee J. Lincoln Newhall Jean Larrivée Alex Wilson Jean Gravelle Joseph Dominique Gauthier Éric Goulet Joseph Gilles Napoléon Ouellet King O'Malley André H. Caron Michael-Joseph Ahern Wyatt Eaton Bill Cowley Pierre Guénette Jean-Paul Desbiens Marcel Côté Serge Houde Reginald Fessenden Vincent-Guillaume Otis Jean Brillant Martin Drainville Raphaël Grenier-Benoît Louis Lecompte Jacques Bienvenue Nick Rosen Louis Vachon Ken Scott Tivi Etok David Lonergan Pierre Talon Patrick Sarsfield Manley Anthony LeBlanc Charles Smeaton David Edward Price Jeff Roop David Lemelin Patrick Hivon Henri-Marc Ami Hazen Hansard André Gagnon Adjutor Rivard Derek Smith Josaphat Brunet François Boulay Sébastien Dubé Michel Arcand Jules Léger Luc De Larochellière Dollard Ménard John F. Farnsworth Robert Bériau Gustave Lachance Alphonse Lavallée-Smith Joseph Gervais Charles Poulin Stéphane Crête Frederick Arthur McKenzie Jean d'Ailleboust d'Argenteuil Bat Masterson Al Falle Gilles Ste-Croix Richard Tibbits Arthur Westover Henry P. Russell Yvon Roy Olivier François Xavier Sarony Nicholas Boilvin Benoît Marleau Pierre Simard Aurélien Gill Jean-Claude Saint-Onge Luc Roy Frank Schorpion Leo Ayotte Luc Guérin Daniel Laflamme Marie-Joseph Lemieux Benoit McGinnis Louis-Joseph Gaultier de La Vérendrye Jean Robert Toussaint Percival Molson Louis-Philippe Pigeon Marcel Veilleux Hugh Farquharson Charles Le Blanc Paul-Émile Borduas Henri-André Laperrière Philippe-Andre Moreau Donat Raymond Gratien Gélinas Paul Ahmarani Herman Murray Norman Brooks Dominic Gagnon Cyril Slater Norm Brunet Glenn H. Mullin Mike Roy Stéphane Lafleur Napoleon Sarony Richard Quesnel Léopold Simoneau
Jacques La Ramee, Derek Smith, Percival Molson, Hugh Farquharson, Dominic Gagnon, Mike Roy, Bat Masterson, Herman Murray, Olivier Occéan and Jean d'Ailleboust d'Argenteuil have birthplace at Quebec and have the gender as male
Jacques La Ramee Derek Smith Percival Molson Hugh Farquharson Dominic Gagnon Mike Roy Bat Masterson Herman Murray Olivier Occéan Jean d'Ailleboust d'Argenteuil
action filter_type
action intersection
action find_reverse
entity Quebec
relation place of birth
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'place of birth', 'Quebec'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?j WHERE { ?j property:place_of_birth resource:Quebec . ?j property:gender resource:male . ?j rdf:type ontology:common_name }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q220971
P1303
Q34379 Q502895
USER
How many musical instruments are played by approximately the same number of people as marimba ?
(c(Q502895),P1303,c(Q34379))
action count
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find
entity Q220971
relation P1303
type Q34379
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?v ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?f ) AS ?s ) WHERE { ?f property:P1303 ?t . ?t rdf:type ontology:Q34379 . ?f rdf:type ontology:Q502895 } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?r ) WHERE { resource:Q220971 property:P1303 ?n . ?n rdf:type ontology:Q34379 } } . FILTER ( ?s = ?r ) }
marimba
action count
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity marimba
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?v ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?f ) AS ?s ) WHERE { ?f property:instrument ?t . ?t rdf:type ontology:musical_instrument . ?f rdf:type ontology:common_name } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?r ) WHERE { resource:marimba property:instrument ?n . ?n rdf:type ontology:musical_instrument } } . FILTER ( ?s = ?r ) }
[]
musical instrument common name
SYSTEM
60
Q80284 Q201129 Q424017 Q890073 Q80019 Q1178361 Q2563510 Q604538 Q2660670 Q39777 Q3574843 Q678090 Q81982 Q182718 Q490054 Q873588 Q593995 Q1327500 Q206987 Q1879664 Q189737 Q1759986 Q1798603 Q1099153 Q120585 Q713298 Q8371 Q1024685 Q213461 Q3382191 Q816793 Q862501 Q213100 Q244976 Q537750 Q626035 Q1179017 Q742180 Q320341 Q1300012 Q748455 Q669370 Q290951 Q220971 Q178933 Q16875637 Q790468 Q1129422 Q379248 Q726306 Q173453 Q483994 Q744831 Q963150 Q16155191 Q644440 Q1343007 Q11404 Q497224 Q3623688
(c(Q502895),P1303,c(Q34379))
action count
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find
entity Q220971
relation P1303
type Q34379
[ANSWER]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?v ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?f ) AS ?s ) WHERE { ?f property:P1303 ?t . ?t rdf:type ontology:Q34379 . ?f rdf:type ontology:Q502895 } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?r ) WHERE { resource:Q220971 property:P1303 ?n . ?n rdf:type ontology:Q34379 } } . FILTER ( ?s = ?r ) }
viola 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 Tsuzumi geomungo cello cabasa harmonium upright piano Bendir ondes Martenot tabla bodhrán Djembe glockenspiel Daxophone viola d'amore celesta toy piano cajón gusle Kamancheh marimba Hardanger fiddle transverse flute baritone horn morin khuur Timbales erhu wind instrument Kazoo Mridangam tenor guitar Saraswati veena Lap steel guitar electronic keyboard drum Kayamb Paraguayan harp
60
action count
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity marimba
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?v ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?f ) AS ?s ) WHERE { ?f property:instrument ?t . ?t rdf:type ontology:musical_instrument . ?f rdf:type ontology:common_name } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?r ) WHERE { resource:marimba property:instrument ?n . ?n rdf:type ontology:musical_instrument } } . FILTER ( ?s = ?r ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q816793
P1303
Q34379 Q502895
USER
And also tell me about Bendir?
(c(Q502895),P1303,c(Q34379))
action count
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find
entity Q816793
relation P1303
type Q34379
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?z ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?e ) AS ?a ) WHERE { ?e property:P1303 ?f . ?f rdf:type ontology:Q34379 . ?e rdf:type ontology:Q502895 } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?j ) WHERE { resource:Q816793 property:P1303 ?x . ?x rdf:type ontology:Q34379 } } . FILTER ( ?a = ?j ) }
Bendir
action count
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity Bendir
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?z ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?e ) AS ?a ) WHERE { ?e property:instrument ?f . ?f rdf:type ontology:musical_instrument . ?e rdf:type ontology:common_name } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?j ) WHERE { resource:Bendir property:instrument ?x . ?x rdf:type ontology:musical_instrument } } . FILTER ( ?a = ?j ) }
[]
musical instrument common name
SYSTEM
60
Q80284 Q201129 Q424017 Q890073 Q80019 Q1178361 Q2563510 Q604538 Q2660670 Q39777 Q3574843 Q678090 Q81982 Q182718 Q490054 Q873588 Q593995 Q1327500 Q206987 Q1879664 Q189737 Q1759986 Q1798603 Q1099153 Q120585 Q713298 Q8371 Q1024685 Q213461 Q3382191 Q816793 Q862501 Q213100 Q244976 Q537750 Q626035 Q1179017 Q742180 Q320341 Q1300012 Q748455 Q669370 Q290951 Q220971 Q178933 Q16875637 Q790468 Q1129422 Q379248 Q726306 Q173453 Q483994 Q744831 Q963150 Q16155191 Q644440 Q1343007 Q11404 Q497224 Q3623688
(c(Q502895),P1303,c(Q34379))
action count
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find
entity Q816793
relation P1303
type Q34379
[ANSWER]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?z ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?e ) AS ?a ) WHERE { ?e property:P1303 ?f . ?f rdf:type ontology:Q34379 . ?e rdf:type ontology:Q502895 } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?j ) WHERE { resource:Q816793 property:P1303 ?x . ?x rdf:type ontology:Q34379 } } . FILTER ( ?a = ?j ) }
viola 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 Tsuzumi geomungo cello cabasa harmonium upright piano Bendir ondes Martenot tabla bodhrán Djembe glockenspiel Daxophone viola d'amore celesta toy piano cajón gusle Kamancheh marimba Hardanger fiddle transverse flute baritone horn morin khuur Timbales erhu wind instrument Kazoo Mridangam tenor guitar Saraswati veena Lap steel guitar electronic keyboard drum Kayamb Paraguayan harp
60
action count
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity Bendir
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?z ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?e ) AS ?a ) WHERE { ?e property:instrument ?f . ?f rdf:type ontology:musical_instrument . ?e rdf:type ontology:common_name } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?j ) WHERE { resource:Bendir property:instrument ?x . ?x rdf:type ontology:musical_instrument } } . FILTER ( ?a = ?j ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q961273
P106
Q12737077
USER
What does Jacques La Ramee do for a living ?
(Q961273,P106,c(Q12737077))
action filter_type
action find
entity Q961273
relation P106
type Q12737077
['Q961273', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?d WHERE { resource:Q961273 property:P106 ?d . ?d rdf:type ontology:Q12737077 }
Jacques La Ramee
action filter_type
action find
entity Jacques La Ramee
relation occupation
type occupation
['Jacques La Ramee', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?d WHERE { resource:Jacques_La_Ramee property:occupation ?d . ?d rdf:type ontology:occupation }
[]
occupation
Q14009165
SYSTEM
trapper
Q14009165
(Q961273,P106,c(Q12737077))
action filter_type
action find
entity Q961273
relation P106
type Q12737077
Jacques La Ramee does a [ANSWER] for a living
['Q961273', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?d WHERE { resource:Q961273 property:P106 ?d . ?d rdf:type ontology:Q12737077 }
trapper
Jacques La Ramee does a trapper for a living
trapper
action filter_type
action find
entity Jacques La Ramee
relation occupation
type occupation
['Jacques La Ramee', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?d WHERE { resource:Jacques_La_Ramee property:occupation ?d . ?d rdf:type ontology:occupation }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P417
Q502895 Q12737077
USER
How many people are the names of the patron saint of atmost 4 occupations ?
(c(Q12737077),P417,c(Q502895))
action count
action atmost
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
value 4
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?c ) WHERE { { SELECT DISTINCT ?z ( COUNT ( ?e ) AS ?h ) WHERE { ?e property:P417 ?z . ?e rdf:type ontology:Q12737077 . ?z rdf:type ontology:Q502895 } GROUP BY ?z } . FILTER ( ?h <= 4 ) }
action count
action atmost
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
value 4
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?c ) WHERE { { SELECT DISTINCT ?z ( COUNT ( ?e ) AS ?h ) WHERE { ?e property:patron_saint ?z . ?e rdf:type ontology:occupation . ?z rdf:type ontology:common_name } GROUP BY ?z } . FILTER ( ?h <= 4 ) }
[]
common name occupation
SYSTEM
318
Q2366998 Q453698 Q561838 Q380092 Q129674 Q133704 Q229190 Q43945 Q3922154 Q152457 Q172390 Q1050218 Q464959 Q394727 Q268087 Q1141472 Q61914 Q2916248 Q516729 Q349086 Q315640 Q3893243 Q719683 Q331697 Q1553720 Q351635 Q732865 Q3759661 Q696682 Q118087 Q320199 Q43689 Q1281133 Q236974 Q378656 Q61620 Q3776432 Q128267 Q2987904 Q2574015 Q101090 Q1834624 Q328804 Q174044 Q1284098 Q1249745 Q47144 Q240610 Q166876 Q163900 Q31966 Q170547 Q603655 Q44024 Q314700 Q3940728 Q44020 Q313807 Q149315 Q676555 Q2360539 Q244383 Q3615108 Q244380 Q235857 Q287916 Q192236 Q539890 Q102131 Q505937 Q44091 Q181715 Q212850 Q2617668 Q670456 Q1346958 Q243122 Q51885 Q238744 Q3747052 Q153024 Q3949261 Q234697 Q1284971 Q132797 Q132100 Q188411 Q727316 Q4011186 Q233067 Q3838743 Q374822 Q686948 Q733308 Q309953 Q118081 Q358325 Q537686 Q312057 Q357093 Q115550 Q9438 Q1502088 Q8413 Q558148 Q160373 Q130997 Q515953 Q1274242 Q312758 Q443392 Q5575577 Q379685 Q191479 Q42887 Q3745904 Q191107 Q4210004 Q4282480 Q177903 Q3859960 Q2697247 Q203437 Q457903 Q207113 Q8018 Q315312 Q43675 Q618214 Q242274 Q216946 Q728245 Q384364 Q132113 Q33923 Q81634 Q161775 Q221522 Q43954 Q44047 Q128538 Q37599 Q316599 Q232975 Q183240 Q122376 Q119289 Q145746 Q15284282 Q360798 Q298845 Q167477 Q380345 Q288295 Q297742 Q218921 Q316295 Q183332 Q4014956 Q48438 Q159834 Q119512 Q44281 Q63070 Q134666 Q170164 Q43399 Q867765 Q914115 Q1289858 Q379914 Q3906150 Q3876580 Q189776 Q339541 Q965463 Q196527 Q160922 Q1115725 Q336731 Q913528 Q231256 Q196653 Q560531 Q4161703 Q508214 Q9200 Q174880 Q1270991 Q235863 Q346 Q131159 Q190388 Q3924139 Q193507 Q180936 Q83198 Q2142772 Q2182480 Q7226 Q2005417 Q463600 Q243427 Q2456880 Q417686 Q185117 Q303640 Q241423 Q43999 Q447384 Q1747656 Q6732208 Q1393825 Q64196 Q2824511 Q3887342 Q310686 Q359259 Q12871 Q43669 Q9156208 Q336704 Q181489 Q369691 Q44269 Q587596 Q372668 Q831571 Q3779522 Q2456500 Q2352076 Q977571 Q44265 Q232453 Q192816 Q58559 Q445357 Q40662 Q359878 Q190240 Q332656 Q210096 Q1976199 Q320171 Q3724316 Q1343711 Q3663117 Q137947 Q534691 Q160374 Q442516 Q920226 Q80513 Q43600 Q283447 Q26486 Q324700 Q158504 Q744884 Q130005 Q740907 Q44015 Q44258 Q70991 Q318974 Q151967 Q312314 Q149727 Q254896 Q3947956 Q11905449 Q1172641 Q3738578 Q4026158 Q367208 Q469978 Q232427 Q164294 Q2270111 Q103556 Q129603 Q3561124 Q1110905 Q60059 Q335127 Q651226 Q355884 Q42827 Q159862 Q543320 Q17590 Q318347 Q271474 Q3958514 Q317131 Q257960 Q234689 Q385253 Q208961 Q235619 Q200895 Q523662 Q284323 Q59071 Q1383532 Q160445 Q44248 Q1269112 Q2424767 Q459032 Q276148 Q131945 Q9682 Q127385 Q470608 Q196157 Q310633 Q208331
(c(Q12737077),P417,c(Q502895))
action count
action atmost
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
value 4
[ANSWER]
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?c ) WHERE { { SELECT DISTINCT ?z ( COUNT ( ?e ) AS ?h ) WHERE { ?e property:P417 ?z . ?e rdf:type ontology:Q12737077 . ?z rdf:type ontology:Q502895 } GROUP BY ?z } . FILTER ( ?h <= 4 ) }
Eurosia Saint Amand Alexander of Bergamo Francis Borgia, 4th Duke of Gandía Andrew Bobola Martin of Tours Catherine of Siena Jude the Apostle Prisco di Nocera Saint Roch Martin I Catald Onuphrius Agnes of Bohemia Pudentiana Roger of Cannae Gotthard of Hildesheim Alexander of Comana Sebaldus Leopold III, Margrave of Austria Francis of Paola Pamphilus of Sulmona Ludger Saint David Guy of Anderlecht Stanislaus of Szczepanów Vitalis of Milan Genesio di Brescello Arnold von Arnoldsweiler Ludmila of Bohemia Apollinaris of Ravenna Ambrose Tudwal Radegund Saint Pantaleon Cunigunde of Luxembourg Gonçalo de Amarante Joseph Tryphon of Pechenga Nestor of Magydos Eleuterus Gummarus John the Evangelist Alexander Nevsky Turibius of Astorga Mamilian of Palermo Linus Euphemia Isidore of Seville Saint Francis Xavier Mark the Evangelist Anthony the Great Fidelis of Como Athanasius of Alexandria Joachim Romano martire Saint Matthias Joseph of Cupertino Silverius Francis of Assisi Donatus of Arezzo Rose of Lima Anatolia martire Saint Denis Elizabeth of Aragon Finbarr of Cork Thomas Becket Lazarus of Bethany Marcellus I Vincent Pallotti Saint Dominic Thérèse of Lisieux Vitus Saint Cunera Procopius of Sázava Judas Cyriacus Ferdinand III of Castile Thecla Peter of Verona Saint Fulk Rita of Cascia Saint Venera Maria Goretti La Mosca Victor Maurus Mark Anterus Bernard of Clairvaux Renaud de Montauban Vicinius of Sarsina Salome Lucido di Aquara Adrian of Nicomedia Alban of Mainz Medardus Gregory the Illuminator Pope Celestine V Ivo of Kermartin Angelus of Jerusalem Saint Casimir Saint Spyridon Nicholas of Flüe Thomas Aquinas Genesius of Arles Constantine the Great Leonard of Noblac Marcellinus Damasus I Maximilian of Lorch Romanus of Caesarea Jean-Baptiste de La Salle Saint Bibiana Gobnait Isidore the Laborer Tadeusz Kościuszko Clement I Fiorenzo di Bastia Clare of Assisi Venantius of Camerino Saint Martha Stephen I of Hungary Modestinus Catellus of Castellammare Stanislaus Kostka Saint Bavo Hippolytus Augustine of Hippo Januarius Philip the Apostle Aper of Toul Dorothea of Caesarea Charles Borromeo Marziano di Siracusa Ursus of Aosta Pontian Peter Sixtus I Stephen John of Nepomuk Leo I James, son of Alphaeus Luke the Evangelist Theodore of Amasea Saint Maurice Anastasia of Sirmium Saint Lucy Callixtus I Leonard of Port Maurice Joseph Adolphus Saint Eligius Saint Florian Anthony of Padua Saint Maurus Justina of Padua Margaret the Virgin Saint Eustace Bernardino of Siena Saint Sebastian Vitaliano da Capua Saint George Hubertus William of Maleval Ignatius of Loyola Mary Magdalene Stephen I Helena of Constantinople Andrew Sossius Prosdocimus Saint Bassian Saint Cajetan Placidus Nicolò Politi Zeno of Verona Rufinus of Assisi Rumbold of Mechelen Saint Wenceslaus I, Duke of Bohemia Celestine I Saint Giovanni Battista de Rossi Pancras of Rome Brice of Tours Francis de Sales Saint Veronica Suitbert of Kaiserswerdt Dimitry Prilutsky Cyriacus Paul Teresa of Ávila Eugenius of Carthage Genevieve Louis IX of France Fabian John of the Cross Prospero da Centuripe Saint Christopher Saint Gall Pius I Gereon Felice Joan of Arc Privat de Mende Saint Petronilla Adalbert of Prague Tryphon, Respicius, and Nympha Nazarius Justin Martyr Marcian of Tortona Juliana of Nicomedia James Victoria, Anatolia, and Audax Saturninus of Cagliari Magnus of Cuneo Valerius of Saragossa Adelaide, Abbess of Vilich Adjutor Ottone Frangipane Dionysius the Areopagite Saint Emeric of Hungary Simon the Zealot Thomas the Apostle Anthony Sulpicius Severus Eusebius of Vercelli Saint Ursula Saint Nicholas Magnus of Anagni John the Merciful Eusebius of Esztergom Guido of Acqui Eulalia of Barcelona Francis Solanus Caprasius of Lérins Benedict of Nursia Martha Saint Barbara Leo IX Henry John the Baptist Erasmus of Formiae Cyprian Camillus de Lellis Agnes of Rome Gaudentius of Novara John of God Emilianus of Trevi Ephysius Castrese di Sessa Alexius of Rome Paschal Baylon Norbert of Xanten Germanus of Auxerre Michael de Sanctis Saint Cecilia Matthew the Apostle Lambert of Maastricht Ladislaus I of Hungary Urban of Langres Clement of Ohrid Zita Edward the Confessor Barbatus of Benevento John the Apostle Basil of Caesarea Hildegard of Bingen Vincent of Saragossa Saint Blaise Bruno of Cologne Saint Giles Anastasius of Persia San Secondo Anastasi de Lleida Calogerus Falco di Palena Possidonio Saint Remigius Devota Saint Apollonia Saint Anna Maternus Henry II, Holy Roman Emperor Caesarius of Africa Acisclus Simplicio of Olbia Albertus Magnus Agabus Viktor of Xanten Josaphat Kuntsevych Gregory I Elizabeth of Hungary Marina the Monk Lawrence of Rome Sigismund of Burgundy Joseph of Arimathea Severinus of Sanseverino Vincent Ferrer Felicitas of Rome Monica of Hippo Agostino Novello Brendan Gertrude of Nivelles Agatha of Sicily Syrus of Pavia Eulalia of Mérida Peter de Regalado Rainerius Saint Boniface Jerome Saint Ninian Anthony of Apamea Elizabeth Ann Seton Charalampus Pius V Elizabeth II Sixtus II Peter of Alcantara Louis of Toulouse Demetrius of Thessaloniki Olaf II of Norway
318
action count
action atmost
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
value 4
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?c ) WHERE { { SELECT DISTINCT ?z ( COUNT ( ?e ) AS ?h ) WHERE { ?e property:patron_saint ?z . ?e rdf:type ontology:occupation . ?z rdf:type ontology:common_name } GROUP BY ?z } . FILTER ( ?h <= 4 ) }
[]