Simple Question (Direct)
Simple Question
Q3122149
P108
Q1002697
USER
Which periodical literatures do Guy Sitbon work for ?
(Q3122149,P108,c(Q1002697))
action filter_type
action find
entity Q3122149
relation P108
type Q1002697
['Q3122149', 'P108', {'concept': 'Q1002697'}]
SELECT DISTINCT ?s WHERE { resource:Q3122149 property:P108 ?s . ?s rdf:type ontology:Q1002697 }
Guy Sitbon
action filter_type
action find
entity Guy Sitbon
relation employer
type periodical literature
['Guy Sitbon', 'employer', {'concept': 'periodical literature'}]
SELECT DISTINCT ?s WHERE { resource:Guy_Sitbon property:employer ?s . ?s rdf:type ontology:periodical_literature }
[]
periodical literature
Q1044328 Q1252739
SYSTEM
L’Obs, Jeune Afrique
Q1044328 Q1252739
(Q3122149,P108,c(Q1002697))
action filter_type
action find
entity Q3122149
relation P108
type Q1002697
Guy Sitbon work in [ANSWERS]
['Q3122149', 'P108', {'concept': 'Q1002697'}]
SELECT DISTINCT ?s WHERE { resource:Q3122149 property:P108 ?s . ?s rdf:type ontology:Q1002697 }
L’Obs Jeune Afrique
Guy Sitbon work in L’Obs and Jeune Afrique
L’Obs Jeune Afrique
action filter_type
action find
entity Guy Sitbon
relation employer
type periodical literature
['Guy Sitbon', 'employer', {'concept': 'periodical literature'}]
SELECT DISTINCT ?s WHERE { resource:Guy_Sitbon property:employer ?s . ?s rdf:type ontology:periodical_literature }
[]
Clarification
Simple Question|Single Entity|Indirect
Q1252739
P495
Q15617994
USER
Which administrative territory is the origin of that periodical literature ?
(Q1252739,P495,c(Q15617994))
action filter_type
action find
entity Q1252739
relation P495
type Q15617994
['Q1252739', 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q15617994 . resource:Q1252739 property:P495 ?q }
Jeune Afrique
action filter_type
action find
entity Jeune Afrique
relation country of origin
type designation for an administrative territorial entity
['Jeune Afrique', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Jeune_Afrique property:country_of_origin ?q }
[]
designation for an administrative territorial entity
Clarification for simple ques.
Q1252739
SYSTEM
Did you mean Jeune Afrique ?
Q1044328 Q1252739
(Q1044328,P495,c(Q15617994)) (Q1252739,P495,c(Q15617994))
[ANSWER]
['Q1044328', 'P495', {'concept': 'Q15617994'}] ['Q1252739', 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q15617994 . resource:Q1252739 property:P495 ?q }
L’Obs Jeune Afrique
Did you mean Jeune Afrique ?
Jeune Afrique
['L’Obs', 'country of origin', {'concept': 'designation for an administrative territorial entity'}] ['Jeune Afrique', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Jeune_Afrique property:country_of_origin ?q }
[]
Simple Question (Coreferenced)
USER
Yes
(Q1252739,P495,c(Q15617994))
['Q1252739', 'P495', {'concept': 'Q15617994'}]
['Jeune Afrique', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
[]
Q142
SYSTEM
France
Q142
(Q1252739,P495,c(Q15617994))
action filter_type
action find
entity Q1252739
relation P495
type Q15617994
The [ANSWER] is the origin of that periodical literature
['Q1252739', 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q15617994 . resource:Q1252739 property:P495 ?q }
France
The France is the origin of that periodical literature
France
action filter_type
action find
entity Jeune Afrique
relation country of origin
type designation for an administrative territorial entity
['Jeune Afrique', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Jeune_Afrique property:country_of_origin ?q }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q142
P937
Q502895
USER
Who works at that administrative territory ?
(c(Q502895),P937,Q142)
action filter_type
action find_reverse
entity Q142
relation P937
type Q502895
[{'concept': 'Q502895'}, 'P937', 'Q142']
SELECT DISTINCT ?x WHERE { ?x property:P937 resource:Q142 . ?x rdf:type ontology:Q502895 }
France
action filter_type
action find_reverse
entity France
relation work location
type common name
[{'concept': 'common name'}, 'work location', 'France']
SELECT DISTINCT ?x WHERE { ?x property:work_location resource:France . ?x rdf:type ontology:common_name }
[]
common name
Q236293 Q17479789 Q923557
SYSTEM
Marie of France, Countess of Champagne, Vicente Urrabieta, Nicolas Baudeau
Q17479789 Q320741 Q222757 Q3301629 Q21288886 Q18599223 Q236293 Q3027537 Q923557
(c(Q502895),P937,Q142)
action filter_type
action find_reverse
entity Q142
relation P937
type Q502895
[ANSWERS] work at that administrative territory
[{'concept': 'Q502895'}, 'P937', 'Q142']
SELECT DISTINCT ?x WHERE { ?x property:P937 resource:Q142 . ?x rdf:type ontology:Q502895 }
Vicente Urrabieta Edward Molyneux Jacques Bretel Mauricius Francois Habert Felicia Meyer Marsh Marie of France, Countess of Champagne Dietrich-Mohr Nicolas Baudeau
Marie of France, Countess of Champagne, Vicente Urrabieta and Nicolas Baudeau work at that administrative territory
Marie of France, Countess of Champagne Vicente Urrabieta Nicolas Baudeau
action filter_type
action find_reverse
entity France
relation work location
type common name
[{'concept': 'common name'}, 'work location', 'France']
SELECT DISTINCT ?x WHERE { ?x property:work_location resource:France . ?x rdf:type ontology:common_name }
[]
Clarification
Simple Question|Single Entity|Indirect
Q236293
P25
Q502895
USER
Who are the offspring of that one ?
(c(Q502895),P25,Q236293)
action filter_type
action find_reverse
entity Q236293
relation P25
type Q502895
[{'concept': 'Q502895'}, 'P25', 'Q236293']
SELECT DISTINCT ?z WHERE { ?z property:P25 resource:Q236293 . ?z rdf:type ontology:Q502895 }
Marie of France, Countess of Champagne
action filter_type
action find_reverse
entity Marie of France, Countess of Champagne
relation mother
type common name
[{'concept': 'common name'}, 'mother', 'Marie of France, Countess of Champagne']
SELECT DISTINCT ?z WHERE { ?z property:mother resource:Marie_of_France,_Countess_of_Champagne . ?z rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q236293
SYSTEM
Did you mean Marie of France, Countess of Champagne ?
Q236293 Q17479789 Q923557
(c(Q502895),P25,Q236293) (c(Q502895),P25,Q17479789) (c(Q502895),P25,Q923557)
[ANSWER]
[{'concept': 'Q502895'}, 'P25', 'Q236293'] [{'concept': 'Q502895'}, 'P25', 'Q17479789'] [{'concept': 'Q502895'}, 'P25', 'Q923557']
SELECT DISTINCT ?z WHERE { ?z property:P25 resource:Q236293 . ?z rdf:type ontology:Q502895 }
Marie of France, Countess of Champagne Vicente Urrabieta Nicolas Baudeau
Did you mean Marie of France, Countess of Champagne ?
Marie of France, Countess of Champagne
[{'concept': 'common name'}, 'mother', 'Marie of France, Countess of Champagne'] [{'concept': 'common name'}, 'mother', 'Vicente Urrabieta'] [{'concept': 'common name'}, 'mother', 'Nicolas Baudeau']
SELECT DISTINCT ?z WHERE { ?z property:mother resource:Marie_of_France,_Countess_of_Champagne . ?z rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q502895),P25,Q236293)
[{'concept': 'Q502895'}, 'P25', 'Q236293']
[{'concept': 'common name'}, 'mother', 'Marie of France, Countess of Champagne']
[]
Q354422 Q466283 Q282436
SYSTEM
Henry II, Count of Champagne, Marie of Champagne, Theobald III, Count of Champagne
Q7185768 Q354422 Q466283 Q282436
(c(Q502895),P25,Q236293)
action filter_type
action find_reverse
entity Q236293
relation P25
type Q502895
[ANSWERS]
[{'concept': 'Q502895'}, 'P25', 'Q236293']
SELECT DISTINCT ?z WHERE { ?z property:P25 resource:Q236293 . ?z rdf:type ontology:Q502895 }
Scholastique of Champagne Henry II, Count of Champagne Marie of Champagne Theobald III, Count of Champagne
The offspring of that one are Henry II, Count of Champagne, Marie of Champagne and Theobald III, Count of Champagne
Henry II, Count of Champagne Marie of Champagne Theobald III, Count of Champagne
action filter_type
action find_reverse
entity Marie of France, Countess of Champagne
relation mother
type common name
[{'concept': 'common name'}, 'mother', 'Marie of France, Countess of Champagne']
SELECT DISTINCT ?z WHERE { ?z property:mother resource:Marie_of_France,_Countess_of_Champagne . ?z rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1303
Q34379 Q502895
USER
How many musical instruments can exactly 3 people perform with ?
(c(Q502895),P1303,c(Q34379))
action count
action equal
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 3
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?m ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?c ) AS ?l ) WHERE { ?c property:P1303 ?t . ?t rdf:type ontology:Q34379 . ?c rdf:type ontology:Q502895 } GROUP BY ?t } . FILTER ( ?l = 3 ) }
action count
action equal
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 3
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?m ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?c ) AS ?l ) WHERE { ?c property:instrument ?t . ?t rdf:type ontology:musical_instrument . ?c rdf:type ontology:common_name } GROUP BY ?t } . FILTER ( ?l = 3 ) }
[]
musical instrument common name
SYSTEM
2
Q626035 Q726306
(c(Q502895),P1303,c(Q34379))
action count
action equal
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 3
[ANSWER]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?m ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?c ) AS ?l ) WHERE { ?c property:P1303 ?t . ?t rdf:type ontology:Q34379 . ?c rdf:type ontology:Q502895 } GROUP BY ?t } . FILTER ( ?l = 3 ) }
glockenspiel erhu
2
action count
action equal
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 3
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?m ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?c ) AS ?l ) WHERE { ?c property:instrument ?t . ?t rdf:type ontology:musical_instrument . ?c rdf:type ontology:common_name } GROUP BY ?t } . FILTER ( ?l = 3 ) }
[]