Simple Question (Direct)
Simple Question
Q512807
P50
Q502895
USER
Who wrote Andromaque ?
(Q512807,P50,c(Q502895))
action filter_type
action find
entity Q512807
relation P50
type Q502895
['Q512807', 'P50', {'concept': 'Q502895'}]
SELECT DISTINCT ?a WHERE { resource:Q512807 property:P50 ?a . ?a rdf:type ontology:Q502895 }
Andromaque
action filter_type
action find
entity Andromaque
relation author
type common name
['Andromaque', 'author', {'concept': 'common name'}]
SELECT DISTINCT ?a WHERE { resource:Andromaque property:author ?a . ?a rdf:type ontology:common_name }
[]
common name
Q742
SYSTEM
Jean Racine
Q742
(Q512807,P50,c(Q502895))
action filter_type
action find
entity Q512807
relation P50
type Q502895
Of [ANSWER] wrote Andromaque
['Q512807', 'P50', {'concept': 'Q502895'}]
SELECT DISTINCT ?a WHERE { resource:Q512807 property:P50 ?a . ?a rdf:type ontology:Q502895 }
Jean Racine
Of Jean Racine wrote Andromaque
Jean Racine
action filter_type
action find
entity Andromaque
relation author
type common name
['Andromaque', 'author', {'concept': 'common name'}]
SELECT DISTINCT ?a WHERE { resource:Andromaque property:author ?a . ?a rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q512807
P674
Q22988604
USER
What are the name of the persons who plays a role in that work of art ?
(Q742,P674,c(Q22988604))
action filter_type
action find
entity Q512807
relation P674
type Q22988604
['Q742', 'P674', {'concept': 'Q22988604'}]
SELECT DISTINCT ?l WHERE { resource:Q512807 property:P674 ?l . ?l rdf:type ontology:Q22988604 }
Andromaque
action filter_type
action find
entity Andromaque
relation characters
type mythological Greek character
['Jean Racine', 'characters', {'concept': 'mythological Greek character'}]
SELECT DISTINCT ?l WHERE { resource:Andromaque property:characters ?l . ?l rdf:type ontology:mythological_Greek_character }
[]
mythological Greek character
Q658523 Q192407
SYSTEM
Hermione, Orestes
Q658523 Q192407
(Q742,P674,c(Q22988604))
action filter_type
action find
entity Q512807
relation P674
type Q22988604
The name of the persons plays a role in that work of art are [ANSWERS]
['Q742', 'P674', {'concept': 'Q22988604'}]
SELECT DISTINCT ?l WHERE { resource:Q512807 property:P674 ?l . ?l rdf:type ontology:Q22988604 }
Hermione Orestes
The name of the persons plays a role in that work of art are Hermione and Orestes
Hermione Orestes
action filter_type
action find
entity Andromaque
relation characters
type mythological Greek character
['Jean Racine', 'characters', {'concept': 'mythological Greek character'}]
SELECT DISTINCT ?l WHERE { resource:Andromaque property:characters ?l . ?l rdf:type ontology:mythological_Greek_character }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q658523 Q192407
P21
Q290
USER
What are the sex of Hermione and Orestes ?
(Q658523,P21,c(Q290)) (Q192407,P21,c(Q290))
action union
action filter_type
action find
entity Q658523
relation P21
type Q290
action filter_type
action find
entity Q192407
relation P21
type Q290
['Q658523', 'P21', {'concept': 'Q290'}] ['Q192407', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?h WHERE { { resource:Q658523 property:P21 ?h . ?h rdf:type ontology:Q290 } UNION { resource:Q192407 property:P21 ?h . ?h rdf:type ontology:Q290 } }
Hermione Orestes
action union
action filter_type
action find
entity Hermione
relation gender
type sex
action filter_type
action find
entity Orestes
relation gender
type sex
['Hermione', 'gender', {'concept': 'sex'}] ['Orestes', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?h WHERE { { resource:Hermione property:gender ?h . ?h rdf:type ontology:sex } UNION { resource:Orestes property:gender ?h . ?h rdf:type ontology:sex } }
[]
sex
Q6581072 Q6581097
SYSTEM
female, male
Q6581072 Q6581097
(Q658523,P21,c(Q290)) (Q192407,P21,c(Q290))
action union
action filter_type
action find
entity Q658523
relation P21
type Q290
action filter_type
action find
entity Q192407
relation P21
type Q290
The sex of Hermione and Orestes are both [ANSWERS]
['Q658523', 'P21', {'concept': 'Q290'}] ['Q192407', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?h WHERE { { resource:Q658523 property:P21 ?h . ?h rdf:type ontology:Q290 } UNION { resource:Q192407 property:P21 ?h . ?h rdf:type ontology:Q290 } }
female male
The sex of Hermione and Orestes are both female and male
female male
action union
action filter_type
action find
entity Hermione
relation gender
type sex
action filter_type
action find
entity Orestes
relation gender
type sex
['Hermione', 'gender', {'concept': 'sex'}] ['Orestes', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?h WHERE { { resource:Hermione property:gender ?h . ?h rdf:type ontology:sex } UNION { resource:Orestes property:gender ?h . ?h rdf:type ontology:sex } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q512807
P135
Q2198855
USER
Which cultural movement was Andromaque associated with ?
(Q512807,P135,c(Q2198855))
action filter_type
action find
entity Q512807
relation P135
type Q2198855
['Q512807', 'P135', {'concept': 'Q2198855'}]
SELECT DISTINCT ?d WHERE { resource:Q512807 property:P135 ?d . ?d rdf:type ontology:Q2198855 }
Andromaque
action filter_type
action find
entity Andromaque
relation movement
type cultural movement
['Andromaque', 'movement', {'concept': 'cultural movement'}]
SELECT DISTINCT ?d WHERE { resource:Andromaque property:movement ?d . ?d rdf:type ontology:cultural_movement }
[]
cultural movement
Q170292
SYSTEM
classicism
Q170292
(Q512807,P135,c(Q2198855))
action filter_type
action find
entity Q512807
relation P135
type Q2198855
Andromaque was associated with [ANSWER]
['Q512807', 'P135', {'concept': 'Q2198855'}]
SELECT DISTINCT ?d WHERE { resource:Q512807 property:P135 ?d . ?d rdf:type ontology:Q2198855 }
classicism
Andromaque was associated with classicism
classicism
action filter_type
action find
entity Andromaque
relation movement
type cultural movement
['Andromaque', 'movement', {'concept': 'cultural movement'}]
SELECT DISTINCT ?d WHERE { resource:Andromaque property:movement ?d . ?d rdf:type ontology:cultural_movement }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Indirect
P149
Q2198855 Q2668072
USER
How many cultural movements are the architectural styles of greater number of collections than that cultural movement ?
(c(Q2668072),P149,c(Q2198855))
action count
action greater
action find_reverse_tuple_counts
relation P149
type Q2198855
type Q2668072
action count
action filter_type
action find
entity Q170292
relation P149
type Q2198855
[{'concept': 'Q2668072'}, 'P149', {'concept': 'Q2198855'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?b ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?g ) AS ?u ) WHERE { ?g property:P149 ?y . ?y rdf:type ontology:Q2198855 . ?g rdf:type ontology:Q2668072 } GROUP BY ?y } . FILTER ( ?u > ?o ) . { SELECT DISTINCT ( COUNT ( ?s ) AS ?o ) WHERE { resource:Q170292 property:P149 ?s . ?s rdf:type ontology:Q2198855 } } }
action count
action greater
action find_reverse_tuple_counts
relation architectural style
type cultural movement
type collection
action count
action filter_type
action find
entity classicism
relation architectural style
type cultural movement
[{'concept': 'collection'}, 'architectural style', {'concept': 'cultural movement'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?b ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?g ) AS ?u ) WHERE { ?g property:architectural_style ?y . ?y rdf:type ontology:cultural_movement . ?g rdf:type ontology:collection } GROUP BY ?y } . FILTER ( ?u > ?o ) . { SELECT DISTINCT ( COUNT ( ?s ) AS ?o ) WHERE { resource:classicism property:architectural_style ?s . ?s rdf:type ontology:cultural_movement } } }
[]
cultural movement collection
SYSTEM
5
Q46825 Q173782 Q330369 Q207445 Q994776
(c(Q2668072),P149,c(Q2198855))
action count
action greater
action find_reverse_tuple_counts
relation P149
type Q2198855
type Q2668072
action count
action filter_type
action find
entity Q170292
relation P149
type Q2198855
[ANSWER]
[{'concept': 'Q2668072'}, 'P149', {'concept': 'Q2198855'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?b ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?g ) AS ?u ) WHERE { ?g property:P149 ?y . ?y rdf:type ontology:Q2198855 . ?g rdf:type ontology:Q2668072 } GROUP BY ?y } . FILTER ( ?u > ?o ) . { SELECT DISTINCT ( COUNT ( ?s ) AS ?o ) WHERE { resource:Q170292 property:P149 ?s . ?s rdf:type ontology:Q2198855 } } }
Gothic art Art Deco Arts and Crafts movement De Stijl brutalism
5
action count
action greater
action find_reverse_tuple_counts
relation architectural style
type cultural movement
type collection
action count
action filter_type
action find
entity classicism
relation architectural style
type cultural movement
[{'concept': 'collection'}, 'architectural style', {'concept': 'cultural movement'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?b ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?g ) AS ?u ) WHERE { ?g property:architectural_style ?y . ?y rdf:type ontology:cultural_movement . ?g rdf:type ontology:collection } GROUP BY ?y } . FILTER ( ?u > ?o ) . { SELECT DISTINCT ( COUNT ( ?s ) AS ?o ) WHERE { resource:classicism property:architectural_style ?s . ?s rdf:type ontology:cultural_movement } } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q742
P737
Q502895
USER
Who did Jean Racine have an influence on ?
(c(Q502895),P737,Q742)
action filter_type
action find_reverse
entity Q742
relation P737
type Q502895
[{'concept': 'Q502895'}, 'P737', 'Q742']
SELECT DISTINCT ?g WHERE { ?g property:P737 resource:Q742 . ?g rdf:type ontology:Q502895 }
Jean Racine
action filter_type
action find_reverse
entity Jean Racine
relation influenced by
type common name
[{'concept': 'common name'}, 'influenced by', 'Jean Racine']
SELECT DISTINCT ?g WHERE { ?g property:influenced_by resource:Jean_Racine . ?g rdf:type ontology:common_name }
[]
common name
Q9068
SYSTEM
Voltaire
Q9068
(c(Q502895),P737,Q742)
action filter_type
action find_reverse
entity Q742
relation P737
type Q502895
Jean Racine had an influence on [ANSWER]
[{'concept': 'Q502895'}, 'P737', 'Q742']
SELECT DISTINCT ?g WHERE { ?g property:P737 resource:Q742 . ?g rdf:type ontology:Q502895 }
Voltaire
Jean Racine had an influence on Voltaire
Voltaire
action filter_type
action find_reverse
entity Jean Racine
relation influenced by
type common name
[{'concept': 'common name'}, 'influenced by', 'Jean Racine']
SELECT DISTINCT ?g WHERE { ?g property:influenced_by resource:Jean_Racine . ?g rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q742
P463
Q48204
USER
Which organization was Jean Racine a member of ?
(Q742,P463,c(Q48204))
action filter_type
action find
entity Q742
relation P463
type Q48204
['Q742', 'P463', {'concept': 'Q48204'}]
SELECT DISTINCT ?a WHERE { resource:Q742 property:P463 ?a . ?a rdf:type ontology:Q48204 }
Jean Racine
action filter_type
action find
entity Jean Racine
relation member of
type voluntary association
['Jean Racine', 'member of', {'concept': 'voluntary association'}]
SELECT DISTINCT ?a WHERE { resource:Jean_Racine property:member_of ?a . ?a rdf:type ontology:voluntary_association }
[]
voluntary association
Q161806
SYSTEM
Académie française
Q161806
(Q742,P463,c(Q48204))
action filter_type
action find
entity Q742
relation P463
type Q48204
De [ANSWER] was Jean Racine a member of
['Q742', 'P463', {'concept': 'Q48204'}]
SELECT DISTINCT ?a WHERE { resource:Q742 property:P463 ?a . ?a rdf:type ontology:Q48204 }
Académie française
De Académie française was Jean Racine a member of
Académie française
action filter_type
action find
entity Jean Racine
relation member of
type voluntary association
['Jean Racine', 'member of', {'concept': 'voluntary association'}]
SELECT DISTINCT ?a WHERE { resource:Jean_Racine property:member_of ?a . ?a rdf:type ontology:voluntary_association }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q531234
Q48204
USER
And what about Jim Dine?
(Q531234,P463,c(Q48204))
action filter_type
action find
entity Q531234
relation P463
type Q48204
['Q531234', 'P463', {'concept': 'Q48204'}]
SELECT DISTINCT ?a WHERE { resource:Q531234 property:P463 ?a . ?a rdf:type ontology:Q48204 }
Jim Dine
action filter_type
action find
entity Jim Dine
relation member of
type voluntary association
['Jim Dine', 'member of', {'concept': 'voluntary association'}]
SELECT DISTINCT ?a WHERE { resource:Jim_Dine property:member_of ?a . ?a rdf:type ontology:voluntary_association }
[]
voluntary association
Q4801318
SYSTEM
Artists Rights Society
Q4801318
(Q531234,P463,c(Q48204))
action filter_type
action find
entity Q531234
relation P463
type Q48204
[ANSWER]
['Q531234', 'P463', {'concept': 'Q48204'}]
SELECT DISTINCT ?a WHERE { resource:Q531234 property:P463 ?a . ?a rdf:type ontology:Q48204 }
Artists Rights Society
Artists Rights Society
action filter_type
action find
entity Jim Dine
relation member of
type voluntary association
['Jim Dine', 'member of', {'concept': 'voluntary association'}]
SELECT DISTINCT ?a WHERE { resource:Jim_Dine property:member_of ?a . ?a rdf:type ontology:voluntary_association }
[]