Simple Question (Direct)
Simple Question
Q5575626
P106
Q12737077
USER
What does Peder Turesson do for a living ?
(Q5575626,P106,c(Q12737077))
action filter_type
action find
entity Q5575626
relation P106
type Q12737077
['Q5575626', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?q WHERE { resource:Q5575626 property:P106 ?q . ?q rdf:type ontology:Q12737077 }
Peder Turesson
action filter_type
action find
entity Peder Turesson
relation occupation
type occupation
['Peder Turesson', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?q WHERE { resource:Peder_Turesson property:occupation ?q . ?q rdf:type ontology:occupation }
[]
occupation
Q82955
SYSTEM
politician
Q82955
(Q5575626,P106,c(Q12737077))
action filter_type
action find
entity Q5575626
relation P106
type Q12737077
Peder Turesson does a [ANSWER] for a living
['Q5575626', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?q WHERE { resource:Q5575626 property:P106 ?q . ?q rdf:type ontology:Q12737077 }
politician
Peder Turesson does a politician for a living
politician
action filter_type
action find
entity Peder Turesson
relation occupation
type occupation
['Peder Turesson', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?q WHERE { resource:Peder_Turesson property:occupation ?q . ?q rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q82955
P39
Q502895
USER
Who was responsible for occupying the position of that occupation ?
(c(Q502895),P39,Q82955)
action filter_type
action find_reverse
entity Q82955
relation P39
type Q502895
[{'concept': 'Q502895'}, 'P39', 'Q82955']
SELECT DISTINCT ?w WHERE { ?w property:P39 resource:Q82955 . ?w rdf:type ontology:Q502895 }
politician
action filter_type
action find_reverse
entity politician
relation position held
type common name
[{'concept': 'common name'}, 'position held', 'politician']
SELECT DISTINCT ?w WHERE { ?w property:position_held resource:politician . ?w rdf:type ontology:common_name }
[]
common name
Q26215129
SYSTEM
Morteza Azari
Q26215129
(c(Q502895),P39,Q82955)
action filter_type
action find_reverse
entity Q82955
relation P39
type Q502895
[ANSWER] was responsible for occupying the position of that occupation
[{'concept': 'Q502895'}, 'P39', 'Q82955']
SELECT DISTINCT ?w WHERE { ?w property:P39 resource:Q82955 . ?w rdf:type ontology:Q502895 }
Morteza Azari
Morteza Azari was responsible for occupying the position of that occupation
Morteza Azari
action filter_type
action find_reverse
entity politician
relation position held
type common name
[{'concept': 'common name'}, 'position held', 'politician']
SELECT DISTINCT ?w WHERE { ?w property:position_held resource:politician . ?w rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q26215129
P27
Q15617994
USER
How many administrative territories are Morteza Azari an inhabitant of ?
(Q26215129,P27,c(Q15617994))
action count
action filter_type
action find
entity Q26215129
relation P27
type Q15617994
['Q26215129', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?z ) WHERE { ?q rdf:type ontology:Q15617994 . resource:Q26215129 property:P27 ?q }
Morteza Azari
action count
action filter_type
action find
entity Morteza Azari
relation country of citizenship
type designation for an administrative territorial entity
['Morteza Azari', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?z ) WHERE { ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Morteza_Azari property:country_of_citizenship ?q }
[]
designation for an administrative territorial entity
SYSTEM
1
Q794
(Q26215129,P27,c(Q15617994))
action count
action filter_type
action find
entity Q26215129
relation P27
type Q15617994
[ANSWER]
['Q26215129', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?z ) WHERE { ?q rdf:type ontology:Q15617994 . resource:Q26215129 property:P27 ?q }
Iran
1
action count
action filter_type
action find
entity Morteza Azari
relation country of citizenship
type designation for an administrative territorial entity
['Morteza Azari', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?z ) WHERE { ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Morteza_Azari property:country_of_citizenship ?q }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Incomplete
Q5673137
P27
Q15617994
USER
And also tell me about Harry W. Wellford?
(Q5673137,P27,c(Q15617994))
action count
action filter_type
action find
entity Q5673137
relation P27
type Q15617994
['Q5673137', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?e ) WHERE { resource:Q5673137 property:P27 ?y . ?y rdf:type ontology:Q15617994 }
Harry W. Wellford
action count
action filter_type
action find
entity Harry W. Wellford
relation country of citizenship
type designation for an administrative territorial entity
['Harry W. Wellford', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?e ) WHERE { resource:Harry_W._Wellford property:country_of_citizenship ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
SYSTEM
1
Q30
(Q5673137,P27,c(Q15617994))
action count
action filter_type
action find
entity Q5673137
relation P27
type Q15617994
[ANSWER]
['Q5673137', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?e ) WHERE { resource:Q5673137 property:P27 ?y . ?y rdf:type ontology:Q15617994 }
United States of America
1
action count
action filter_type
action find
entity Harry W. Wellford
relation country of citizenship
type designation for an administrative territorial entity
['Harry W. Wellford', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?e ) WHERE { resource:Harry_W._Wellford property:country_of_citizenship ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Incomplete count-based ques
Q24736962
Q15617994
USER
And how about Merlijn Doomernik?
(Q24736962,P27,c(Q15617994))
action count
action filter_type
action find
entity Q24736962
relation P27
type Q15617994
['Q24736962', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?z ) WHERE { resource:Q24736962 property:P27 ?s . ?s rdf:type ontology:Q15617994 }
Merlijn Doomernik
action count
action filter_type
action find
entity Merlijn Doomernik
relation country of citizenship
type designation for an administrative territorial entity
['Merlijn Doomernik', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?z ) WHERE { resource:Merlijn_Doomernik property:country_of_citizenship ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
SYSTEM
1
(Q24736962,P27,c(Q15617994))
action count
action filter_type
action find
entity Q24736962
relation P27
type Q15617994
[ANSWER]
['Q24736962', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?z ) WHERE { resource:Q24736962 property:P27 ?s . ?s rdf:type ontology:Q15617994 }
1
action count
action filter_type
action find
entity Merlijn Doomernik
relation country of citizenship
type designation for an administrative territorial entity
['Merlijn Doomernik', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?z ) WHERE { resource:Merlijn_Doomernik property:country_of_citizenship ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q82955 Q134737
P106
Q502895
USER
How many people have the profession as politician and nobility ?
(c(Q502895),P106,Q82955) (c(Q502895),P106,Q134737)
action count
action intersection
action filter_type
action find_reverse
entity Q82955
relation P106
type Q502895
action filter_type
action find_reverse
entity Q134737
relation P106
type Q502895
[{'concept': 'Q502895'}, 'P106', 'Q82955'] [{'concept': 'Q502895'}, 'P106', 'Q134737']
SELECT DISTINCT ( COUNT ( ?z ) AS ?p ) WHERE { ?z property:P106 resource:Q82955 . ?z rdf:type ontology:Q502895 . ?z property:P106 resource:Q134737 . ?z rdf:type ontology:Q502895 }
politician nobility
action count
action intersection
action filter_type
action find_reverse
entity politician
relation occupation
type common name
action filter_type
action find_reverse
entity nobility
relation occupation
type common name
[{'concept': 'common name'}, 'occupation', 'politician'] [{'concept': 'common name'}, 'occupation', 'nobility']
SELECT DISTINCT ( COUNT ( ?z ) AS ?p ) WHERE { ?z property:occupation resource:politician . ?z rdf:type ontology:common_name . ?z property:occupation resource:nobility . ?z rdf:type ontology:common_name }
[]
common name
SYSTEM
2
Q19690728 Q7189159
(c(Q502895),P106,Q82955) (c(Q502895),P106,Q134737)
action count
action intersection
action filter_type
action find_reverse
entity Q82955
relation P106
type Q502895
action filter_type
action find_reverse
entity Q134737
relation P106
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P106', 'Q82955'] [{'concept': 'Q502895'}, 'P106', 'Q134737']
SELECT DISTINCT ( COUNT ( ?z ) AS ?p ) WHERE { ?z property:P106 resource:Q82955 . ?z rdf:type ontology:Q502895 . ?z property:P106 resource:Q134737 . ?z rdf:type ontology:Q502895 }
Leopold Donat von Trautson Álvaro II de Zúñiga y Guzmán
2
action count
action intersection
action filter_type
action find_reverse
entity politician
relation occupation
type common name
action filter_type
action find_reverse
entity nobility
relation occupation
type common name
[{'concept': 'common name'}, 'occupation', 'politician'] [{'concept': 'common name'}, 'occupation', 'nobility']
SELECT DISTINCT ( COUNT ( ?z ) AS ?p ) WHERE { ?z property:occupation resource:politician . ?z rdf:type ontology:common_name . ?z property:occupation resource:nobility . ?z rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q82955
P921
Q223393
USER
Which literary genre was mainly based on politician ?
(c(Q223393),P921,Q82955)
action filter_type
action find_reverse
entity Q82955
relation P921
type Q223393
[{'concept': 'Q223393'}, 'P921', 'Q82955']
SELECT DISTINCT ?q WHERE { ?q property:P921 resource:Q82955 . ?q rdf:type ontology:Q223393 }
politician
action filter_type
action find_reverse
entity politician
relation main subject
type literary genre
[{'concept': 'literary genre'}, 'main subject', 'politician']
SELECT DISTINCT ?q WHERE { ?q property:main_subject resource:politician . ?q rdf:type ontology:literary_genre }
[]
literary genre
Q21815179
SYSTEM
worldstatesmen
Q21815179
(c(Q223393),P921,Q82955)
action filter_type
action find_reverse
entity Q82955
relation P921
type Q223393
[ANSWER] was mainly based on politician
[{'concept': 'Q223393'}, 'P921', 'Q82955']
SELECT DISTINCT ?q WHERE { ?q property:P921 resource:Q82955 . ?q rdf:type ontology:Q223393 }
worldstatesmen
Worldstatesmen was mainly based on politician
worldstatesmen
action filter_type
action find_reverse
entity politician
relation main subject
type literary genre
[{'concept': 'literary genre'}, 'main subject', 'politician']
SELECT DISTINCT ?q WHERE { ?q property:main_subject resource:politician . ?q rdf:type ontology:literary_genre }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q5575626 Q7934286
P106
Q12737077
USER
How many occupations do Peder Turesson or Virginia Governor's Council do for a living ?
(Q5575626,P106,c(Q12737077)) (Q7934286,P106,c(Q12737077))
action count
action union
action filter_type
action find
entity Q5575626
relation P106
type Q12737077
action filter_type
action find
entity Q7934286
relation P106
type Q12737077
['Q5575626', 'P106', {'concept': 'Q12737077'}] ['Q7934286', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?k ) WHERE { { resource:Q5575626 property:P106 ?u . ?u rdf:type ontology:Q12737077 } UNION { ?u rdf:type ontology:Q12737077 . resource:Q7934286 property:P106 ?u } }
Peder Turesson Virginia Governor's Council
action count
action union
action filter_type
action find
entity Peder Turesson
relation occupation
type occupation
action filter_type
action find
entity Virginia Governor's Council
relation occupation
type occupation
['Peder Turesson', 'occupation', {'concept': 'occupation'}] ["Virginia Governor's Council", 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?k ) WHERE { { resource:Peder_Turesson property:occupation ?u . ?u rdf:type ontology:occupation } UNION { ?u rdf:type ontology:occupation . resource:Virginia_Governor's_Council property:occupation ?u } }
[]
occupation
SYSTEM
2
Q16533 Q82955
(Q5575626,P106,c(Q12737077)) (Q7934286,P106,c(Q12737077))
action count
action union
action filter_type
action find
entity Q5575626
relation P106
type Q12737077
action filter_type
action find
entity Q7934286
relation P106
type Q12737077
[ANSWER]
['Q5575626', 'P106', {'concept': 'Q12737077'}] ['Q7934286', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?k ) WHERE { { resource:Q5575626 property:P106 ?u . ?u rdf:type ontology:Q12737077 } UNION { ?u rdf:type ontology:Q12737077 . resource:Q7934286 property:P106 ?u } }
judge politician
2
action count
action union
action filter_type
action find
entity Peder Turesson
relation occupation
type occupation
action filter_type
action find
entity Virginia Governor's Council
relation occupation
type occupation
['Peder Turesson', 'occupation', {'concept': 'occupation'}] ["Virginia Governor's Council", 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?k ) WHERE { { resource:Peder_Turesson property:occupation ?u . ?u rdf:type ontology:occupation } UNION { ?u rdf:type ontology:occupation . resource:Virginia_Governor's_Council property:occupation ?u } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q1094143
P674
Q15619164 Q502895 Q223393
USER
Which literary genres have the character greater number of abstract beings or people than The Last of the Clan McDuck ?
(c(Q223393),P674,c(Q15619164)|c(Q502895))
action greater
action union
action find_tuple_counts
relation P674
type Q223393
type Q15619164
action find_tuple_counts
relation P674
type Q223393
type Q502895
action count
action filter_multi_types
action find
entity Q1094143
relation P674
type Q15619164
type Q502895
[{'concept': 'Q223393'}, 'P674', [{'concept': 'Q15619164'}, {'concept': 'Q502895'}]]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?c ) ?r WHERE { VALUES ( ?y ) { ( ontology:Q15619164 ) ( ontology:Q502895 ) } . ?s rdf:type ?y } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?o ) WHERE { resource:Q1094143 property:P674 ?n . { { ?n rdf:type ontology:Q15619164 } UNION { ?n rdf:type ontology:Q502895 } } } } . FILTER ( ?c > ?o ) }
The Last of the Clan McDuck
action greater
action union
action find_tuple_counts
relation characters
type literary genre
type abstract being
action find_tuple_counts
relation characters
type literary genre
type common name
action count
action filter_multi_types
action find
entity The Last of the Clan McDuck
relation characters
type abstract being
type common name
[{'concept': 'literary genre'}, 'characters', [{'concept': 'abstract being'}, {'concept': 'common name'}]]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?c ) ?r WHERE { VALUES ( ?y ) { ( ontology:abstract_being ) ( ontology:common_name ) } . ?s rdf:type ?y } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?o ) WHERE { resource:The_Last_of_the_Clan_McDuck property:characters ?n . { { ?n rdf:type ontology:abstract_being } UNION { ?n rdf:type ontology:common_name } } } } . FILTER ( ?c > ?o ) }
[]
abstract being common name literary genre
Q40185 Q8275 Q781898
SYSTEM
The Divine Comedy, Iliad, Os Lusíadas
Q4010942 Q47504 Q40185 Q27037201 Q1032337 Q1546812 Q734095 Q11841 Q3828461 Q60220 Q392849 Q3226514 Q8275 Q4134557 Q2264590 Q18600581 Q1329003 Q781898 Q2537008 Q6367266 Q650791
(c(Q223393),P674,c(Q15619164)|c(Q502895))
action greater
action union
action find_tuple_counts
relation P674
type Q223393
type Q15619164
action find_tuple_counts
relation P674
type Q223393
type Q502895
action count
action filter_multi_types
action find
entity Q1094143
relation P674
type Q15619164
type Q502895
[ANSWERS] have the character greater number of abstract beings or people than The Last of the Clan McDuck
[{'concept': 'Q223393'}, 'P674', [{'concept': 'Q15619164'}, {'concept': 'Q502895'}]]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?c ) ?r WHERE { VALUES ( ?y ) { ( ontology:Q15619164 ) ( ontology:Q502895 ) } . ?s rdf:type ?y } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?o ) WHERE { resource:Q1094143 property:P674 ?n . { { ?n rdf:type ontology:Q15619164 } UNION { ?n rdf:type ontology:Q502895 } } } } . FILTER ( ?c > ?o ) }
Travels of Anacharsis the younger in Greece The Tale of Igor's Campaign The Divine Comedy Aliens: Field Report The Big Fat Kill Hyndluljóð Res Gestae Divi Augusti Cinderella Wings in the Night Aeneid A Perfect Day for Bananafish Le Roi Candaule Iliad Red Nails Di Nü Hua Day One, Tale One of the Decameron Legend of the White Snake Os Lusíadas Logicomix The Blue Cross The People of the Black Circle
The Divine Comedy, Iliad and Os Lusíadas have the character greater number of abstract beings or people than The Last of the Clan McDuck
The Divine Comedy Iliad Os Lusíadas
action greater
action union
action find_tuple_counts
relation characters
type literary genre
type abstract being
action find_tuple_counts
relation characters
type literary genre
type common name
action count
action filter_multi_types
action find
entity The Last of the Clan McDuck
relation characters
type abstract being
type common name
[{'concept': 'literary genre'}, 'characters', [{'concept': 'abstract being'}, {'concept': 'common name'}]]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?c ) ?r WHERE { VALUES ( ?y ) { ( ontology:abstract_being ) ( ontology:common_name ) } . ?s rdf:type ?y } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?o ) WHERE { resource:The_Last_of_the_Clan_McDuck property:characters ?n . { { ?n rdf:type ontology:abstract_being } UNION { ?n rdf:type ontology:common_name } } } } . FILTER ( ?c > ?o ) }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q40185 Q8275 Q781898
P800
Q502895
USER
Who have The Divine Comedy, Iliad and Os Lusíadas as their notable work ?
(c(Q502895),P800,Q40185) (c(Q502895),P800,Q8275) (c(Q502895),P800,Q781898)
action union
action filter_type
action find_reverse
entity Q40185
relation P800
type Q502895
action filter_type
action find_reverse
entity Q8275
relation P800
type Q502895
action filter_type
action find_reverse
entity Q781898
relation P800
type Q502895
[{'concept': 'Q502895'}, 'P800', 'Q40185'] [{'concept': 'Q502895'}, 'P800', 'Q8275'] [{'concept': 'Q502895'}, 'P800', 'Q781898']
SELECT DISTINCT ?v WHERE { ?v property:P800 ?a . VALUES ( ?a ) { ( resource:Q40185 ) ( resource:Q8275 ) } }
The Divine Comedy Iliad Os Lusíadas
action union
action filter_type
action find_reverse
entity The Divine Comedy
relation notable work
type common name
action filter_type
action find_reverse
entity Iliad
relation notable work
type common name
action filter_type
action find_reverse
entity Os Lusíadas
relation notable work
type common name
[{'concept': 'common name'}, 'notable work', 'The Divine Comedy'] [{'concept': 'common name'}, 'notable work', 'Iliad'] [{'concept': 'common name'}, 'notable work', 'Os Lusíadas']
SELECT DISTINCT ?v WHERE { ?v property:notable_work ?a . VALUES ( ?a ) { ( resource:The_Divine_Comedy ) ( resource:Iliad ) } }
[]
common name
Q1067 Q947519 Q590
SYSTEM
Dante Alighieri, John Ciardi, Luís de Camões
Q1067 Q947519 Q1725378 Q9066239 Q590
(c(Q502895),P800,Q40185) (c(Q502895),P800,Q8275) (c(Q502895),P800,Q781898)
action union
action filter_type
action find_reverse
entity Q40185
relation P800
type Q502895
action filter_type
action find_reverse
entity Q8275
relation P800
type Q502895
action filter_type
action find_reverse
entity Q781898
relation P800
type Q502895
[ANSWERS] have The Divine Comedy, Iliad and Os Lusíadas as their notable work
[{'concept': 'Q502895'}, 'P800', 'Q40185'] [{'concept': 'Q502895'}, 'P800', 'Q8275'] [{'concept': 'Q502895'}, 'P800', 'Q781898']
SELECT DISTINCT ?v WHERE { ?v property:P800 ?a . VALUES ( ?a ) { ( resource:Q40185 ) ( resource:Q8275 ) } }
Dante Alighieri John Ciardi Thomas G. Bergin Wang Huansheng Luís de Camões
Dante Alighieri, John Ciardi and Luís de Camões have The Divine Comedy, Iliad and Os Lusíadas as their notable work
Dante Alighieri John Ciardi Luís de Camões
action union
action filter_type
action find_reverse
entity The Divine Comedy
relation notable work
type common name
action filter_type
action find_reverse
entity Iliad
relation notable work
type common name
action filter_type
action find_reverse
entity Os Lusíadas
relation notable work
type common name
[{'concept': 'common name'}, 'notable work', 'The Divine Comedy'] [{'concept': 'common name'}, 'notable work', 'Iliad'] [{'concept': 'common name'}, 'notable work', 'Os Lusíadas']
SELECT DISTINCT ?v WHERE { ?v property:notable_work ?a . VALUES ( ?a ) { ( resource:The_Divine_Comedy ) ( resource:Iliad ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1067
P463
Q968159
USER
Which art movement was Dante Alighieri a member of ?
(Q1067,P463,c(Q968159))
action filter_type
action find
entity Q1067
relation P463
type Q968159
['Q1067', 'P463', {'concept': 'Q968159'}]
SELECT DISTINCT ?p WHERE { resource:Q1067 property:P463 ?p . ?p rdf:type ontology:Q968159 }
Dante Alighieri
action filter_type
action find
entity Dante Alighieri
relation member of
type art movement
['Dante Alighieri', 'member of', {'concept': 'art movement'}]
SELECT DISTINCT ?p WHERE { resource:Dante_Alighieri property:member_of ?p . ?p rdf:type ontology:art_movement }
[]
art movement
Q542036
SYSTEM
Dolce Stil Novo
Q542036
(Q1067,P463,c(Q968159))
action filter_type
action find
entity Q1067
relation P463
type Q968159
[ANSWER] was Dante Alighieri a member of
['Q1067', 'P463', {'concept': 'Q968159'}]
SELECT DISTINCT ?p WHERE { resource:Q1067 property:P463 ?p . ?p rdf:type ontology:Q968159 }
Dolce Stil Novo
Dolce Stil Novo was Dante Alighieri a member of
Dolce Stil Novo
action filter_type
action find
entity Dante Alighieri
relation member of
type art movement
['Dante Alighieri', 'member of', {'concept': 'art movement'}]
SELECT DISTINCT ?p WHERE { resource:Dante_Alighieri property:member_of ?p . ?p rdf:type ontology:art_movement }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q2959166
Q968159
USER
And what about Charles Galtier?
(Q2959166,P463,c(Q968159))
action filter_type
action find
entity Q2959166
relation P463
type Q968159
['Q2959166', 'P463', {'concept': 'Q968159'}]
SELECT DISTINCT ?g WHERE { resource:Q2959166 property:P463 ?g . ?g rdf:type ontology:Q968159 }
Charles Galtier
action filter_type
action find
entity Charles Galtier
relation member of
type art movement
['Charles Galtier', 'member of', {'concept': 'art movement'}]
SELECT DISTINCT ?g WHERE { resource:Charles_Galtier property:member_of ?g . ?g rdf:type ontology:art_movement }
[]
art movement
Q1165363
SYSTEM
Félibrige
Q1165363
(Q2959166,P463,c(Q968159))
action filter_type
action find
entity Q2959166
relation P463
type Q968159
[ANSWER]
['Q2959166', 'P463', {'concept': 'Q968159'}]
SELECT DISTINCT ?g WHERE { resource:Q2959166 property:P463 ?g . ?g rdf:type ontology:Q968159 }
Félibrige
Félibrige
action filter_type
action find
entity Charles Galtier
relation member of
type art movement
['Charles Galtier', 'member of', {'concept': 'art movement'}]
SELECT DISTINCT ?g WHERE { resource:Charles_Galtier property:member_of ?g . ?g rdf:type ontology:art_movement }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Indirect
P135
Q968159 Q838948 Q502895
USER
How many art movements were around the same number of works of art and people associated with as that art movement ?
(c(Q838948)|c(Q502895),P135,c(Q968159))
action count
action approx
action union
action find_reverse_tuple_counts
relation P135
type Q968159
type Q838948
action find_reverse_tuple_counts
relation P135
type Q968159
type Q502895
action count
action filter_multi_types
action find_reverse
entity Q1165363
relation P135
type Q838948
type Q502895
[[{'concept': 'Q838948'}, {'concept': 'Q502895'}], 'P135', {'concept': 'Q968159'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?t ) WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?w ) WHERE { { { ?n rdf:type ontology:Q502895 } UNION { ?n rdf:type ontology:Q838948 } } . ?n property:P135 resource:Q1165363 } } . FILTER ( ?l = ?w ) . { SELECT DISTINCT ?h ( COUNT ( ?y ) AS ?l ) WHERE { { ?y rdf:type ontology:Q838948 . ?h rdf:type ontology:Q968159 . ?y property:P135 ?h } UNION { ?h rdf:type ontology:Q968159 . ?y rdf:type ontology:Q502895 . ?y property:P135 ?h } } GROUP BY ?h } }
action count
action approx
action union
action find_reverse_tuple_counts
relation movement
type art movement
type work of art
action find_reverse_tuple_counts
relation movement
type art movement
type common name
action count
action filter_multi_types
action find_reverse
entity Félibrige
relation movement
type work of art
type common name
[[{'concept': 'work of art'}, {'concept': 'common name'}], 'movement', {'concept': 'art movement'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?t ) WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?w ) WHERE { { { ?n rdf:type ontology:common_name } UNION { ?n rdf:type ontology:work_of_art } } . ?n property:movement resource:Félibrige } } . FILTER ( ?l = ?w ) . { SELECT DISTINCT ?h ( COUNT ( ?y ) AS ?l ) WHERE { { ?y rdf:type ontology:work_of_art . ?h rdf:type ontology:art_movement . ?y property:movement ?h } UNION { ?h rdf:type ontology:art_movement . ?y rdf:type ontology:common_name . ?y property:movement ?h } } GROUP BY ?h } }
[]
art movement work of art common name
SYSTEM
48
Q5159353 Q113013 Q21015774 Q745673 Q570341 Q82386 Q62506 Q5600643 Q6034 Q2368408 Q16329873 Q1382662 Q530936 Q3909469 Q1126248 Q19953535 Q627187 Q610877 Q1935489 Q1580145 Q21177100 Q397469 Q2349325 Q256922 Q2578278 Q1578378 Q38066 Q2477112 Q650175 Q131221 Q3441124 Q3441125 Q1431376 Q335652 Q10354795 Q1165363 Q971480 Q808561 Q1414953 Q55996 Q215198 Q617166 Q4745501 Q2914470 Q207591 Q207741 Q57722 Q528648
(c(Q838948)|c(Q502895),P135,c(Q968159))
action count
action approx
action union
action find_reverse_tuple_counts
relation P135
type Q968159
type Q838948
action find_reverse_tuple_counts
relation P135
type Q968159
type Q502895
action count
action filter_multi_types
action find_reverse
entity Q1165363
relation P135
type Q838948
type Q502895
[ANSWER]
[[{'concept': 'Q838948'}, {'concept': 'Q502895'}], 'P135', {'concept': 'Q968159'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?t ) WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?w ) WHERE { { { ?n rdf:type ontology:Q502895 } UNION { ?n rdf:type ontology:Q838948 } } . ?n property:P135 resource:Q1165363 } } . FILTER ( ?l = ?w ) . { SELECT DISTINCT ?h ( COUNT ( ?y ) AS ?l ) WHERE { { ?y rdf:type ontology:Q838948 . ?h rdf:type ontology:Q968159 . ?y property:P135 ?h } UNION { ?h rdf:type ontology:Q968159 . ?y rdf:type ontology:Q502895 . ?y property:P135 ?h } } GROUP BY ?h } }
Condorism postmodern literature Laboratoire Agit'Art Ultra-Romanticism Nouveau Roman ukiyozōshi Caravaggisti Modernismo dadaism indianism New Athenian School Poetism Spanish Golden Age Postism Generation of '98 Victorian painting proletarian literature Northern Renaissance scapigliatura Hellenistic sculpture Club des longues moustaches neo-romanticism Unanimism aestheticism visual poetry Precisionism existentialism German Romanticism New Comedy futurism British Romanticism Italian romanticism Baroque literature parnassianism Pre-modernism Félibrige modernist literature Baroque painting Trümmerliteratur naturalism verismo Russian Futurism American modernism Renaissance art romantic music Sturm und Drang Hussards La Pléiade
48
action count
action approx
action union
action find_reverse_tuple_counts
relation movement
type art movement
type work of art
action find_reverse_tuple_counts
relation movement
type art movement
type common name
action count
action filter_multi_types
action find_reverse
entity Félibrige
relation movement
type work of art
type common name
[[{'concept': 'work of art'}, {'concept': 'common name'}], 'movement', {'concept': 'art movement'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?t ) WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?w ) WHERE { { { ?n rdf:type ontology:common_name } UNION { ?n rdf:type ontology:work_of_art } } . ?n property:movement resource:Félibrige } } . FILTER ( ?l = ?w ) . { SELECT DISTINCT ?h ( COUNT ( ?y ) AS ?l ) WHERE { { ?y rdf:type ontology:work_of_art . ?h rdf:type ontology:art_movement . ?y property:movement ?h } UNION { ?h rdf:type ontology:art_movement . ?y rdf:type ontology:common_name . ?y property:movement ?h } } GROUP BY ?h } }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q6581097 Q5575626
P21 P22
Q502895
USER
Which people have Peder Turesson as father and have male as the sex ?
AND((c(Q502895),P22,Q5575626), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q5575626
relation P22
action find_reverse
entity Q6581097
relation P21
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P22', 'Q5575626'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?a WHERE { ?a property:P22 resource:Q5575626 . ?a property:P21 resource:Q6581097 . ?a rdf:type ontology:Q502895 }
male Peder Turesson
action filter_type
action intersection
action find_reverse
entity Peder Turesson
relation father
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'father', 'Peder Turesson'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?a WHERE { ?a property:father resource:Peder_Turesson . ?a property:gender resource:male . ?a rdf:type ontology:common_name }
[]
common name
Q5575615 Q5575648
SYSTEM
Nils Pedersson Bielke, Ture Bielke
Q5575615 Q5575648
AND((c(Q502895),P22,Q5575626), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q5575626
relation P22
action find_reverse
entity Q6581097
relation P21
type Q502895
[ANSWERS] have Peder Turesson as father and have male as the sex
{'AND': [[{'concept': 'Q502895'}, 'P22', 'Q5575626'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?a WHERE { ?a property:P22 resource:Q5575626 . ?a property:P21 resource:Q6581097 . ?a rdf:type ontology:Q502895 }
Nils Pedersson Bielke Ture Bielke
Nils Pedersson Bielke and Ture Bielke have Peder Turesson as father and have male as the sex
Nils Pedersson Bielke Ture Bielke
action filter_type
action intersection
action find_reverse
entity Peder Turesson
relation father
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'father', 'Peder Turesson'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?a WHERE { ?a property:father resource:Peder_Turesson . ?a property:gender resource:male . ?a rdf:type ontology:common_name }
[]