Simple Question (Direct)
Simple Question
Q7614142
P39
Q12737077
USER
Which occupation was a position occupied by Steve Tobocman ?
(Q7614142,P39,c(Q12737077))
action filter_type
action find
entity Q7614142
relation P39
type Q12737077
['Q7614142', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?o WHERE { resource:Q7614142 property:P39 ?o . ?o rdf:type ontology:Q12737077 }
Steve Tobocman
action filter_type
action find
entity Steve Tobocman
relation position held
type occupation
['Steve Tobocman', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?o WHERE { resource:Steve_Tobocman property:position_held ?o . ?o rdf:type ontology:occupation }
[]
occupation
Q18654736
SYSTEM
member of the Michigan House of Representatives
Q18654736
(Q7614142,P39,c(Q12737077))
action filter_type
action find
entity Q7614142
relation P39
type Q12737077
A [ANSWER] was a position occupied by Steve Tobocman
['Q7614142', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?o WHERE { resource:Q7614142 property:P39 ?o . ?o rdf:type ontology:Q12737077 }
member of the Michigan House of Representatives
A member of the Michigan House of Representatives was a position occupied by Steve Tobocman
member of the Michigan House of Representatives
action filter_type
action find
entity Steve Tobocman
relation position held
type occupation
['Steve Tobocman', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?o WHERE { resource:Steve_Tobocman property:position_held ?o . ?o rdf:type ontology:occupation }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q127385
P417
Q502895 Q12737077
USER
Which people are the names of person who are the patron saints of greater number of occupations than Sixtus II ?
(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 Q127385
relation P417
type Q502895
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?p ) AS ?e ) WHERE { ?p property:P417 ?k . ?p rdf:type ontology:Q12737077 . ?k rdf:type ontology:Q502895 } GROUP BY ?k } . FILTER ( ?e > ?b ) . { SELECT DISTINCT ( COUNT ( ?q ) AS ?b ) WHERE { resource:Q127385 property:P417 ?q . ?q rdf:type ontology:Q502895 } } }
Sixtus II
action greater
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
action count
action filter_type
action find
entity Sixtus II
relation patron saint
type common name
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?p ) AS ?e ) WHERE { ?p property:patron_saint ?k . ?p rdf:type ontology:occupation . ?k rdf:type ontology:common_name } GROUP BY ?k } . FILTER ( ?e > ?b ) . { SELECT DISTINCT ( COUNT ( ?q ) AS ?b ) WHERE { resource:Sixtus_II property:patron_saint ?q . ?q rdf:type ontology:common_name } } }
[]
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 Q127385
relation P417
type Q502895
[ANSWERS] are the names of person who are the patron saints of greater number of occupations than Sixtus II
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?p ) AS ?e ) WHERE { ?p property:P417 ?k . ?p rdf:type ontology:Q12737077 . ?k rdf:type ontology:Q502895 } GROUP BY ?k } . FILTER ( ?e > ?b ) . { SELECT DISTINCT ( COUNT ( ?q ) AS ?b ) WHERE { resource:Q127385 property:P417 ?q . ?q rdf:type ontology:Q502895 } } }
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 names of person who are the patron saints of greater number of occupations than Sixtus II
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 Sixtus II
relation patron saint
type common name
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?p ) AS ?e ) WHERE { ?p property:patron_saint ?k . ?p rdf:type ontology:occupation . ?k rdf:type ontology:common_name } GROUP BY ?k } . FILTER ( ?e > ?b ) . { SELECT DISTINCT ( COUNT ( ?q ) AS ?b ) WHERE { resource:Sixtus_II property:patron_saint ?q . ?q rdf:type ontology:common_name } } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q862501
P1303
Q34379 Q502895
USER
How many musical instruments can around the same number of people perform with as ondes Martenot ?
(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 Q862501
relation P1303
type Q34379
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?d ) WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?q ) WHERE { resource:Q862501 property:P1303 ?w . ?w rdf:type ontology:Q34379 } } . FILTER ( ?c = ?q ) . { SELECT DISTINCT ?k ( COUNT ( ?z ) AS ?c ) WHERE { ?z property:P1303 ?k . ?k rdf:type ontology:Q34379 . ?z rdf:type ontology:Q502895 } GROUP BY ?k } }
ondes Martenot
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 ondes Martenot
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?d ) WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?q ) WHERE { resource:ondes_Martenot property:instrument ?w . ?w rdf:type ontology:musical_instrument } } . FILTER ( ?c = ?q ) . { SELECT DISTINCT ?k ( COUNT ( ?z ) AS ?c ) WHERE { ?z property:instrument ?k . ?k rdf:type ontology:musical_instrument . ?z rdf:type ontology:common_name } GROUP BY ?k } }
[]
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 Q862501
relation P1303
type Q34379
[ANSWER]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?d ) WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?q ) WHERE { resource:Q862501 property:P1303 ?w . ?w rdf:type ontology:Q34379 } } . FILTER ( ?c = ?q ) . { SELECT DISTINCT ?k ( COUNT ( ?z ) AS ?c ) WHERE { ?z property:P1303 ?k . ?k rdf:type ontology:Q34379 . ?z 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
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 ondes Martenot
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?d ) WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?q ) WHERE { resource:ondes_Martenot property:instrument ?w . ?w rdf:type ontology:musical_instrument } } . FILTER ( ?c = ?q ) . { SELECT DISTINCT ?k ( COUNT ( ?z ) AS ?c ) WHERE { ?z property:instrument ?k . ?k rdf:type ontology:musical_instrument . ?z rdf:type ontology:common_name } GROUP BY ?k } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q9438
P50
Q7366
USER
Which song has Thomas Aquinas as its author ?
(c(Q7366),P50,Q9438)
action filter_type
action find_reverse
entity Q9438
relation P50
type Q7366
[{'concept': 'Q7366'}, 'P50', 'Q9438']
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q7366 . ?u property:P50 resource:Q9438 }
Thomas Aquinas
action filter_type
action find_reverse
entity Thomas Aquinas
relation author
type song
[{'concept': 'song'}, 'author', 'Thomas Aquinas']
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:song . ?u property:author resource:Thomas_Aquinas }
[]
song
Q618055
SYSTEM
Tantum Ergo
Q618055
(c(Q7366),P50,Q9438)
action filter_type
action find_reverse
entity Q9438
relation P50
type Q7366
[ANSWER] has Thomas Aquinas as its author
[{'concept': 'Q7366'}, 'P50', 'Q9438']
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q7366 . ?u property:P50 resource:Q9438 }
Tantum Ergo
Tantum Ergo has Thomas Aquinas as its author
Tantum Ergo
action filter_type
action find_reverse
entity Thomas Aquinas
relation author
type song
[{'concept': 'song'}, 'author', 'Thomas Aquinas']
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:song . ?u property:author resource:Thomas_Aquinas }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q9438
P1066
Q502895
USER
Which people were advised by Thomas Aquinas ?
(c(Q502895),P1066,Q9438)
action filter_type
action find_reverse
entity Q9438
relation P1066
type Q502895
[{'concept': 'Q502895'}, 'P1066', 'Q9438']
SELECT DISTINCT ?b WHERE { ?b property:P1066 resource:Q9438 . ?b rdf:type ontology:Q502895 }
Thomas Aquinas
action filter_type
action find_reverse
entity Thomas Aquinas
relation student of
type common name
[{'concept': 'common name'}, 'student of', 'Thomas Aquinas']
SELECT DISTINCT ?b WHERE { ?b property:student_of resource:Thomas_Aquinas . ?b rdf:type ontology:common_name }
[]
common name
Q676267 Q1636083
SYSTEM
Henry Bate of Malines, Remigio dei Girolami
Q676267 Q1636083
(c(Q502895),P1066,Q9438)
action filter_type
action find_reverse
entity Q9438
relation P1066
type Q502895
[ANSWERS] were advised by Thomas Aquinas
[{'concept': 'Q502895'}, 'P1066', 'Q9438']
SELECT DISTINCT ?b WHERE { ?b property:P1066 resource:Q9438 . ?b rdf:type ontology:Q502895 }
Henry Bate of Malines Remigio dei Girolami
Henry Bate of Malines and Remigio dei Girolami were advised by Thomas Aquinas
Henry Bate of Malines Remigio dei Girolami
action filter_type
action find_reverse
entity Thomas Aquinas
relation student of
type common name
[{'concept': 'common name'}, 'student of', 'Thomas Aquinas']
SELECT DISTINCT ?b WHERE { ?b property:student_of resource:Thomas_Aquinas . ?b rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1636083
P802
Q502895
USER
Who was Remigio dei Girolami a notable student of ?
(Q1636083,P802,c(Q502895))
action filter_type
action find
entity Q1636083
relation P802
type Q502895
['Q1636083', 'P802', {'concept': 'Q502895'}]
SELECT DISTINCT ?b WHERE { resource:Q1636083 property:P802 ?b . ?b rdf:type ontology:Q502895 }
Remigio dei Girolami
action filter_type
action find
entity Remigio dei Girolami
relation student
type common name
['Remigio dei Girolami', 'student', {'concept': 'common name'}]
SELECT DISTINCT ?b WHERE { resource:Remigio_dei_Girolami property:student ?b . ?b rdf:type ontology:common_name }
[]
common name
Q1067
SYSTEM
Dante Alighieri
Q1067
(Q1636083,P802,c(Q502895))
action filter_type
action find
entity Q1636083
relation P802
type Q502895
[ANSWER] was Remigio dei Girolami a notable student of
['Q1636083', 'P802', {'concept': 'Q502895'}]
SELECT DISTINCT ?b WHERE { resource:Q1636083 property:P802 ?b . ?b rdf:type ontology:Q502895 }
Dante Alighieri
Dante Alighieri was Remigio dei Girolami a notable student of
Dante Alighieri
action filter_type
action find
entity Remigio dei Girolami
relation student
type common name
['Remigio dei Girolami', 'student', {'concept': 'common name'}]
SELECT DISTINCT ?b WHERE { resource:Remigio_dei_Girolami property:student ?b . ?b rdf:type ontology:common_name }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q3526663
Q502895
USER
And how about Théophile Hamel?
(Q3526663,P802,c(Q502895))
action filter_type
action find
entity Q3526663
relation P802
type Q502895
['Q3526663', 'P802', {'concept': 'Q502895'}]
SELECT DISTINCT ?d WHERE { resource:Q3526663 property:P802 ?d . ?d rdf:type ontology:Q502895 }
Théophile Hamel
action filter_type
action find
entity Théophile Hamel
relation student
type common name
['Théophile Hamel', 'student', {'concept': 'common name'}]
SELECT DISTINCT ?d WHERE { resource:Théophile_Hamel property:student ?d . ?d rdf:type ontology:common_name }
[]
common name
Q3335933
SYSTEM
Napoléon Bourassa
Q3335933
(Q3526663,P802,c(Q502895))
action filter_type
action find
entity Q3526663
relation P802
type Q502895
[ANSWER]
['Q3526663', 'P802', {'concept': 'Q502895'}]
SELECT DISTINCT ?d WHERE { resource:Q3526663 property:P802 ?d . ?d rdf:type ontology:Q502895 }
Napoléon Bourassa
Napoléon Bourassa
action filter_type
action find
entity Théophile Hamel
relation student
type common name
['Théophile Hamel', 'student', {'concept': 'common name'}]
SELECT DISTINCT ?d WHERE { resource:Théophile_Hamel property:student ?d . ?d rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q139028 Q862501
P61
Q502895
USER
Which people discovered or invented ondes Martenot or 1424 Sundmania ?
OR((Q862501,P61,c(Q502895)), (Q139028,P61,c(Q502895)))
action filter_type
action union
action find
entity Q862501
relation P61
action find
entity Q139028
relation P61
type Q502895
{'OR': [['Q862501', 'P61', {'concept': 'Q502895'}], ['Q139028', 'P61', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Q862501 property:P61 ?m } UNION { resource:Q139028 property:P61 ?m } } . ?m rdf:type ontology:Q502895 }
1424 Sundmania ondes Martenot
action filter_type
action union
action find
entity ondes Martenot
relation discoverer or inventor
action find
entity 1424 Sundmania
relation discoverer or inventor
type common name
{'OR': [['ondes Martenot', 'discoverer or inventor', {'concept': 'common name'}], ['1424 Sundmania', 'discoverer or inventor', {'concept': 'common name'}]]}
SELECT DISTINCT ?m WHERE { { { resource:ondes_Martenot property:discoverer_or_inventor ?m } UNION { resource:1424_Sundmania property:discoverer_or_inventor ?m } } . ?m rdf:type ontology:common_name }
[]
common name
Q320056 Q1333326
SYSTEM
Yrjö Väisälä, Maurice Martenot
Q320056 Q1333326
OR((Q862501,P61,c(Q502895)), (Q139028,P61,c(Q502895)))
action filter_type
action union
action find
entity Q862501
relation P61
action find
entity Q139028
relation P61
type Q502895
[ANSWERS] discovered or invented ondes Martenot or 1424 Sundmania
{'OR': [['Q862501', 'P61', {'concept': 'Q502895'}], ['Q139028', 'P61', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Q862501 property:P61 ?m } UNION { resource:Q139028 property:P61 ?m } } . ?m rdf:type ontology:Q502895 }
Yrjö Väisälä Maurice Martenot
Yrjö Väisälä and Maurice Martenot discovered or invented ondes Martenot or 1424 Sundmania
Yrjö Väisälä Maurice Martenot
action filter_type
action union
action find
entity ondes Martenot
relation discoverer or inventor
action find
entity 1424 Sundmania
relation discoverer or inventor
type common name
{'OR': [['ondes Martenot', 'discoverer or inventor', {'concept': 'common name'}], ['1424 Sundmania', 'discoverer or inventor', {'concept': 'common name'}]]}
SELECT DISTINCT ?m WHERE { { { resource:ondes_Martenot property:discoverer_or_inventor ?m } UNION { resource:1424_Sundmania property:discoverer_or_inventor ?m } } . ?m rdf:type ontology:common_name }
[]