Simple Question (Direct)
Simple Question
Q16802000
P20
Q20667921
USER
Where did Joseph-Édouard Barès die ?
(Q16802000,P20,c(Q20667921))
action filter_type
action find
entity Q16802000
relation P20
type Q20667921
['Q16802000', 'P20', {'concept': 'Q20667921'}]
SELECT DISTINCT ?v WHERE { resource:Q16802000 property:P20 ?v . ?v rdf:type ontology:Q20667921 }
Joseph-Édouard Barès
action filter_type
action find
entity Joseph-Édouard Barès
relation place of death
type type of french administrative division
['Joseph-Édouard Barès', 'place of death', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?v WHERE { resource:Joseph-Édouard_Barès property:place_of_death ?v . ?v rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q642808
SYSTEM
Aspet
Q642808
(Q16802000,P20,c(Q20667921))
action filter_type
action find
entity Q16802000
relation P20
type Q20667921
Joseph-Édouard Barès died in [ANSWER]
['Q16802000', 'P20', {'concept': 'Q20667921'}]
SELECT DISTINCT ?v WHERE { resource:Q16802000 property:P20 ?v . ?v rdf:type ontology:Q20667921 }
Aspet
Joseph-Édouard Barès died in Aspet
Aspet
action filter_type
action find
entity Joseph-Édouard Barès
relation place of death
type type of french administrative division
['Joseph-Édouard Barès', 'place of death', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?v WHERE { resource:Joseph-Édouard_Barès property:place_of_death ?v . ?v rdf:type ontology:type_of_french_administrative_division }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q16802000
P27
Q15617994
USER
Which administrative territory is the country of citizenship of Joseph-Édouard Barès ?
(Q16802000,P27,c(Q15617994))
action filter_type
action find
entity Q16802000
relation P27
type Q15617994
['Q16802000', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { resource:Q16802000 property:P27 ?y . ?y rdf:type ontology:Q15617994 }
Joseph-Édouard Barès
action filter_type
action find
entity Joseph-Édouard Barès
relation country of citizenship
type designation for an administrative territorial entity
['Joseph-Édouard Barès', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { resource:Joseph-Édouard_Barès property:country_of_citizenship ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142
SYSTEM
France
Q142
(Q16802000,P27,c(Q15617994))
action filter_type
action find
entity Q16802000
relation P27
type Q15617994
[ANSWER] is the country of citizenship of Joseph-Édouard Barès
['Q16802000', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { resource:Q16802000 property:P27 ?y . ?y rdf:type ontology:Q15617994 }
France
France is the country of citizenship of Joseph-Édouard Barès
France
action filter_type
action find
entity Joseph-Édouard Barès
relation country of citizenship
type designation for an administrative territorial entity
['Joseph-Édouard Barès', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { resource:Joseph-Édouard_Barès property:country_of_citizenship ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q16802000
P607
Q198
USER
Which battle did that person take part in ?
(Q142,P607,c(Q198))
action filter_type
action find
entity Q16802000
relation P607
type Q198
['Q142', 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ?r WHERE { resource:Q16802000 property:P607 ?r . ?r rdf:type ontology:Q198 }
Joseph-Édouard Barès
action filter_type
action find
entity Joseph-Édouard Barès
relation conflict
type war
['France', 'conflict', {'concept': 'war'}]
SELECT DISTINCT ?r WHERE { resource:Joseph-Édouard_Barès property:conflict ?r . ?r rdf:type ontology:war }
[]
war
Q361
SYSTEM
World War I
Q361
(Q142,P607,c(Q198))
action filter_type
action find
entity Q16802000
relation P607
type Q198
That person took in part in [ANSWER]
['Q142', 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ?r WHERE { resource:Q16802000 property:P607 ?r . ?r rdf:type ontology:Q198 }
World War I
That person took in part in World War I
World War I
action filter_type
action find
entity Joseph-Édouard Barès
relation conflict
type war
['France', 'conflict', {'concept': 'war'}]
SELECT DISTINCT ?r WHERE { resource:Joseph-Édouard_Barès property:conflict ?r . ?r rdf:type ontology:war }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q7620742
P25
Q502895
USER
Who has Stoyanka Mutafova as a mother ?
(c(Q502895),P25,Q7620742)
action filter_type
action find_reverse
entity Q7620742
relation P25
type Q502895
[{'concept': 'Q502895'}, 'P25', 'Q7620742']
SELECT DISTINCT ?e WHERE { ?e property:P25 resource:Q7620742 . ?e rdf:type ontology:Q502895 }
Stoyanka Mutafova
action filter_type
action find_reverse
entity Stoyanka Mutafova
relation mother
type common name
[{'concept': 'common name'}, 'mother', 'Stoyanka Mutafova']
SELECT DISTINCT ?e WHERE { ?e property:mother resource:Stoyanka_Mutafova . ?e rdf:type ontology:common_name }
[]
common name
Q24576693
SYSTEM
Maria Grubeshlieva
Q24576693
(c(Q502895),P25,Q7620742)
action filter_type
action find_reverse
entity Q7620742
relation P25
type Q502895
[ANSWER] has Stoyanka Mutafova as a mother
[{'concept': 'Q502895'}, 'P25', 'Q7620742']
SELECT DISTINCT ?e WHERE { ?e property:P25 resource:Q7620742 . ?e rdf:type ontology:Q502895 }
Maria Grubeshlieva
Maria Grubeshlieva has Stoyanka Mutafova as a mother
Maria Grubeshlieva
action filter_type
action find_reverse
entity Stoyanka Mutafova
relation mother
type common name
[{'concept': 'common name'}, 'mother', 'Stoyanka Mutafova']
SELECT DISTINCT ?e WHERE { ?e property:mother resource:Stoyanka_Mutafova . ?e rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q7620742
P19
Q56061
USER
Which administrative territory is the birthplace of Stoyanka Mutafova ?
(Q7620742,P19,c(Q56061))
action filter_type
action find
entity Q7620742
relation P19
type Q56061
['Q7620742', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?e WHERE { resource:Q7620742 property:P19 ?e . ?e rdf:type ontology:Q56061 }
Stoyanka Mutafova
action filter_type
action find
entity Stoyanka Mutafova
relation place of birth
type administrative territorial entity
['Stoyanka Mutafova', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { resource:Stoyanka_Mutafova property:place_of_birth ?e . ?e rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q472
SYSTEM
Sofia
Q472
(Q7620742,P19,c(Q56061))
action filter_type
action find
entity Q7620742
relation P19
type Q56061
[ANSWER] is the birthplace of Stoyanka Mutafova
['Q7620742', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?e WHERE { resource:Q7620742 property:P19 ?e . ?e rdf:type ontology:Q56061 }
Sofia
Sofia is the birthplace of Stoyanka Mutafova
Sofia
action filter_type
action find
entity Stoyanka Mutafova
relation place of birth
type administrative territorial entity
['Stoyanka Mutafova', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { resource:Stoyanka_Mutafova property:place_of_birth ?e . ?e rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q7620742
P161
Q838948
USER
What are the name of works of art staring that person ?
(c(Q838948),P161,Q472)
action filter_type
action find_reverse
entity Q7620742
relation P161
type Q838948
[{'concept': 'Q838948'}, 'P161', 'Q472']
SELECT DISTINCT ?p WHERE { ?p property:P161 resource:Q7620742 . ?p rdf:type ontology:Q838948 }
Stoyanka Mutafova
action filter_type
action find_reverse
entity Stoyanka Mutafova
relation cast member
type work of art
[{'concept': 'work of art'}, 'cast member', 'Sofia']
SELECT DISTINCT ?p WHERE { ?p property:cast_member resource:Stoyanka_Mutafova . ?p rdf:type ontology:work_of_art }
[]
work of art
Q12277997 Q6094356 Q3422402
SYSTEM
Jesse James Shekerov against Turkish Delight, Item One, L'amante di Gramigna
Q12277997 Q6094356 Q3422402
(c(Q838948),P161,Q472)
action filter_type
action find_reverse
entity Q7620742
relation P161
type Q838948
The name of works of art staring that person are also [ANSWERS]
[{'concept': 'Q838948'}, 'P161', 'Q472']
SELECT DISTINCT ?p WHERE { ?p property:P161 resource:Q7620742 . ?p rdf:type ontology:Q838948 }
Jesse James Shekerov against Turkish Delight Item One L'amante di Gramigna
The name of works of art staring that person are also Jesse James Shekerov against Turkish Delight, Item One and L'amante di Gramigna
Jesse James Shekerov against Turkish Delight Item One L'amante di Gramigna
action filter_type
action find_reverse
entity Stoyanka Mutafova
relation cast member
type work of art
[{'concept': 'work of art'}, 'cast member', 'Sofia']
SELECT DISTINCT ?p WHERE { ?p property:cast_member resource:Stoyanka_Mutafova . ?p rdf:type ontology:work_of_art }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P36
Q486972 Q515 Q15617994
USER
Which administrative territories have max number of human settlements or cities as their capital ?
(c(Q15617994),P36,c(Q486972)|c(Q515))
action argmax
action union
action find_tuple_counts
relation P36
type Q15617994
type Q486972
action find_tuple_counts
relation P36
type Q15617994
type Q515
[{'concept': 'Q15617994'}, 'P36', [{'concept': 'Q486972'}, {'concept': 'Q515'}]]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( MAX ( ?r ) AS ?w ) { SELECT DISTINCT ?c ( COUNT ( ?e ) AS ?r ) WHERE { { ?c property:P36 ?e . ?c rdf:type ontology:Q15617994 . ?e rdf:type ontology:Q486972 } UNION { ?c property:P36 ?e . ?e rdf:type ontology:Q515 . ?c rdf:type ontology:Q15617994 } } GROUP BY ?c } } . { SELECT DISTINCT ?t ( COUNT ( ?p ) AS ?m ) WHERE { ?p rdf:type ?h . VALUES ( ?h ) { ( ontology:Q486972 ) ( ontology:Q515 ) } } GROUP BY ?t } . FILTER ( ?m = ?w ) }
action argmax
action union
action find_tuple_counts
relation capital
type designation for an administrative territorial entity
type human settlement
action find_tuple_counts
relation capital
type designation for an administrative territorial entity
type city
[{'concept': 'designation for an administrative territorial entity'}, 'capital', [{'concept': 'human settlement'}, {'concept': 'city'}]]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( MAX ( ?r ) AS ?w ) { SELECT DISTINCT ?c ( COUNT ( ?e ) AS ?r ) WHERE { { ?c property:capital ?e . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . ?e rdf:type ontology:human_settlement } UNION { ?c property:capital ?e . ?e rdf:type ontology:city . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?c } } . { SELECT DISTINCT ?t ( COUNT ( ?p ) AS ?m ) WHERE { ?p rdf:type ?h . VALUES ( ?h ) { ( ontology:human_settlement ) ( ontology:city ) } } GROUP BY ?t } . FILTER ( ?m = ?w ) }
[]
human settlement city designation for an administrative territorial entity
Q252
SYSTEM
Indonesia
Q252
(c(Q15617994),P36,c(Q486972)|c(Q515))
action argmax
action union
action find_tuple_counts
relation P36
type Q15617994
type Q486972
action find_tuple_counts
relation P36
type Q15617994
type Q515
[ANSWER] have max number of human settlements or cities as their capital
[{'concept': 'Q15617994'}, 'P36', [{'concept': 'Q486972'}, {'concept': 'Q515'}]]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( MAX ( ?r ) AS ?w ) { SELECT DISTINCT ?c ( COUNT ( ?e ) AS ?r ) WHERE { { ?c property:P36 ?e . ?c rdf:type ontology:Q15617994 . ?e rdf:type ontology:Q486972 } UNION { ?c property:P36 ?e . ?e rdf:type ontology:Q515 . ?c rdf:type ontology:Q15617994 } } GROUP BY ?c } } . { SELECT DISTINCT ?t ( COUNT ( ?p ) AS ?m ) WHERE { ?p rdf:type ?h . VALUES ( ?h ) { ( ontology:Q486972 ) ( ontology:Q515 ) } } GROUP BY ?t } . FILTER ( ?m = ?w ) }
Indonesia
Indonesia have max number of human settlements or cities as their capital
Indonesia
action argmax
action union
action find_tuple_counts
relation capital
type designation for an administrative territorial entity
type human settlement
action find_tuple_counts
relation capital
type designation for an administrative territorial entity
type city
[{'concept': 'designation for an administrative territorial entity'}, 'capital', [{'concept': 'human settlement'}, {'concept': 'city'}]]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( MAX ( ?r ) AS ?w ) { SELECT DISTINCT ?c ( COUNT ( ?e ) AS ?r ) WHERE { { ?c property:capital ?e . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . ?e rdf:type ontology:human_settlement } UNION { ?c property:capital ?e . ?e rdf:type ontology:city . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?c } } . { SELECT DISTINCT ?t ( COUNT ( ?p ) AS ?m ) WHERE { ?p rdf:type ?h . VALUES ( ?h ) { ( ontology:human_settlement ) ( ontology:city ) } } GROUP BY ?t } . FILTER ( ?m = ?w ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q16857406
P144
Q838948 Q7725634 Q2342494
USER
Which works of art are greater number of literary works and collectables adapted from than The Jungle Book ?
(c(Q7725634)|c(Q2342494),P144,c(Q838948))
action greater
action union
action find_reverse_tuple_counts
relation P144
type Q838948
type Q7725634
action find_reverse_tuple_counts
relation P144
type Q838948
type Q2342494
action count
action filter_multi_types
action find_reverse
entity Q16857406
relation P144
type Q7725634
type Q2342494
[[{'concept': 'Q7725634'}, {'concept': 'Q2342494'}], 'P144', {'concept': 'Q838948'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?t ) ?w WHERE { VALUES ( ?x ) { ( ontology:Q2342494 ) ( ontology:Q7725634 ) } . ?k rdf:type ?x } GROUP BY ?w } . FILTER ( ?t > ?m ) . { SELECT DISTINCT ( COUNT ( ?v ) AS ?m ) WHERE { ?v property:P144 resource:Q16857406 . { ?v rdf:type ?d . VALUES ( ?d ) { ( ontology:Q7725634 ) ( ontology:Q2342494 ) } } } } }
The Jungle Book
action greater
action union
action find_reverse_tuple_counts
relation based on
type work of art
type literary work
action find_reverse_tuple_counts
relation based on
type work of art
type collectable
action count
action filter_multi_types
action find_reverse
entity The Jungle Book
relation based on
type literary work
type collectable
[[{'concept': 'literary work'}, {'concept': 'collectable'}], 'based on', {'concept': 'work of art'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?t ) ?w WHERE { VALUES ( ?x ) { ( ontology:collectable ) ( ontology:literary_work ) } . ?k rdf:type ?x } GROUP BY ?w } . FILTER ( ?t > ?m ) . { SELECT DISTINCT ( COUNT ( ?v ) AS ?m ) WHERE { ?v property:based_on resource:The_Jungle_Book . { ?v rdf:type ?d . VALUES ( ?d ) { ( ontology:literary_work ) ( ontology:collectable ) } } } } }
[]
work of art literary work collectable
Q213081 Q334780 Q103569
SYSTEM
Star Trek, Moonraker, Alien
Q3136443 Q213081 Q635441 Q320594 Q42051 Q204670 Q165713 Q167726 Q3635914 Q138373 Q691611 Q221103 Q334780 Q103569 Q181069
(c(Q7725634)|c(Q2342494),P144,c(Q838948))
action greater
action union
action find_reverse_tuple_counts
relation P144
type Q838948
type Q7725634
action find_reverse_tuple_counts
relation P144
type Q838948
type Q2342494
action count
action filter_multi_types
action find_reverse
entity Q16857406
relation P144
type Q7725634
type Q2342494
[ANSWERS] are greater number of literary works and collectables adapted from than The Jungle Book
[[{'concept': 'Q7725634'}, {'concept': 'Q2342494'}], 'P144', {'concept': 'Q838948'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?t ) ?w WHERE { VALUES ( ?x ) { ( ontology:Q2342494 ) ( ontology:Q7725634 ) } . ?k rdf:type ?x } GROUP BY ?w } . FILTER ( ?t > ?m ) . { SELECT DISTINCT ( COUNT ( ?v ) AS ?m ) WHERE { ?v property:P144 resource:Q16857406 . { ?v rdf:type ?d . VALUES ( ?d ) { ( ontology:Q7725634 ) ( ontology:Q2342494 ) } } } } }
His Dark Materials Star Trek Black Coffee Abhijñānaśākuntalam Star Wars: Episode III – Revenge of the Sith An Inconvenient Truth Star Wars: Episode I – The Phantom Menace Jurassic Park The Fish That Saved Pittsburgh The Millionairess Serenity Halloween Moonraker Alien Star Wars Episode II: Attack of the Clones
Star Trek, Moonraker and Alien are greater number of literary works and collectables adapted from than The Jungle Book
Star Trek Moonraker Alien
action greater
action union
action find_reverse_tuple_counts
relation based on
type work of art
type literary work
action find_reverse_tuple_counts
relation based on
type work of art
type collectable
action count
action filter_multi_types
action find_reverse
entity The Jungle Book
relation based on
type literary work
type collectable
[[{'concept': 'literary work'}, {'concept': 'collectable'}], 'based on', {'concept': 'work of art'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?t ) ?w WHERE { VALUES ( ?x ) { ( ontology:collectable ) ( ontology:literary_work ) } . ?k rdf:type ?x } GROUP BY ?w } . FILTER ( ?t > ?m ) . { SELECT DISTINCT ( COUNT ( ?v ) AS ?m ) WHERE { ?v property:based_on resource:The_Jungle_Book . { ?v rdf:type ?d . VALUES ( ?d ) { ( ontology:literary_work ) ( ontology:collectable ) } } } } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q7756900
P144
Q838948 Q7725634 Q2342494
USER
And how about The Philadelphia Story?
(c(Q7725634)|c(Q2342494),P144,c(Q838948))
action greater
action union
action find_reverse_tuple_counts
relation P144
type Q838948
type Q7725634
action find_reverse_tuple_counts
relation P144
type Q838948
type Q2342494
action count
action filter_multi_types
action find_reverse
entity Q7756900
relation P144
type Q7725634
type Q2342494
[[{'concept': 'Q7725634'}, {'concept': 'Q2342494'}], 'P144', {'concept': 'Q838948'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?v ) ?d WHERE { VALUES ( ?c ) { ( ontology:Q7725634 ) ( ontology:Q2342494 ) } . ?g rdf:type ?c } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?q ) WHERE { ?t property:P144 resource:Q7756900 . { { ?t rdf:type ontology:Q7725634 } UNION { ?t rdf:type ontology:Q2342494 } } } } . FILTER ( ?v > ?q ) }
The Philadelphia Story
action greater
action union
action find_reverse_tuple_counts
relation based on
type work of art
type literary work
action find_reverse_tuple_counts
relation based on
type work of art
type collectable
action count
action filter_multi_types
action find_reverse
entity The Philadelphia Story
relation based on
type literary work
type collectable
[[{'concept': 'literary work'}, {'concept': 'collectable'}], 'based on', {'concept': 'work of art'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?v ) ?d WHERE { VALUES ( ?c ) { ( ontology:literary_work ) ( ontology:collectable ) } . ?g rdf:type ?c } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?q ) WHERE { ?t property:based_on resource:The_Philadelphia_Story . { { ?t rdf:type ontology:literary_work } UNION { ?t rdf:type ontology:collectable } } } } . FILTER ( ?v > ?q ) }
[]
work of art literary work collectable
Q213081 Q334780 Q103569
SYSTEM
Star Trek, Moonraker, Alien
Q3136443 Q213081 Q635441 Q320594 Q42051 Q204670 Q165713 Q167726 Q3635914 Q138373 Q691611 Q221103 Q334780 Q103569 Q181069
(c(Q7725634)|c(Q2342494),P144,c(Q838948))
action greater
action union
action find_reverse_tuple_counts
relation P144
type Q838948
type Q7725634
action find_reverse_tuple_counts
relation P144
type Q838948
type Q2342494
action count
action filter_multi_types
action find_reverse
entity Q7756900
relation P144
type Q7725634
type Q2342494
[ANSWERS]
[[{'concept': 'Q7725634'}, {'concept': 'Q2342494'}], 'P144', {'concept': 'Q838948'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?v ) ?d WHERE { VALUES ( ?c ) { ( ontology:Q7725634 ) ( ontology:Q2342494 ) } . ?g rdf:type ?c } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?q ) WHERE { ?t property:P144 resource:Q7756900 . { { ?t rdf:type ontology:Q7725634 } UNION { ?t rdf:type ontology:Q2342494 } } } } . FILTER ( ?v > ?q ) }
His Dark Materials Star Trek Black Coffee Abhijñānaśākuntalam Star Wars: Episode III – Revenge of the Sith An Inconvenient Truth Star Wars: Episode I – The Phantom Menace Jurassic Park The Fish That Saved Pittsburgh The Millionairess Serenity Halloween Moonraker Alien Star Wars Episode II: Attack of the Clones
Star Trek Moonraker Alien
action greater
action union
action find_reverse_tuple_counts
relation based on
type work of art
type literary work
action find_reverse_tuple_counts
relation based on
type work of art
type collectable
action count
action filter_multi_types
action find_reverse
entity The Philadelphia Story
relation based on
type literary work
type collectable
[[{'concept': 'literary work'}, {'concept': 'collectable'}], 'based on', {'concept': 'work of art'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?v ) ?d WHERE { VALUES ( ?c ) { ( ontology:literary_work ) ( ontology:collectable ) } . ?g rdf:type ?c } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?q ) WHERE { ?t property:based_on resource:The_Philadelphia_Story . { { ?t rdf:type ontology:literary_work } UNION { ?t rdf:type ontology:collectable } } } } . FILTER ( ?v > ?q ) }
[]
Clarification
Simple Question|Single Entity|Indirect
Q213081
P1040
Q502895
USER
Which person edited that work of art ?
(Q213081,P1040,c(Q502895))
action filter_type
action find
entity Q213081
relation P1040
type Q502895
['Q213081', 'P1040', {'concept': 'Q502895'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q502895 . resource:Q213081 property:P1040 ?q }
Star Trek
action filter_type
action find
entity Star Trek
relation film editor
type common name
['Star Trek', 'film editor', {'concept': 'common name'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:common_name . resource:Star_Trek property:film_editor ?q }
[]
common name
Clarification for simple ques.
Q334780
SYSTEM
Did you mean Moonraker ?
Q213081 Q334780 Q103569
(Q213081,P1040,c(Q502895)) (Q334780,P1040,c(Q502895)) (Q103569,P1040,c(Q502895))
[ANSWER]
['Q213081', 'P1040', {'concept': 'Q502895'}] ['Q334780', 'P1040', {'concept': 'Q502895'}] ['Q103569', 'P1040', {'concept': 'Q502895'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q502895 . resource:Q213081 property:P1040 ?q }
Star Trek Moonraker Alien
Did you mean Moonraker ?
Moonraker
['Star Trek', 'film editor', {'concept': 'common name'}] ['Moonraker', 'film editor', {'concept': 'common name'}] ['Alien', 'film editor', {'concept': 'common name'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:common_name . resource:Star_Trek property:film_editor ?q }
[]
Simple Question (Coreferenced)
USER
No, I meant Star Trek. Could you tell me the answer for that?
(Q213081,P1040,c(Q502895))
Q213081
['Q213081', 'P1040', {'concept': 'Q502895'}]
['Star Trek', 'film editor', {'concept': 'common name'}]
[]
Q3850525
SYSTEM
Maryann Brandon
Q3850525
(Q213081,P1040,c(Q502895))
action filter_type
action find
entity Q213081
relation P1040
type Q502895
[ANSWER] edited that work of art
['Q213081', 'P1040', {'concept': 'Q502895'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q502895 . resource:Q213081 property:P1040 ?q }
Maryann Brandon
Maryann Brandon edited that work of art
Maryann Brandon
action filter_type
action find
entity Star Trek
relation film editor
type common name
['Star Trek', 'film editor', {'concept': 'common name'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:common_name . resource:Star_Trek property:film_editor ?q }
[]