Simple Question (Direct)
Simple Question
Q16728756
P21
Q290
USER
What is the sex of Eduardo Pincelli ?
(Q16728756,P21,c(Q290))
action filter_type
action find
entity Q16728756
relation P21
type Q290
['Q16728756', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q290 . resource:Q16728756 property:P21 ?m }
Eduardo Pincelli
action filter_type
action find
entity Eduardo Pincelli
relation gender
type sex
['Eduardo Pincelli', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:sex . resource:Eduardo_Pincelli property:gender ?m }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q16728756,P21,c(Q290))
action filter_type
action find
entity Q16728756
relation P21
type Q290
The sex of Eduardo Pincelli is the [ANSWER]
['Q16728756', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q290 . resource:Q16728756 property:P21 ?m }
male
The sex of Eduardo Pincelli is the male
male
action filter_type
action find
entity Eduardo Pincelli
relation gender
type sex
['Eduardo Pincelli', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:sex . resource:Eduardo_Pincelli property:gender ?m }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q16728756
P106
Q12737077
USER
What is the job of that person ?
(Q6581097,P106,c(Q12737077))
action filter_type
action find
entity Q16728756
relation P106
type Q12737077
['Q6581097', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?b WHERE { resource:Q16728756 property:P106 ?b . ?b rdf:type ontology:Q12737077 }
Eduardo Pincelli
action filter_type
action find
entity Eduardo Pincelli
relation occupation
type occupation
['male', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?b WHERE { resource:Eduardo_Pincelli property:occupation ?b . ?b rdf:type ontology:occupation }
[]
occupation
Q937857
SYSTEM
association football player
Q937857
(Q6581097,P106,c(Q12737077))
action filter_type
action find
entity Q16728756
relation P106
type Q12737077
The job of that person is an [ANSWER]
['Q6581097', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?b WHERE { resource:Q16728756 property:P106 ?b . ?b rdf:type ontology:Q12737077 }
association football player
The job of that person is an association football player
association football player
action filter_type
action find
entity Eduardo Pincelli
relation occupation
type occupation
['male', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?b WHERE { resource:Eduardo_Pincelli property:occupation ?b . ?b rdf:type ontology:occupation }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q937857 Q6834584
P106
Q502895
USER
Does Michael Stedman have the profession as that occupation ?
(Q6834584,P106,Q937857)
action is_in
entity Q6834584
action find
entity Q937857
relation P106
['Q6834584', 'P106', 'Q937857']
ASK WHERE { resource:Q937857 property:P106 resource:Q6834584 }
association football player Michael Stedman
action is_in
entity Michael Stedman
action find
entity association football player
relation occupation
['Michael Stedman', 'occupation', 'association football player']
ASK WHERE { resource:association_football_player property:occupation resource:Michael_Stedman }
[]
common name
SYSTEM
NO
(Q6834584,P106,Q937857)
action is_in
entity Q6834584
action find
entity Q937857
relation P106
[ANSWER]
['Q6834584', 'P106', 'Q937857']
ASK WHERE { resource:Q937857 property:P106 resource:Q6834584 }
No
action is_in
entity Michael Stedman
action find
entity association football player
relation occupation
['Michael Stedman', 'occupation', 'association football player']
ASK WHERE { resource:association_football_player property:occupation resource:Michael_Stedman }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P144
Q502895 Q15850590 Q15416
USER
How many people are exactly 2 theatrical genres and television programs considered a copy of ?
(c(Q15850590)|c(Q15416),P144,c(Q502895))
action count
action equal
action union
action find_reverse_tuple_counts
relation P144
type Q502895
type Q15850590
action find_reverse_tuple_counts
relation P144
type Q502895
type Q15416
value 2
[[{'concept': 'Q15850590'}, {'concept': 'Q15416'}], 'P144', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?g ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?n ) AS ?c ) WHERE { VALUES ( ?p ) { ( ontology:Q15850590 ) ( ontology:Q15416 ) } . ?n rdf:type ?p } GROUP BY ?e } . FILTER ( ?c = 2 ) }
action count
action equal
action union
action find_reverse_tuple_counts
relation based on
type common name
type theatrical genre
action find_reverse_tuple_counts
relation based on
type common name
type television program
value 2
[[{'concept': 'theatrical genre'}, {'concept': 'television program'}], 'based on', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?g ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?n ) AS ?c ) WHERE { VALUES ( ?p ) { ( ontology:theatrical_genre ) ( ontology:television_program ) } . ?n rdf:type ?p } GROUP BY ?e } . FILTER ( ?c = 2 ) }
[]
common name theatrical genre television program
SYSTEM
3
Q298920 Q276615 Q184935
(c(Q15850590)|c(Q15416),P144,c(Q502895))
action count
action equal
action union
action find_reverse_tuple_counts
relation P144
type Q502895
type Q15850590
action find_reverse_tuple_counts
relation P144
type Q502895
type Q15416
value 2
[ANSWER]
[[{'concept': 'Q15850590'}, {'concept': 'Q15416'}], 'P144', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?g ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?n ) AS ?c ) WHERE { VALUES ( ?p ) { ( ontology:Q15850590 ) ( ontology:Q15416 ) } . ?n rdf:type ?p } GROUP BY ?e } . FILTER ( ?c = 2 ) }
Charles M. Schulz Gabriela Preissová Mihai Eminescu
3
action count
action equal
action union
action find_reverse_tuple_counts
relation based on
type common name
type theatrical genre
action find_reverse_tuple_counts
relation based on
type common name
type television program
value 2
[[{'concept': 'theatrical genre'}, {'concept': 'television program'}], 'based on', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?g ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?n ) AS ?c ) WHERE { VALUES ( ?p ) { ( ontology:theatrical_genre ) ( ontology:television_program ) } . ?n rdf:type ?p } GROUP BY ?e } . FILTER ( ?c = 2 ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q43999
P417
Q502895 Q12737077
USER
Which people are the patron saint of greater number of occupations than James ?
(c(Q12737077),P417,c(Q502895))
action greater
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
action count
action filter_type
action find
entity Q43999
relation P417
type Q502895
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?k ) WHERE { resource:Q43999 property:P417 ?h . ?h rdf:type ontology:Q502895 } } . FILTER ( ?o > ?k ) . { SELECT DISTINCT ?c ( COUNT ( ?s ) AS ?o ) WHERE { ?s property:P417 ?c . ?c rdf:type ontology:Q502895 . ?s rdf:type ontology:Q12737077 } GROUP BY ?c } }
James
action greater
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
action count
action filter_type
action find
entity James
relation patron saint
type common name
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?k ) WHERE { resource:James property:patron_saint ?h . ?h rdf:type ontology:common_name } } . FILTER ( ?o > ?k ) . { SELECT DISTINCT ?c ( COUNT ( ?s ) AS ?o ) WHERE { ?s property:patron_saint ?c . ?c rdf:type ontology:common_name . ?s rdf:type ontology:occupation } GROUP BY ?c } }
[]
common name occupation
Q9438 Q60059 Q166876
SYSTEM
Thomas Aquinas, Albertus Magnus, Isidore of Seville
Q453698 Q229190 Q152457 Q43689 Q328804 Q166876 Q163900 Q170547 Q212850 Q374822 Q9438 Q130997 Q312758 Q5575577 Q191107 Q242274 Q128538 Q183240 Q119289 Q360798 Q298845 Q48438 Q119512 Q44281 Q170164 Q43399 Q196653 Q508214 Q9200 Q193507 Q463600 Q43669 Q44265 Q192816 Q43982 Q179718 Q40662 Q332656 Q320171 Q137947 Q80513 Q43600 Q324700 Q744884 Q44015 Q151967 Q149727 Q232427 Q60059 Q17590 Q271474 Q200895 Q44248 Q276148
(c(Q12737077),P417,c(Q502895))
action greater
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
action count
action filter_type
action find
entity Q43999
relation P417
type Q502895
[ANSWERS] are the patron saint of greater number of occupations than James
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?k ) WHERE { resource:Q43999 property:P417 ?h . ?h rdf:type ontology:Q502895 } } . FILTER ( ?o > ?k ) . { SELECT DISTINCT ?c ( COUNT ( ?s ) AS ?o ) WHERE { ?s property:P417 ?c . ?c rdf:type ontology:Q502895 . ?s rdf:type ontology:Q12737077 } GROUP BY ?c } }
Saint Amand Catherine of Siena Saint Roch Ambrose John the Evangelist Isidore of Seville Saint Francis Xavier Anthony the Great Vitus Adrian of Nicomedia Thomas Aquinas Damasus I Jean-Baptiste de La Salle Gobnait Clare of Assisi Dorothea of Caesarea Luke the Evangelist Saint Lucy Leonard of Port Maurice Saint Eligius Saint Florian Saint George William of Maleval Ignatius of Loyola Helena of Constantinople Andrew Saint Veronica Cyriacus Paul Saint Christopher Saint Petronilla Thomas the Apostle Benedict of Nursia Saint Barbara Bartholomew the Apostle Catherine of Alexandria John the Baptist Camillus de Lellis John of God Alexius of Rome Saint Cecilia Matthew the Apostle Urban of Langres Zita John the Apostle Saint Blaise Saint Giles Saint Apollonia Albertus Magnus Lawrence of Rome Joseph of Arimathea Agatha of Sicily Jerome Charalampus
Thomas Aquinas, Albertus Magnus and Isidore of Seville are the patron saint of greater number of occupations than James
Thomas Aquinas Albertus Magnus Isidore of Seville
action greater
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
action count
action filter_type
action find
entity James
relation patron saint
type common name
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?k ) WHERE { resource:James property:patron_saint ?h . ?h rdf:type ontology:common_name } } . FILTER ( ?o > ?k ) . { SELECT DISTINCT ?c ( COUNT ( ?s ) AS ?o ) WHERE { ?s property:patron_saint ?c . ?c rdf:type ontology:common_name . ?s rdf:type ontology:occupation } GROUP BY ?c } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q1798603
P1303
Q34379 Q502895
USER
Which musical instruments can approximately the same number of people perform with as string instrument ?
(c(Q502895),P1303,c(Q34379))
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find
entity Q1798603
relation P1303
type Q34379
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?v ) WHERE { ?g rdf:type ontology:Q34379 . resource:Q1798603 property:P1303 ?g } } . FILTER ( ?b = ?v ) . { SELECT DISTINCT ?m ( COUNT ( ?k ) AS ?b ) WHERE { ?k property:P1303 ?m . ?m rdf:type ontology:Q34379 . ?k rdf:type ontology:Q502895 } GROUP BY ?m } }
string instrument
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity string instrument
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?v ) WHERE { ?g rdf:type ontology:musical_instrument . resource:string_instrument property:instrument ?g } } . FILTER ( ?b = ?v ) . { SELECT DISTINCT ?m ( COUNT ( ?k ) AS ?b ) WHERE { ?k property:instrument ?m . ?m rdf:type ontology:musical_instrument . ?k rdf:type ontology:common_name } GROUP BY ?m } }
[]
musical instrument common name
Q1178361 Q81982 Q1759986
SYSTEM
davul, harpsichord, Wurlitzer electric piano
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 approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find
entity Q1798603
relation P1303
type Q34379
[ANSWERS] can approximately the same number of people perform with as string instrument
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?v ) WHERE { ?g rdf:type ontology:Q34379 . resource:Q1798603 property:P1303 ?g } } . FILTER ( ?b = ?v ) . { SELECT DISTINCT ?m ( COUNT ( ?k ) AS ?b ) WHERE { ?k property:P1303 ?m . ?m rdf:type ontology:Q34379 . ?k rdf:type ontology:Q502895 } GROUP BY ?m } }
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
Davul, harpsichord and Wurlitzer electric piano can approximately the same number of people perform with as string instrument
davul harpsichord Wurlitzer electric piano
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity string instrument
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?v ) WHERE { ?g rdf:type ontology:musical_instrument . resource:string_instrument property:instrument ?g } } . FILTER ( ?b = ?v ) . { SELECT DISTINCT ?m ( COUNT ( ?k ) AS ?b ) WHERE { ?k property:instrument ?m . ?m rdf:type ontology:musical_instrument . ?k rdf:type ontology:common_name } GROUP BY ?m } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q678090
P1303
Q34379 Q502895
USER
And also tell me about Twelve-string guitar?
(c(Q502895),P1303,c(Q34379))
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find
entity Q678090
relation P1303
type Q34379
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?o ) WHERE { ?f rdf:type ontology:Q34379 . resource:Q678090 property:P1303 ?f } } . FILTER ( ?j = ?o ) . { SELECT DISTINCT ?k ( COUNT ( ?v ) AS ?j ) WHERE { ?v property:P1303 ?k . ?k rdf:type ontology:Q34379 . ?v rdf:type ontology:Q502895 } GROUP BY ?k } }
Twelve-string guitar
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity Twelve-string guitar
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?o ) WHERE { ?f rdf:type ontology:musical_instrument . resource:Twelve-string_guitar property:instrument ?f } } . FILTER ( ?j = ?o ) . { SELECT DISTINCT ?k ( COUNT ( ?v ) AS ?j ) WHERE { ?v property:instrument ?k . ?k rdf:type ontology:musical_instrument . ?v rdf:type ontology:common_name } GROUP BY ?k } }
[]
musical instrument common name
Q1178361 Q81982 Q1759986
SYSTEM
davul, harpsichord, Wurlitzer electric piano
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 approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find
entity Q678090
relation P1303
type Q34379
[ANSWERS]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?o ) WHERE { ?f rdf:type ontology:Q34379 . resource:Q678090 property:P1303 ?f } } . FILTER ( ?j = ?o ) . { SELECT DISTINCT ?k ( COUNT ( ?v ) AS ?j ) WHERE { ?v property:P1303 ?k . ?k rdf:type ontology:Q34379 . ?v rdf:type ontology:Q502895 } GROUP BY ?k } }
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
davul harpsichord Wurlitzer electric piano
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity Twelve-string guitar
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?o ) WHERE { ?f rdf:type ontology:musical_instrument . resource:Twelve-string_guitar property:instrument ?f } } . FILTER ( ?j = ?o ) . { SELECT DISTINCT ?k ( COUNT ( ?v ) AS ?j ) WHERE { ?v property:instrument ?k . ?k rdf:type ontology:musical_instrument . ?v rdf:type ontology:common_name } GROUP BY ?k } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q9438
P106
Q12737077 Q3412758
USER
How many occupations or qualifications are the professions of Thomas Aquinas ?
(Q9438,P106,c(Q12737077)) (Q9438,P106,c(Q3412758))
action count
action union
action filter_type
action find
entity Q9438
relation P106
type Q12737077
action filter_type
action find
entity Q9438
relation P106
type Q3412758
['Q9438', 'P106', {'concept': 'Q12737077'}] ['Q9438', 'P106', {'concept': 'Q3412758'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?z ) WHERE { { resource:Q9438 property:P106 ?i . ?i rdf:type ontology:Q12737077 } UNION { resource:Q9438 property:P106 ?i . ?i rdf:type ontology:Q3412758 } }
Thomas Aquinas
action count
action union
action filter_type
action find
entity Thomas Aquinas
relation occupation
type occupation
action filter_type
action find
entity Thomas Aquinas
relation occupation
type qualification
['Thomas Aquinas', 'occupation', {'concept': 'occupation'}] ['Thomas Aquinas', 'occupation', {'concept': 'qualification'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?z ) WHERE { { resource:Thomas_Aquinas property:occupation ?i . ?i rdf:type ontology:occupation } UNION { resource:Thomas_Aquinas property:occupation ?i . ?i rdf:type ontology:qualification } }
[]
occupation qualification
SYSTEM
4
Q548320 Q1234713 Q36180 Q121594
(Q9438,P106,c(Q12737077)) (Q9438,P106,c(Q3412758))
action count
action union
action filter_type
action find
entity Q9438
relation P106
type Q12737077
action filter_type
action find
entity Q9438
relation P106
type Q3412758
[ANSWER]
['Q9438', 'P106', {'concept': 'Q12737077'}] ['Q9438', 'P106', {'concept': 'Q3412758'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?z ) WHERE { { resource:Q9438 property:P106 ?i . ?i rdf:type ontology:Q12737077 } UNION { resource:Q9438 property:P106 ?i . ?i rdf:type ontology:Q3412758 } }
friar theologian writer professor
4
action count
action union
action filter_type
action find
entity Thomas Aquinas
relation occupation
type occupation
action filter_type
action find
entity Thomas Aquinas
relation occupation
type qualification
['Thomas Aquinas', 'occupation', {'concept': 'occupation'}] ['Thomas Aquinas', 'occupation', {'concept': 'qualification'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?z ) WHERE { { resource:Thomas_Aquinas property:occupation ?i . ?i rdf:type ontology:occupation } UNION { resource:Thomas_Aquinas property:occupation ?i . ?i rdf:type ontology:qualification } }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q6581097 Q81982
P21 P1303
Q502895
USER
Which people knows to play harpsichord and have the gender as male ?
AND((c(Q502895),P1303,Q81982), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q81982
relation P1303
action find_reverse
entity Q6581097
relation P21
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P1303', 'Q81982'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?c WHERE { ?c property:P1303 resource:Q81982 . ?c property:P21 resource:Q6581097 . ?c rdf:type ontology:Q502895 }
male harpsichord
action filter_type
action intersection
action find_reverse
entity harpsichord
relation instrument
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'instrument', 'harpsichord'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?c WHERE { ?c property:instrument resource:harpsichord . ?c property:gender resource:male . ?c rdf:type ontology:common_name }
[]
common name
Q3148824 Q3141950 Q2034506 Q1339 Q3452937 Q3294067 Q3147213 Q2735112 Q3187447 Q876342
SYSTEM
Some of them are Ilton Wjuniski, Hubert Bédard, Luciano Sgrizzi, Johann Sebastian Bach, Ruggero Gerlin, Mark Edwards, Iakovos Pappas, William Babell, Joël Pontet, Fritz Neumeyer
Q3761917 Q2982659 Q463998 Q3725604 Q963003 Q435198 Q571445 Q289847 Q254 Q4979366 Q3183956 Q2535808 Q563321 Q17648436 Q590410 Q376588 Q2959912 Q597101 Q92244 Q3219532 Q699207 Q457010 Q18642513 Q314799 Q3619994 Q4526398 Q5112624 Q2414155 Q963831 Q969937 Q6733079 Q3106857 Q551008 Q3411056 Q2805699 Q339929 Q718398 Q2462092 Q2526926 Q2451955 Q1682366 Q700648 Q3168842 Q6264882 Q3147203 Q3294067 Q2856990 Q18889499 Q3136187 Q3287715 Q739019 Q3293546 Q3147213 Q928954 Q3168308 Q2898792 Q3187447 Q3351094 Q1682344 Q3181642 Q560325 Q965256 Q15041700 Q4133063 Q319306 Q697674 Q2553716 Q3168042 Q459715 Q3452937 Q1406863 Q11434081 Q2034506 Q2735112 Q3568609 Q45909 Q3524273 Q76735 Q3446656 Q876342 Q1270605 Q17630873 Q3141950 Q181474 Q3167320 Q23001989 Q3573587 Q3190862 Q119189 Q339128 Q2848507 Q96304 Q2899489 Q199856 Q2094389 Q4497156 Q1046616 Q1843799 Q1348195 Q378905 Q2424360 Q3298708 Q3350801 Q3148824 Q3613839 Q1339 Q2958126 Q434774
AND((c(Q502895),P1303,Q81982), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q81982
relation P1303
action find_reverse
entity Q6581097
relation P21
type Q502895
[ANSWERS] know to play harpsichord and have the gender as male
{'AND': [[{'concept': 'Q502895'}, 'P1303', 'Q81982'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?c WHERE { ?c property:P1303 resource:Q81982 . ?c property:P21 resource:Q6581097 . ?c rdf:type ontology:Q502895 }
Giacinto Manna Colin Tilney James Nares Enrico Baiano Thurston Dart Christopher Hogwood Rinaldo Alessandrini Étienne Loulié Wolfgang Amadeus Mozart Bruno Procopio Jory Vinikour Václav Luks Kenneth Gilbert Władysław Kłosiewicz Christophe Rousset William Christie Charles Noblet Ralph Kirkpatrick Johann Paul Schulthesius Laurent Teycheney Joseph Anton Steffan Igor Kipnis Pierre-Alain Clerc Antonio Soler Antonio Palella Miklós Spányi Christopher Jackson Skip Sempé Ottavio Dantone Denis Bédard Mahan Esfahani Giovanni Pietro Del Buono Jon Laukvik Putnam Aldrich Frédérick Haas Thomas Linley the elder Robert Veyron-Lacroix Pascal Dubreuil Vincenzo Lavigna Yves Rechsteiner Jan Willem Jansen Masaaki Suzuki Jean-Philippe Navarre John Worgan Iain Simcock Mark Edwards Anton Bemetzrieder Francesco Mazzoli Nicholas McGegan Marc-Roger Normand Giovanni Battista Lampugnani Mario Raskin Iakovos Pappas Vincenzo Manfredini Jean-Patrice Brosse Bernard de Bury Joël Pontet Olivier Houette Joseph-Nicolas-Pancrace Royer John Grew Hervé Niquet Alan Curtis Cosimo Damiano Lanza Malcolm Hamilton Oscar Milani René Clemencic Jean Rondeau Jean-Michel Hasler Matteo Messori Ruggero Gerlin Fernando Valenti Naoya Ōtsuka Luciano Sgrizzi William Babell William Felton John Cale Thierry Geffrotin Karl Richter Rudi Jacques Fritz Neumeyer Lars Ulrik Mortensen Jean-Luc Ho Hubert Bédard Teodorico Pedrini Jean-Marc Aymes György Vashegyi Yves Cuenot Jérôme Correas Vital Julian Frey Rafael Puyana André Raynaud Tobias Koch Bertrand Cuiller Johann Christian Schieferdecker Pietro Alessandro Guglielmi Stanislav Heller Tim Rice-Oxley Frédéric Champion Louis-Emmanuel Jadin Michael Wollny Antoine Geoffroy-Dechaume Mathieu Duguay Olivier Baumont Ilton Wjuniski Ambrogio Minoja Johann Sebastian Bach Charles-Henri Plantade Trevor Pinnock
Ilton Wjuniski, Hubert Bédard, Luciano Sgrizzi, Johann Sebastian Bach, Ruggero Gerlin, Mark Edwards, Iakovos Pappas, William Babell, Joël Pontet and Fritz Neumeyer know to play harpsichord and have the gender as male
Ilton Wjuniski Hubert Bédard Luciano Sgrizzi Johann Sebastian Bach Ruggero Gerlin Mark Edwards Iakovos Pappas William Babell Joël Pontet Fritz Neumeyer
action filter_type
action intersection
action find_reverse
entity harpsichord
relation instrument
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'instrument', 'harpsichord'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?c WHERE { ?c property:instrument resource:harpsichord . ?c property:gender resource:male . ?c rdf:type ontology:common_name }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q50035
P725
Q502895 Q2342494
USER
Which collectables had their voice dubbing done by greater number of people than Nyaruko: Crawling with Love ?
(c(Q2342494),P725,c(Q502895))
action greater
action find_tuple_counts
relation P725
type Q2342494
type Q502895
action count
action filter_type
action find
entity Q50035
relation P725
type Q2342494
[{'concept': 'Q2342494'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?u ) AS ?c ) WHERE { ?j property:P725 ?u . ?j rdf:type ontology:Q2342494 . ?u rdf:type ontology:Q502895 } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?t ) WHERE { ?z rdf:type ontology:Q2342494 . resource:Q50035 property:P725 ?z } } . FILTER ( ?c > ?t ) }
Nyaruko: Crawling with Love
action greater
action find_tuple_counts
relation voice actor
type collectable
type common name
action count
action filter_type
action find
entity Nyaruko: Crawling with Love
relation voice actor
type collectable
[{'concept': 'collectable'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?u ) AS ?c ) WHERE { ?j property:voice_actor ?u . ?j rdf:type ontology:collectable . ?u rdf:type ontology:common_name } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?t ) WHERE { ?z rdf:type ontology:collectable . resource:Nyaruko:_Crawling_with_Love property:voice_actor ?z } } . FILTER ( ?c > ?t ) }
[]
common name collectable
Q483263 Q53351 Q5647726
SYSTEM
Baka and Test, Accel World, Handy Manny's Motorcycle Adventure
Q483263 Q53351 Q5647726
(c(Q2342494),P725,c(Q502895))
action greater
action find_tuple_counts
relation P725
type Q2342494
type Q502895
action count
action filter_type
action find
entity Q50035
relation P725
type Q2342494
[ANSWERS] had their voice dubbing done by greater number of people than Nyaruko: Crawling with Love
[{'concept': 'Q2342494'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?u ) AS ?c ) WHERE { ?j property:P725 ?u . ?j rdf:type ontology:Q2342494 . ?u rdf:type ontology:Q502895 } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?t ) WHERE { ?z rdf:type ontology:Q2342494 . resource:Q50035 property:P725 ?z } } . FILTER ( ?c > ?t ) }
Baka and Test Accel World Handy Manny's Motorcycle Adventure
Baka and Test, Accel World and Handy Manny's Motorcycle Adventure had their voice dubbing done by greater number of people than Nyaruko: Crawling with Love
Baka and Test Accel World Handy Manny's Motorcycle Adventure
action greater
action find_tuple_counts
relation voice actor
type collectable
type common name
action count
action filter_type
action find
entity Nyaruko: Crawling with Love
relation voice actor
type collectable
[{'concept': 'collectable'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?u ) AS ?c ) WHERE { ?j property:voice_actor ?u . ?j rdf:type ontology:collectable . ?u rdf:type ontology:common_name } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?t ) WHERE { ?z rdf:type ontology:collectable . resource:Nyaruko:_Crawling_with_Love property:voice_actor ?z } } . FILTER ( ?c > ?t ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q11272884
P725
Q502895 Q2342494
USER
And how about Toaru Hikūshi e no Koiuta?
(c(Q2342494),P725,c(Q502895))
action greater
action find_tuple_counts
relation P725
type Q2342494
type Q502895
action count
action filter_type
action find
entity Q11272884
relation P725
type Q2342494
[{'concept': 'Q2342494'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?o ) WHERE { ?f rdf:type ontology:Q2342494 . resource:Q11272884 property:P725 ?f } } . FILTER ( ?y > ?o ) . { SELECT DISTINCT ?e ( COUNT ( ?g ) AS ?y ) WHERE { ?e property:P725 ?g . ?e rdf:type ontology:Q2342494 . ?g rdf:type ontology:Q502895 } GROUP BY ?e } }
Toaru Hikūshi e no Koiuta
action greater
action find_tuple_counts
relation voice actor
type collectable
type common name
action count
action filter_type
action find
entity Toaru Hikūshi e no Koiuta
relation voice actor
type collectable
[{'concept': 'collectable'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?o ) WHERE { ?f rdf:type ontology:collectable . resource:Toaru_Hikūshi_e_no_Koiuta property:voice_actor ?f } } . FILTER ( ?y > ?o ) . { SELECT DISTINCT ?e ( COUNT ( ?g ) AS ?y ) WHERE { ?e property:voice_actor ?g . ?e rdf:type ontology:collectable . ?g rdf:type ontology:common_name } GROUP BY ?e } }
[]
common name collectable
Q482870 Q483263 Q485958
SYSTEM
Boku wa Tomodachi ga Sukunai, Baka and Test, Ro-Kyu-Bu!
Q50035 Q483263 Q482870 Q1204015 Q485958 Q53351 Q5647726
(c(Q2342494),P725,c(Q502895))
action greater
action find_tuple_counts
relation P725
type Q2342494
type Q502895
action count
action filter_type
action find
entity Q11272884
relation P725
type Q2342494
[ANSWERS]
[{'concept': 'Q2342494'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?o ) WHERE { ?f rdf:type ontology:Q2342494 . resource:Q11272884 property:P725 ?f } } . FILTER ( ?y > ?o ) . { SELECT DISTINCT ?e ( COUNT ( ?g ) AS ?y ) WHERE { ?e property:P725 ?g . ?e rdf:type ontology:Q2342494 . ?g rdf:type ontology:Q502895 } GROUP BY ?e } }
Nyaruko: Crawling with Love Baka and Test Boku wa Tomodachi ga Sukunai Ōkami Kakushi Ro-Kyu-Bu! Accel World Handy Manny's Motorcycle Adventure
Boku wa Tomodachi ga Sukunai Baka and Test Ro-Kyu-Bu!
action greater
action find_tuple_counts
relation voice actor
type collectable
type common name
action count
action filter_type
action find
entity Toaru Hikūshi e no Koiuta
relation voice actor
type collectable
[{'concept': 'collectable'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?o ) WHERE { ?f rdf:type ontology:collectable . resource:Toaru_Hikūshi_e_no_Koiuta property:voice_actor ?f } } . FILTER ( ?y > ?o ) . { SELECT DISTINCT ?e ( COUNT ( ?g ) AS ?y ) WHERE { ?e property:voice_actor ?g . ?e rdf:type ontology:collectable . ?g rdf:type ontology:common_name } GROUP BY ?e } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q485958
P495
Q15617994
USER
Which administrative territory is the origin of that collectable ?
(Q485958,P495,c(Q15617994))
action filter_type
action find
entity Q485958
relation P495
type Q15617994
['Q485958', 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?n WHERE { resource:Q485958 property:P495 ?n . ?n rdf:type ontology:Q15617994 }
Ro-Kyu-Bu!
action filter_type
action find
entity Ro-Kyu-Bu!
relation country of origin
type designation for an administrative territorial entity
['Ro-Kyu-Bu!', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { resource:Ro-Kyu-Bu! property:country_of_origin ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Clarification for simple ques.
Q483263
SYSTEM
Did you mean Baka and Test ?
Q482870 Q483263 Q485958
(Q482870,P495,c(Q15617994)) (Q483263,P495,c(Q15617994)) (Q485958,P495,c(Q15617994))
[ANSWER]
['Q482870', 'P495', {'concept': 'Q15617994'}] ['Q483263', 'P495', {'concept': 'Q15617994'}] ['Q485958', 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?n WHERE { resource:Q485958 property:P495 ?n . ?n rdf:type ontology:Q15617994 }
Boku wa Tomodachi ga Sukunai Baka and Test Ro-Kyu-Bu!
Did you mean Baka and Test ?
Baka and Test
['Boku wa Tomodachi ga Sukunai', 'country of origin', {'concept': 'designation for an administrative territorial entity'}] ['Baka and Test', 'country of origin', {'concept': 'designation for an administrative territorial entity'}] ['Ro-Kyu-Bu!', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { resource:Ro-Kyu-Bu! property:country_of_origin ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
USER
No, I meant Ro-Kyu-Bu!. Could you tell me the answer for that?
(Q485958,P495,c(Q15617994))
Q485958
['Q485958', 'P495', {'concept': 'Q15617994'}]
['Ro-Kyu-Bu!', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
[]
Q17
SYSTEM
Japan
Q17
(Q485958,P495,c(Q15617994))
action filter_type
action find
entity Q485958
relation P495
type Q15617994
[ANSWER] is the origin of that collectable
['Q485958', 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?n WHERE { resource:Q485958 property:P495 ?n . ?n rdf:type ontology:Q15617994 }
Japan
Japan is the origin of that collectable
Japan
action filter_type
action find
entity Ro-Kyu-Bu!
relation country of origin
type designation for an administrative territorial entity
['Ro-Kyu-Bu!', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { resource:Ro-Kyu-Bu! property:country_of_origin ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]