Simple Question (Direct)
Simple Question
Q10484565
P21
Q290
USER
What is the sex of Igor Romanenko ?
(Q10484565,P21,c(Q290))
action filter_type
action find
entity Q10484565
relation P21
type Q290
['Q10484565', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?l WHERE { resource:Q10484565 property:P21 ?l . ?l rdf:type ontology:Q290 }
Igor Romanenko
action filter_type
action find
entity Igor Romanenko
relation gender
type sex
['Igor Romanenko', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?l WHERE { resource:Igor_Romanenko property:gender ?l . ?l rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q10484565,P21,c(Q290))
action filter_type
action find
entity Q10484565
relation P21
type Q290
The sex of Igor Romanenko is the [ANSWER]
['Q10484565', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?l WHERE { resource:Q10484565 property:P21 ?l . ?l rdf:type ontology:Q290 }
male
The sex of Igor Romanenko is the male
male
action filter_type
action find
entity Igor Romanenko
relation gender
type sex
['Igor Romanenko', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?l WHERE { resource:Igor_Romanenko property:gender ?l . ?l rdf:type ontology:sex }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1303
Q34379 Q502895
USER
How many musical instruments do atmost 47 people know to play ?
(c(Q502895),P1303,c(Q34379))
action count
action atmost
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 47
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?w ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?x ) AS ?n ) WHERE { ?x property:P1303 ?m . ?x rdf:type ontology:Q502895 . ?m rdf:type ontology:Q34379 } GROUP BY ?m } . FILTER ( ?n <= 47 ) }
action count
action atmost
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 47
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?w ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?x ) AS ?n ) WHERE { ?x property:instrument ?m . ?x rdf:type ontology:common_name . ?m rdf:type ontology:musical_instrument } GROUP BY ?m } . FILTER ( ?n <= 47 ) }
[]
musical instrument common name
SYSTEM
53
Q201129 Q424017 Q890073 Q1178361 Q2563510 Q604538 Q2660670 Q39777 Q3574843 Q678090 Q182718 Q490054 Q873588 Q593995 Q1327500 Q1879664 Q189737 Q1759986 Q1798603 Q1099153 Q120585 Q713298 Q1024685 Q213461 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 Q11404 Q497224 Q3623688
(c(Q502895),P1303,c(Q34379))
action count
action atmost
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 47
[ANSWER]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?w ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?x ) AS ?n ) WHERE { ?x property:P1303 ?m . ?x rdf:type ontology:Q502895 . ?m rdf:type ontology:Q34379 } GROUP BY ?m } . FILTER ( ?n <= 47 ) }
lyre acoustic bass guitar Body percussion davul steel-string acoustic guitar Temple block Irish bouzouki maraca tonbak Twelve-string guitar Nyckelharpa Ondioline Jinghu player piano electronic musical instrument spoon timpani Wurlitzer electric piano string instrument clavinet Tsuzumi geomungo cabasa harmonium 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 drum Kayamb Paraguayan harp
53
action count
action atmost
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 47
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?w ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?x ) AS ?n ) WHERE { ?x property:instrument ?m . ?x rdf:type ontology:common_name . ?m rdf:type ontology:musical_instrument } GROUP BY ?m } . FILTER ( ?n <= 47 ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q23906252
P1441
Q15961987 Q2342494 Q502895
USER
Which people are present in greater number of television genres or collectables than Caf' Francisco ?
(c(Q502895),P1441,c(Q15961987)|c(Q2342494))
action greater
action union
action find_tuple_counts
relation P1441
type Q502895
type Q15961987
action find_tuple_counts
relation P1441
type Q502895
type Q2342494
action count
action filter_multi_types
action find
entity Q23906252
relation P1441
type Q15961987
type Q2342494
[{'concept': 'Q502895'}, 'P1441', [{'concept': 'Q15961987'}, {'concept': 'Q2342494'}]]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?h ) ?z WHERE { ?m rdf:type ?b . VALUES ( ?b ) { ( ontology:Q15961987 ) ( ontology:Q2342494 ) } } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?n ) WHERE { resource:Q23906252 property:P1441 ?x . { { ?x rdf:type ontology:Q15961987 } UNION { ?x rdf:type ontology:Q2342494 } } } } . FILTER ( ?h > ?n ) }
Caf' Francisco
action greater
action union
action find_tuple_counts
relation present in work
type common name
type television genre
action find_tuple_counts
relation present in work
type common name
type collectable
action count
action filter_multi_types
action find
entity Caf' Francisco
relation present in work
type television genre
type collectable
[{'concept': 'common name'}, 'present in work', [{'concept': 'television genre'}, {'concept': 'collectable'}]]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?h ) ?z WHERE { ?m rdf:type ?b . VALUES ( ?b ) { ( ontology:television_genre ) ( ontology:collectable ) } } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?n ) WHERE { resource:Caf'_Francisco property:present_in_work ?x . { { ?x rdf:type ontology:television_genre } UNION { ?x rdf:type ontology:collectable } } } } . FILTER ( ?h > ?n ) }
[]
television genre collectable common name
Q41370 Q9181 Q270438
SYSTEM
David, Abraham, Charles of Valois
Q660359 Q232525 Q160116 Q785349 Q3858588 Q4154984 Q185801 Q6239779 Q34428 Q294192 Q134646 Q9077 Q3778878 Q1348720 Q716237 Q41370 Q2124082 Q315276 Q3148218 Q3745274 Q3867479 Q19348839 Q1093885 Q3010053 Q164889 Q27621044 Q366070 Q270438 Q1341779 Q37085 Q972487 Q313395 Q8581 Q32295 Q2296791 Q9181 Q312311 Q169329 Q302322 Q3761044 Q76721 Q283466 Q9441 Q1227361
(c(Q502895),P1441,c(Q15961987)|c(Q2342494))
action greater
action union
action find_tuple_counts
relation P1441
type Q502895
type Q15961987
action find_tuple_counts
relation P1441
type Q502895
type Q2342494
action count
action filter_multi_types
action find
entity Q23906252
relation P1441
type Q15961987
type Q2342494
[ANSWERS] are present in greater number of television genres or collectables than Caf' Francisco
[{'concept': 'Q502895'}, 'P1441', [{'concept': 'Q15961987'}, {'concept': 'Q2342494'}]]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?h ) ?z WHERE { ?m rdf:type ?b . VALUES ( ?b ) { ( ontology:Q15961987 ) ( ontology:Q2342494 ) } } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?n ) WHERE { resource:Q23906252 property:P1441 ?x . { { ?x rdf:type ontology:Q15961987 } UNION { ?x rdf:type ontology:Q2342494 } } } } . FILTER ( ?h > ?n ) }
Cecco Angiolieri Theodelinda Alexander III Cangrande I della Scala Mino da San Quirico Kai Darab Mikhail Kutuzov John Hooper Philip Guy of Lusignan Boniface VIII Moses Guglielmo Borsiere Guy de Montfort, Count of Nola Song Jiang David Azzo VIII d'Este, Marquis of Ferrara Agilulf Ignacy Przybyszewski Filippo Minutolo Musciatto Franzesi Salammbô Hathi Céleste de Chateaubriand Manfred, King of Sicily Davy Brown George William Russell Charles of Valois Kai Lohrasp Solomon Buonamico Buffalmacco Authari Saladin Michael J. Massimino Molly Bloom Abraham Peter III of Aragon Conrad of Montferrat Calandrino Geri Spini Godfrey of Bouillon Roger of Lauria Gautama Buddha John of Procida
David, Abraham and Charles of Valois are present in greater number of television genres or collectables than Caf' Francisco
David Abraham Charles of Valois
action greater
action union
action find_tuple_counts
relation present in work
type common name
type television genre
action find_tuple_counts
relation present in work
type common name
type collectable
action count
action filter_multi_types
action find
entity Caf' Francisco
relation present in work
type television genre
type collectable
[{'concept': 'common name'}, 'present in work', [{'concept': 'television genre'}, {'concept': 'collectable'}]]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?h ) ?z WHERE { ?m rdf:type ?b . VALUES ( ?b ) { ( ontology:television_genre ) ( ontology:collectable ) } } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?n ) WHERE { resource:Caf'_Francisco property:present_in_work ?x . { { ?x rdf:type ontology:television_genre } UNION { ?x rdf:type ontology:collectable } } } } . FILTER ( ?h > ?n ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q2600794
P1441
Q15961987 Q2342494 Q502895
USER
And what about Erik Björnsson?
(c(Q502895),P1441,c(Q15961987)|c(Q2342494))
action greater
action union
action find_tuple_counts
relation P1441
type Q502895
type Q15961987
action find_tuple_counts
relation P1441
type Q502895
type Q2342494
action count
action filter_multi_types
action find
entity Q2600794
relation P1441
type Q15961987
type Q2342494
[{'concept': 'Q502895'}, 'P1441', [{'concept': 'Q15961987'}, {'concept': 'Q2342494'}]]
SELECT DISTINCT ?w WHERE { FILTER ( ?c > ?t ) . { SELECT DISTINCT ( COUNT ( ?r ) AS ?t ) WHERE { resource:Q2600794 property:P1441 ?r . { ?r rdf:type ?m . VALUES ( ?m ) { ( ontology:Q2342494 ) ( ontology:Q15961987 ) } } } } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?c ) ?w WHERE { { ?w property:P1441 ?i . ?i rdf:type ontology:Q15961987 . ?w rdf:type ontology:Q502895 } UNION { ?i rdf:type ontology:Q2342494 . ?w rdf:type ontology:Q502895 . ?w property:P1441 ?i } } GROUP BY ?w } }
Erik Björnsson
action greater
action union
action find_tuple_counts
relation present in work
type common name
type television genre
action find_tuple_counts
relation present in work
type common name
type collectable
action count
action filter_multi_types
action find
entity Erik Björnsson
relation present in work
type television genre
type collectable
[{'concept': 'common name'}, 'present in work', [{'concept': 'television genre'}, {'concept': 'collectable'}]]
SELECT DISTINCT ?w WHERE { FILTER ( ?c > ?t ) . { SELECT DISTINCT ( COUNT ( ?r ) AS ?t ) WHERE { resource:Erik_Björnsson property:present_in_work ?r . { ?r rdf:type ?m . VALUES ( ?m ) { ( ontology:collectable ) ( ontology:television_genre ) } } } } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?c ) ?w WHERE { { ?w property:present_in_work ?i . ?i rdf:type ontology:television_genre . ?w rdf:type ontology:common_name } UNION { ?i rdf:type ontology:collectable . ?w rdf:type ontology:common_name . ?w property:present_in_work ?i } } GROUP BY ?w } }
[]
television genre collectable common name
Q41370 Q9181 Q270438
SYSTEM
David, Abraham, Charles of Valois
Q660359 Q232525 Q160116 Q785349 Q3858588 Q4154984 Q185801 Q6239779 Q34428 Q294192 Q134646 Q9077 Q3778878 Q1348720 Q716237 Q41370 Q2124082 Q315276 Q3148218 Q3745274 Q3867479 Q19348839 Q1093885 Q3010053 Q164889 Q27621044 Q366070 Q270438 Q1341779 Q37085 Q972487 Q313395 Q8581 Q32295 Q2296791 Q9181 Q312311 Q169329 Q302322 Q3761044 Q76721 Q283466 Q9441 Q1227361
(c(Q502895),P1441,c(Q15961987)|c(Q2342494))
action greater
action union
action find_tuple_counts
relation P1441
type Q502895
type Q15961987
action find_tuple_counts
relation P1441
type Q502895
type Q2342494
action count
action filter_multi_types
action find
entity Q2600794
relation P1441
type Q15961987
type Q2342494
[ANSWERS]
[{'concept': 'Q502895'}, 'P1441', [{'concept': 'Q15961987'}, {'concept': 'Q2342494'}]]
SELECT DISTINCT ?w WHERE { FILTER ( ?c > ?t ) . { SELECT DISTINCT ( COUNT ( ?r ) AS ?t ) WHERE { resource:Q2600794 property:P1441 ?r . { ?r rdf:type ?m . VALUES ( ?m ) { ( ontology:Q2342494 ) ( ontology:Q15961987 ) } } } } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?c ) ?w WHERE { { ?w property:P1441 ?i . ?i rdf:type ontology:Q15961987 . ?w rdf:type ontology:Q502895 } UNION { ?i rdf:type ontology:Q2342494 . ?w rdf:type ontology:Q502895 . ?w property:P1441 ?i } } GROUP BY ?w } }
Cecco Angiolieri Theodelinda Alexander III Cangrande I della Scala Mino da San Quirico Kai Darab Mikhail Kutuzov John Hooper Philip Guy of Lusignan Boniface VIII Moses Guglielmo Borsiere Guy de Montfort, Count of Nola Song Jiang David Azzo VIII d'Este, Marquis of Ferrara Agilulf Ignacy Przybyszewski Filippo Minutolo Musciatto Franzesi Salammbô Hathi Céleste de Chateaubriand Manfred, King of Sicily Davy Brown George William Russell Charles of Valois Kai Lohrasp Solomon Buonamico Buffalmacco Authari Saladin Michael J. Massimino Molly Bloom Abraham Peter III of Aragon Conrad of Montferrat Calandrino Geri Spini Godfrey of Bouillon Roger of Lauria Gautama Buddha John of Procida
David Abraham Charles of Valois
action greater
action union
action find_tuple_counts
relation present in work
type common name
type television genre
action find_tuple_counts
relation present in work
type common name
type collectable
action count
action filter_multi_types
action find
entity Erik Björnsson
relation present in work
type television genre
type collectable
[{'concept': 'common name'}, 'present in work', [{'concept': 'television genre'}, {'concept': 'collectable'}]]
SELECT DISTINCT ?w WHERE { FILTER ( ?c > ?t ) . { SELECT DISTINCT ( COUNT ( ?r ) AS ?t ) WHERE { resource:Erik_Björnsson property:present_in_work ?r . { ?r rdf:type ?m . VALUES ( ?m ) { ( ontology:collectable ) ( ontology:television_genre ) } } } } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?c ) ?w WHERE { { ?w property:present_in_work ?i . ?i rdf:type ontology:television_genre . ?w rdf:type ontology:common_name } UNION { ?i rdf:type ontology:collectable . ?w rdf:type ontology:common_name . ?w property:present_in_work ?i } } GROUP BY ?w } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q41370
P674
Q223393
USER
Which literary genre has the character that person ?
(c(Q223393),P674,Q41370)
action filter_type
action find_reverse
entity Q41370
relation P674
type Q223393
[{'concept': 'Q223393'}, 'P674', 'Q41370']
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q223393 . ?k property:P674 resource:Q41370 }
David
action filter_type
action find_reverse
entity David
relation characters
type literary genre
[{'concept': 'literary genre'}, 'characters', 'David']
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:literary_genre . ?k property:characters resource:David }
[]
literary genre
Clarification for simple ques.
Q9181
SYSTEM
Did you mean Abraham ?
Q41370 Q9181 Q270438
(c(Q223393),P674,Q41370) (c(Q223393),P674,Q9181) (c(Q223393),P674,Q270438)
[ANSWER]
[{'concept': 'Q223393'}, 'P674', 'Q41370'] [{'concept': 'Q223393'}, 'P674', 'Q9181'] [{'concept': 'Q223393'}, 'P674', 'Q270438']
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q223393 . ?k property:P674 resource:Q41370 }
David Abraham Charles of Valois
Did you mean Abraham ?
Abraham
[{'concept': 'literary genre'}, 'characters', 'David'] [{'concept': 'literary genre'}, 'characters', 'Abraham'] [{'concept': 'literary genre'}, 'characters', 'Charles of Valois']
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:literary_genre . ?k property:characters resource:David }
[]
Simple Question (Coreferenced)
USER
No, I meant David. Could you tell me the answer for that?
(c(Q223393),P674,Q41370)
Q41370
[{'concept': 'Q223393'}, 'P674', 'Q41370']
[{'concept': 'literary genre'}, 'characters', 'David']
[]
Q40185
SYSTEM
The Divine Comedy
Q40185
(c(Q223393),P674,Q41370)
action filter_type
action find_reverse
entity Q41370
relation P674
type Q223393
[ANSWER] has the character that person
[{'concept': 'Q223393'}, 'P674', 'Q41370']
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q223393 . ?k property:P674 resource:Q41370 }
The Divine Comedy
The Divine Comedy has the character that person
The Divine Comedy
action filter_type
action find_reverse
entity David
relation characters
type literary genre
[{'concept': 'literary genre'}, 'characters', 'David']
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:literary_genre . ?k property:characters resource:David }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q25929339 Q9181
P1441
Q15416
USER
Which television programs do Abraham or Nolan Ross appear ?
OR((Q9181,P1441,c(Q15416)), (Q25929339,P1441,c(Q15416)))
action filter_type
action union
action find
entity Q9181
relation P1441
action find
entity Q25929339
relation P1441
type Q15416
{'OR': [['Q9181', 'P1441', {'concept': 'Q15416'}], ['Q25929339', 'P1441', {'concept': 'Q15416'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Q9181 property:P1441 ?v } UNION { resource:Q25929339 property:P1441 ?v } } . ?v rdf:type ontology:Q15416 }
Nolan Ross Abraham
action filter_type
action union
action find
entity Abraham
relation present in work
action find
entity Nolan Ross
relation present in work
type television program
{'OR': [['Abraham', 'present in work', {'concept': 'television program'}], ['Nolan Ross', 'present in work', {'concept': 'television program'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Abraham property:present_in_work ?v } UNION { resource:Nolan_Ross property:present_in_work ?v } } . ?v rdf:type ontology:television_program }
[]
television program
Q630496 Q663759
SYSTEM
Abraham, Revenge
Q630496 Q663759
OR((Q9181,P1441,c(Q15416)), (Q25929339,P1441,c(Q15416)))
action filter_type
action union
action find
entity Q9181
relation P1441
action find
entity Q25929339
relation P1441
type Q15416
Abraham or Nolan Ross appear in [ANSWERS]
{'OR': [['Q9181', 'P1441', {'concept': 'Q15416'}], ['Q25929339', 'P1441', {'concept': 'Q15416'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Q9181 property:P1441 ?v } UNION { resource:Q25929339 property:P1441 ?v } } . ?v rdf:type ontology:Q15416 }
Abraham Revenge
Abraham or Nolan Ross appear in Abraham and Revenge
Abraham Revenge
action filter_type
action union
action find
entity Abraham
relation present in work
action find
entity Nolan Ross
relation present in work
type television program
{'OR': [['Abraham', 'present in work', {'concept': 'television program'}], ['Nolan Ross', 'present in work', {'concept': 'television program'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Abraham property:present_in_work ?v } UNION { resource:Nolan_Ross property:present_in_work ?v } } . ?v rdf:type ontology:television_program }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q3560473 Q41370
P161 P40
Q502895
USER
Which people are a successors of David or starred in Imperial Violets ?
OR((Q41370,P40,c(Q502895)), (Q3560473,P161,c(Q502895)))
action filter_type
action union
action find
entity Q41370
relation P40
action find
entity Q3560473
relation P161
type Q502895
{'OR': [['Q41370', 'P40', {'concept': 'Q502895'}], ['Q3560473', 'P161', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?p WHERE { { { resource:Q41370 property:P40 ?p } UNION { resource:Q3560473 property:P161 ?p } } . ?p rdf:type ontology:Q502895 }
Imperial Violets David
action filter_type
action union
action find
entity David
relation child
action find
entity Imperial Violets
relation cast member
type common name
{'OR': [['David', 'child', {'concept': 'common name'}], ['Imperial Violets', 'cast member', {'concept': 'common name'}]]}
SELECT DISTINCT ?p WHERE { { { resource:David property:child ?p } UNION { resource:Imperial_Violets property:cast_member ?p } } . ?p rdf:type ontology:common_name }
[]
common name
Q3557631 Q360378 Q361636 Q2418113 Q269881 Q3588470 Q3263621 Q3437128 Q2939517 Q2917173
SYSTEM
Some of them are Victor Vina, Adonijah, Amnon, Chileab, Suzy Delair, Émile Drain, Louisa de Mornand, Nathan, Carlotta Conti, Tamar
Q205372 Q269881 Q3557631 Q37085 Q5444525 Q2418113 Q361636 Q2670911 Q3588470 Q3372580 Q2917173 Q3263621 Q360378 Q2400852 Q2939517 Q3437128 Q455999
OR((Q41370,P40,c(Q502895)), (Q3560473,P161,c(Q502895)))
action filter_type
action union
action find
entity Q41370
relation P40
action find
entity Q3560473
relation P161
type Q502895
[ANSWERS] are a successors of David or starred in Imperial Violets
{'OR': [['Q41370', 'P40', {'concept': 'Q502895'}], ['Q3560473', 'P161', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?p WHERE { { { resource:Q41370 property:P40 ?p } UNION { resource:Q3560473 property:P161 ?p } } . ?p rdf:type ontology:Q502895 }
Absalom Suzy Delair Victor Vina Solomon Fernand Mailly Chileab Amnon Raquel Meller Émile Drain Paule Andral Tamar Louisa de Mornand Adonijah Georges Péclet Carlotta Conti Nathan Suzanne Bianchetti
Victor Vina, Adonijah, Amnon, Chileab, Suzy Delair, Émile Drain, Louisa de Mornand, Nathan, Carlotta Conti and Tamar are a successors of David or starred in Imperial Violets
Victor Vina Adonijah Amnon Chileab Suzy Delair Émile Drain Louisa de Mornand Nathan Carlotta Conti Tamar
action filter_type
action union
action find
entity David
relation child
action find
entity Imperial Violets
relation cast member
type common name
{'OR': [['David', 'child', {'concept': 'common name'}], ['Imperial Violets', 'cast member', {'concept': 'common name'}]]}
SELECT DISTINCT ?p WHERE { { { resource:David property:child ?p } UNION { resource:Imperial_Violets property:cast_member ?p } } . ?p rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3560473
P86
Q502895
USER
Who was Imperial Violets composed by ?
(Q3560473,P86,c(Q502895))
action filter_type
action find
entity Q3560473
relation P86
type Q502895
['Q3560473', 'P86', {'concept': 'Q502895'}]
SELECT DISTINCT ?h WHERE { resource:Q3560473 property:P86 ?h . ?h rdf:type ontology:Q502895 }
Imperial Violets
action filter_type
action find
entity Imperial Violets
relation composer
type common name
['Imperial Violets', 'composer', {'concept': 'common name'}]
SELECT DISTINCT ?h WHERE { resource:Imperial_Violets property:composer ?h . ?h rdf:type ontology:common_name }
[]
common name
Q605250
SYSTEM
José Padilla
Q605250
(Q3560473,P86,c(Q502895))
action filter_type
action find
entity Q3560473
relation P86
type Q502895
Imperial Violets was composed by [ANSWER]
['Q3560473', 'P86', {'concept': 'Q502895'}]
SELECT DISTINCT ?h WHERE { resource:Q3560473 property:P86 ?h . ?h rdf:type ontology:Q502895 }
José Padilla
Imperial Violets was composed by José Padilla
José Padilla
action filter_type
action find
entity Imperial Violets
relation composer
type common name
['Imperial Violets', 'composer', {'concept': 'common name'}]
SELECT DISTINCT ?h WHERE { resource:Imperial_Violets property:composer ?h . ?h rdf:type ontology:common_name }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q5647726
P725
Q502895 Q2342494
USER
How many collectables did lesser number of people dub for than Handy Manny's Motorcycle Adventure ?
(c(Q2342494),P725,c(Q502895))
action count
action less
action find_tuple_counts
relation P725
type Q2342494
type Q502895
action count
action filter_type
action find
entity Q5647726
relation P725
type Q502895
[{'concept': 'Q2342494'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?j ) WHERE { FILTER ( ?m < ?l ) . { SELECT DISTINCT ( COUNT ( ?q ) AS ?l ) WHERE { resource:Q5647726 property:P725 ?q . ?q rdf:type ontology:Q502895 } } . { SELECT DISTINCT ?u ( COUNT ( ?r ) AS ?m ) WHERE { ?u property:P725 ?r . ?u rdf:type ontology:Q2342494 . ?r rdf:type ontology:Q502895 } GROUP BY ?u } }
Handy Manny's Motorcycle Adventure
action count
action less
action find_tuple_counts
relation voice actor
type collectable
type common name
action count
action filter_type
action find
entity Handy Manny's Motorcycle Adventure
relation voice actor
type common name
[{'concept': 'collectable'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?j ) WHERE { FILTER ( ?m < ?l ) . { SELECT DISTINCT ( COUNT ( ?q ) AS ?l ) WHERE { resource:Handy_Manny's_Motorcycle_Adventure property:voice_actor ?q . ?q rdf:type ontology:common_name } } . { SELECT DISTINCT ?u ( COUNT ( ?r ) AS ?m ) WHERE { ?u property:voice_actor ?r . ?u rdf:type ontology:collectable . ?r rdf:type ontology:common_name } GROUP BY ?u } }
[]
common name collectable
SYSTEM
12
Q50035 Q495094 Q482870 Q336056 Q1204015 Q304061 Q11272884 Q11325839 Q119534 Q184667 Q485958 Q2759489
(c(Q2342494),P725,c(Q502895))
action count
action less
action find_tuple_counts
relation P725
type Q2342494
type Q502895
action count
action filter_type
action find
entity Q5647726
relation P725
type Q502895
[ANSWER]
[{'concept': 'Q2342494'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?j ) WHERE { FILTER ( ?m < ?l ) . { SELECT DISTINCT ( COUNT ( ?q ) AS ?l ) WHERE { resource:Q5647726 property:P725 ?q . ?q rdf:type ontology:Q502895 } } . { SELECT DISTINCT ?u ( COUNT ( ?r ) AS ?m ) WHERE { ?u property:P725 ?r . ?u rdf:type ontology:Q2342494 . ?r rdf:type ontology:Q502895 } GROUP BY ?u } }
Nyaruko: Crawling with Love Durarara!! Boku wa Tomodachi ga Sukunai The Girl Who Leapt Through Time Ōkami Kakushi Kyo Kara Maoh! Toaru Hikūshi e no Koiuta No Game No Life-mart Shakugan no Shana Kanojo ga Flag o Oraretara Ro-Kyu-Bu! Muv-Luv
12
action count
action less
action find_tuple_counts
relation voice actor
type collectable
type common name
action count
action filter_type
action find
entity Handy Manny's Motorcycle Adventure
relation voice actor
type common name
[{'concept': 'collectable'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?j ) WHERE { FILTER ( ?m < ?l ) . { SELECT DISTINCT ( COUNT ( ?q ) AS ?l ) WHERE { resource:Handy_Manny's_Motorcycle_Adventure property:voice_actor ?q . ?q rdf:type ontology:common_name } } . { SELECT DISTINCT ?u ( COUNT ( ?r ) AS ?m ) WHERE { ?u property:voice_actor ?r . ?u rdf:type ontology:collectable . ?r rdf:type ontology:common_name } GROUP BY ?u } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q41370
P39
Q12737077 Q4164871
USER
How many occupations and positions were the positions occupied by David ?
(Q41370,P39,c(Q12737077)) (Q41370,P39,c(Q4164871))
action count
action union
action filter_type
action find
entity Q41370
relation P39
type Q12737077
action filter_type
action find
entity Q41370
relation P39
type Q4164871
['Q41370', 'P39', {'concept': 'Q12737077'}] ['Q41370', 'P39', {'concept': 'Q4164871'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?j ) WHERE { { resource:Q41370 property:P39 ?o . ?o rdf:type ontology:Q12737077 } UNION { resource:Q41370 property:P39 ?o . ?o rdf:type ontology:Q4164871 } }
David
action count
action union
action filter_type
action find
entity David
relation position held
type occupation
action filter_type
action find
entity David
relation position held
type position
['David', 'position held', {'concept': 'occupation'}] ['David', 'position held', {'concept': 'position'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?j ) WHERE { { resource:David property:position_held ?o . ?o rdf:type ontology:occupation } UNION { resource:David property:position_held ?o . ?o rdf:type ontology:position } }
[]
occupation position
SYSTEM
1 occupations and 1 positions
Q26835654 Q12097
(Q41370,P39,c(Q12737077)) (Q41370,P39,c(Q4164871))
action count
action union
action filter_type
action find
entity Q41370
relation P39
type Q12737077
action filter_type
action find
entity Q41370
relation P39
type Q4164871
[ANSWER]
['Q41370', 'P39', {'concept': 'Q12737077'}] ['Q41370', 'P39', {'concept': 'Q4164871'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?j ) WHERE { { resource:Q41370 property:P39 ?o . ?o rdf:type ontology:Q12737077 } UNION { resource:Q41370 property:P39 ?o . ?o rdf:type ontology:Q4164871 } }
king of Israel king
1 occupations and 1 positions
action count
action union
action filter_type
action find
entity David
relation position held
type occupation
action filter_type
action find
entity David
relation position held
type position
['David', 'position held', {'concept': 'occupation'}] ['David', 'position held', {'concept': 'position'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?j ) WHERE { { resource:David property:position_held ?o . ?o rdf:type ontology:occupation } UNION { resource:David property:position_held ?o . ?o rdf:type ontology:position } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q7177468 Q360378
P22
Q502895
USER
Which people were the dad of Adonijah or Peter Vanneck ?
OR((Q360378,P22,c(Q502895)), (Q7177468,P22,c(Q502895)))
action filter_type
action union
action find
entity Q360378
relation P22
action find
entity Q7177468
relation P22
type Q502895
{'OR': [['Q360378', 'P22', {'concept': 'Q502895'}], ['Q7177468', 'P22', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q502895 . { { resource:Q7177468 property:P22 ?v } UNION { resource:Q360378 property:P22 ?v } } }
Peter Vanneck Adonijah
action filter_type
action union
action find
entity Adonijah
relation father
action find
entity Peter Vanneck
relation father
type common name
{'OR': [['Adonijah', 'father', {'concept': 'common name'}], ['Peter Vanneck', 'father', {'concept': 'common name'}]]}
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:common_name . { { resource:Peter_Vanneck property:father ?v } UNION { resource:Adonijah property:father ?v } } }
[]
common name
Q41370 Q1755413
SYSTEM
David, William Vanneck, 5th Baron Huntingfield
Q41370 Q1755413
OR((Q360378,P22,c(Q502895)), (Q7177468,P22,c(Q502895)))
action filter_type
action union
action find
entity Q360378
relation P22
action find
entity Q7177468
relation P22
type Q502895
[ANSWERS]
{'OR': [['Q360378', 'P22', {'concept': 'Q502895'}], ['Q7177468', 'P22', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q502895 . { { resource:Q7177468 property:P22 ?v } UNION { resource:Q360378 property:P22 ?v } } }
David William Vanneck, 5th Baron Huntingfield
David and William Vanneck, 5th Baron Huntingfield were the dad of Adonijah or Peter Vanneck
David William Vanneck, 5th Baron Huntingfield
action filter_type
action union
action find
entity Adonijah
relation father
action find
entity Peter Vanneck
relation father
type common name
{'OR': [['Adonijah', 'father', {'concept': 'common name'}], ['Peter Vanneck', 'father', {'concept': 'common name'}]]}
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:common_name . { { resource:Peter_Vanneck property:father ?v } UNION { resource:Adonijah property:father ?v } } }
[]