Simple Question (Direct)
Simple Question
Q99028
P937
Q56061
USER
Where did Martina Krogmann work ?
(Q99028,P937,c(Q56061))
action filter_type
action find
entity Q99028
relation P937
type Q56061
['Q99028', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?h WHERE { resource:Q99028 property:P937 ?h . ?h rdf:type ontology:Q56061 }
Martina Krogmann
action filter_type
action find
entity Martina Krogmann
relation work location
type administrative territorial entity
['Martina Krogmann', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:Martina_Krogmann property:work_location ?h . ?h rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q586
SYSTEM
Bonn
Q586
(Q99028,P937,c(Q56061))
action filter_type
action find
entity Q99028
relation P937
type Q56061
Martina Krogmann worked in [ANSWER]
['Q99028', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?h WHERE { resource:Q99028 property:P937 ?h . ?h rdf:type ontology:Q56061 }
Bonn
Martina Krogmann worked in Bonn
Bonn
action filter_type
action find
entity Martina Krogmann
relation work location
type administrative territorial entity
['Martina Krogmann', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:Martina_Krogmann property:work_location ?h . ?h rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q586
P840
Q234460
USER
Which texts have a setting location of that administrative territory ?
(c(Q234460),P840,Q586)
action filter_type
action find_reverse
entity Q586
relation P840
type Q234460
[{'concept': 'Q234460'}, 'P840', 'Q586']
SELECT DISTINCT ?u WHERE { ?u property:P840 resource:Q586 . ?u rdf:type ontology:Q234460 }
Bonn
action filter_type
action find_reverse
entity Bonn
relation narrative location
type text
[{'concept': 'text'}, 'narrative location', 'Bonn']
SELECT DISTINCT ?u WHERE { ?u property:narrative_location resource:Bonn . ?u rdf:type ontology:text }
[]
text
Q514002 Q1451573
SYSTEM
The Clown, Women in a river landscape. A novel in dialogues and soliloquies
Q514002 Q1451573
(c(Q234460),P840,Q586)
action filter_type
action find_reverse
entity Q586
relation P840
type Q234460
[ANSWERS] have a setting location of that administrative territory
[{'concept': 'Q234460'}, 'P840', 'Q586']
SELECT DISTINCT ?u WHERE { ?u property:P840 resource:Q586 . ?u rdf:type ontology:Q234460 }
The Clown Women in a river landscape. A novel in dialogues and soliloquies
The Clown and Women in a river landscape. A novel in dialogues and soliloquies have a setting location of that administrative territory
The Clown Women in a river landscape. A novel in dialogues and soliloquies
action filter_type
action find_reverse
entity Bonn
relation narrative location
type text
[{'concept': 'text'}, 'narrative location', 'Bonn']
SELECT DISTINCT ?u WHERE { ?u property:narrative_location resource:Bonn . ?u rdf:type ontology:text }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q514002 Q1451573
P840
Q56061
USER
Which narrative locations are The Clown and Women in a river landscape. A novel in dialogues and soliloquies set in ?
(Q514002,P840,c(Q56061)) (Q1451573,P840,c(Q56061))
action union
action filter_type
action find
entity Q514002
relation P840
type Q56061
action filter_type
action find
entity Q1451573
relation P840
type Q56061
['Q514002', 'P840', {'concept': 'Q56061'}] ['Q1451573', 'P840', {'concept': 'Q56061'}]
SELECT DISTINCT ?c WHERE { VALUES ( ?k ) { ( resource:Q514002 ) ( resource:Q1451573 ) } . ?k property:P840 ?c }
The Clown Women in a river landscape. A novel in dialogues and soliloquies
action union
action filter_type
action find
entity The Clown
relation narrative location
type administrative territorial entity
action filter_type
action find
entity Women in a river landscape. A novel in dialogues and soliloquies
relation narrative location
type administrative territorial entity
['The Clown', 'narrative location', {'concept': 'administrative territorial entity'}] ['Women in a river landscape. A novel in dialogues and soliloquies', 'narrative location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { VALUES ( ?k ) { ( resource:The_Clown ) ( resource:Women_in_a_river_landscape._A_novel_in_dialogues_and_soliloquies ) } . ?k property:narrative_location ?c }
[]
administrative territorial entity
Q365 Q586 Q586
SYSTEM
Cologne for 1st, Bonn for 2nd, 3rd
Q365 Q586 Q586
(Q514002,P840,c(Q56061)) (Q1451573,P840,c(Q56061))
action union
action filter_type
action find
entity Q514002
relation P840
type Q56061
action filter_type
action find
entity Q1451573
relation P840
type Q56061
[ANSWERS]
['Q514002', 'P840', {'concept': 'Q56061'}] ['Q1451573', 'P840', {'concept': 'Q56061'}]
SELECT DISTINCT ?c WHERE { VALUES ( ?k ) { ( resource:Q514002 ) ( resource:Q1451573 ) } . ?k property:P840 ?c }
Cologne Bonn Bonn
Cologne, Bonn and Bonn are The Clown and Women in a river landscape. A novel in dialogues and soliloquies set in
Cologne Bonn Bonn
action union
action filter_type
action find
entity The Clown
relation narrative location
type administrative territorial entity
action filter_type
action find
entity Women in a river landscape. A novel in dialogues and soliloquies
relation narrative location
type administrative territorial entity
['The Clown', 'narrative location', {'concept': 'administrative territorial entity'}] ['Women in a river landscape. A novel in dialogues and soliloquies', 'narrative location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { VALUES ( ?k ) { ( resource:The_Clown ) ( resource:Women_in_a_river_landscape._A_novel_in_dialogues_and_soliloquies ) } . ?k property:narrative_location ?c }
[]
Clarification
Simple Question|Single Entity|Indirect
Q514002
P180
Q12136
USER
What is depcited in that text ?
(Q514002,P180,c(Q12136))
action filter_type
action find
entity Q514002
relation P180
type Q12136
['Q514002', 'P180', {'concept': 'Q12136'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q12136 . resource:Q514002 property:P180 ?p }
The Clown
action filter_type
action find
entity The Clown
relation depicts
type disease
['The Clown', 'depicts', {'concept': 'disease'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:disease . resource:The_Clown property:depicts ?p }
[]
disease
Clarification for simple ques.
Q514002
SYSTEM
Did you mean The Clown ?
Q365 Q586 Q586
(Q365,P180,c(Q12136)) (Q586,P180,c(Q12136)) (Q586,P180,c(Q12136))
[ANSWER]
['Q365', 'P180', {'concept': 'Q12136'}] ['Q586', 'P180', {'concept': 'Q12136'}] ['Q586', 'P180', {'concept': 'Q12136'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q12136 . resource:Q514002 property:P180 ?p }
Cologne Bonn Bonn
Did you mean The Clown ?
The Clown
['Cologne', 'depicts', {'concept': 'disease'}] ['Bonn', 'depicts', {'concept': 'disease'}] ['Bonn', 'depicts', {'concept': 'disease'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:disease . resource:The_Clown property:depicts ?p }
[]
Simple Question (Coreferenced)
USER
Yes
(Q514002,P180,c(Q12136))
['Q514002', 'P180', {'concept': 'Q12136'}]
['The Clown', 'depicts', {'concept': 'disease'}]
[]
Q13604751
SYSTEM
lovesickness
Q13604751
(Q514002,P180,c(Q12136))
action filter_type
action find
entity Q514002
relation P180
type Q12136
[ANSWER] is depcited in that text
['Q514002', 'P180', {'concept': 'Q12136'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q12136 . resource:Q514002 property:P180 ?p }
lovesickness
Lovesickness is depcited in that text
lovesickness
action filter_type
action find
entity The Clown
relation depicts
type disease
['The Clown', 'depicts', {'concept': 'disease'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:disease . resource:The_Clown property:depicts ?p }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q13604751
P921
Q1792379
USER
Which art genre is that disease a main subject of ?
(c(Q1792379),P921,Q13604751)
action filter_type
action find_reverse
entity Q13604751
relation P921
type Q1792379
[{'concept': 'Q1792379'}, 'P921', 'Q13604751']
SELECT DISTINCT ?r WHERE { ?r property:P921 resource:Q13604751 . ?r rdf:type ontology:Q1792379 }
lovesickness
action filter_type
action find_reverse
entity lovesickness
relation main subject
type art genre
[{'concept': 'art genre'}, 'main subject', 'lovesickness']
SELECT DISTINCT ?r WHERE { ?r property:main_subject resource:lovesickness . ?r rdf:type ontology:art_genre }
[]
art genre
Q174864
SYSTEM
elegy
Q174864
(c(Q1792379),P921,Q13604751)
action filter_type
action find_reverse
entity Q13604751
relation P921
type Q1792379
The [ANSWER] is that disease a main subject of
[{'concept': 'Q1792379'}, 'P921', 'Q13604751']
SELECT DISTINCT ?r WHERE { ?r property:P921 resource:Q13604751 . ?r rdf:type ontology:Q1792379 }
elegy
The elegy is that disease a main subject of
elegy
action filter_type
action find_reverse
entity lovesickness
relation main subject
type art genre
[{'concept': 'art genre'}, 'main subject', 'lovesickness']
SELECT DISTINCT ?r WHERE { ?r property:main_subject resource:lovesickness . ?r rdf:type ontology:art_genre }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Indirect
P136
Q502895
USER
How many people as that art genre as their class ?
(c(Q502895),P136,Q174864)
action count
action filter_type
action find_reverse
entity Q174864
relation P136
type Q502895
[{'concept': 'Q502895'}, 'P136', 'Q174864']
SELECT DISTINCT ( COUNT ( ?q ) AS ?t ) WHERE { ?q property:P136 resource:Q174864 . ?q rdf:type ontology:Q502895 }
action count
action filter_type
action find_reverse
entity elegy
relation genre
type common name
[{'concept': 'common name'}, 'genre', 'elegy']
SELECT DISTINCT ( COUNT ( ?q ) AS ?t ) WHERE { ?q property:genre resource:elegy . ?q rdf:type ontology:common_name }
[]
common name
SYSTEM
5
Q314498 Q501 Q164765 Q1613558 Q553067
(c(Q502895),P136,Q174864)
action count
action filter_type
action find_reverse
entity Q174864
relation P136
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P136', 'Q174864']
SELECT DISTINCT ( COUNT ( ?q ) AS ?t ) WHERE { ?q property:P136 resource:Q174864 . ?q rdf:type ontology:Q502895 }
Konstantin Balmont Charles Baudelaire Alexander Blok Hermesianax Maximianus
5
action count
action filter_type
action find_reverse
entity elegy
relation genre
type common name
[{'concept': 'common name'}, 'genre', 'elegy']
SELECT DISTINCT ( COUNT ( ?q ) AS ?t ) WHERE { ?q property:genre resource:elegy . ?q rdf:type ontology:common_name }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P180
Q56061 Q15709879 Q838948
USER
Which administrative territories are demonstrated in atleast 1 artwork series and works of art ?
(c(Q15709879)|c(Q838948),P180,c(Q56061))
action atleast
action union
action find_reverse_tuple_counts
relation P180
type Q56061
type Q15709879
action find_reverse_tuple_counts
relation P180
type Q56061
type Q838948
value 1
[[{'concept': 'Q15709879'}, {'concept': 'Q838948'}], 'P180', {'concept': 'Q56061'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?v ) AS ?g ) WHERE { { ?v property:P180 ?k . ?k rdf:type ontology:Q56061 . ?v rdf:type ontology:Q15709879 } UNION { ?v property:P180 ?k . ?k rdf:type ontology:Q56061 . ?v rdf:type ontology:Q838948 } } GROUP BY ?k } . FILTER ( ?g >= 1 ) }
action atleast
action union
action find_reverse_tuple_counts
relation depicts
type administrative territorial entity
type artwork series
action find_reverse_tuple_counts
relation depicts
type administrative territorial entity
type work of art
value 1
[[{'concept': 'artwork series'}, {'concept': 'work of art'}], 'depicts', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?v ) AS ?g ) WHERE { { ?v property:depicts ?k . ?k rdf:type ontology:administrative_territorial_entity . ?v rdf:type ontology:artwork_series } UNION { ?v property:depicts ?k . ?k rdf:type ontology:administrative_territorial_entity . ?v rdf:type ontology:work_of_art } } GROUP BY ?k } . FILTER ( ?g >= 1 ) }
[]
administrative territorial entity artwork series work of art
Q90 Q340 Q1479
SYSTEM
Paris, Montreal, Bordeaux
Q11370950 Q153516 Q515 Q1563 Q372324 Q1479 Q340 Q48292 Q165887 Q90 Q36600
(c(Q15709879)|c(Q838948),P180,c(Q56061))
action atleast
action union
action find_reverse_tuple_counts
relation P180
type Q56061
type Q15709879
action find_reverse_tuple_counts
relation P180
type Q56061
type Q838948
value 1
[ANSWERS] are demonstrated in atleast 1 artwork series and works of art
[[{'concept': 'Q15709879'}, {'concept': 'Q838948'}], 'P180', {'concept': 'Q56061'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?v ) AS ?g ) WHERE { { ?v property:P180 ?k . ?k rdf:type ontology:Q56061 . ?v rdf:type ontology:Q15709879 } UNION { ?v property:P180 ?k . ?k rdf:type ontology:Q56061 . ?v rdf:type ontology:Q838948 } } GROUP BY ?k } . FILTER ( ?g >= 1 ) }
Kameido Nuenen city Havana Dawson City Bordeaux Montreal Arles Emmaus Paris The Hague
Paris, Montreal and Bordeaux are demonstrated in atleast 1 artwork series and works of art
Paris Montreal Bordeaux
action atleast
action union
action find_reverse_tuple_counts
relation depicts
type administrative territorial entity
type artwork series
action find_reverse_tuple_counts
relation depicts
type administrative territorial entity
type work of art
value 1
[[{'concept': 'artwork series'}, {'concept': 'work of art'}], 'depicts', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?v ) AS ?g ) WHERE { { ?v property:depicts ?k . ?k rdf:type ontology:administrative_territorial_entity . ?v rdf:type ontology:artwork_series } UNION { ?v property:depicts ?k . ?k rdf:type ontology:administrative_territorial_entity . ?v rdf:type ontology:work_of_art } } GROUP BY ?k } . FILTER ( ?g >= 1 ) }
[]