Simple Question (Direct)
Simple Question
Q1638957
P27
Q15617994
USER
Which administrative territories are the native countriesof Kader Firoud ?
(Q1638957,P27,c(Q15617994))
action filter_type
action find
entity Q1638957
relation P27
type Q15617994
['Q1638957', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { resource:Q1638957 property:P27 ?y . ?y rdf:type ontology:Q15617994 }
Kader Firoud
action filter_type
action find
entity Kader Firoud
relation country of citizenship
type designation for an administrative territorial entity
['Kader Firoud', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { resource:Kader_Firoud property:country_of_citizenship ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142 Q262
SYSTEM
France, Algeria
Q142 Q262
(Q1638957,P27,c(Q15617994))
action filter_type
action find
entity Q1638957
relation P27
type Q15617994
[ANSWERS] are the native countriesof Kader Firoud
['Q1638957', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { resource:Q1638957 property:P27 ?y . ?y rdf:type ontology:Q15617994 }
France Algeria
France and Algeria are the native countriesof Kader Firoud
France Algeria
action filter_type
action find
entity Kader Firoud
relation country of citizenship
type designation for an administrative territorial entity
['Kader Firoud', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { resource:Kader_Firoud property:country_of_citizenship ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q142 Q262
P35
Q502895
USER
Who are the chiefs of state of France and Algeria ?
(Q142,P35,c(Q502895)) (Q262,P35,c(Q502895))
action union
action filter_type
action find
entity Q142
relation P35
type Q502895
action filter_type
action find
entity Q262
relation P35
type Q502895
['Q142', 'P35', {'concept': 'Q502895'}] ['Q262', 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ?o WHERE { { resource:Q262 property:P35 ?o . ?o rdf:type ontology:Q502895 } UNION { resource:Q142 property:P35 ?o . ?o rdf:type ontology:Q502895 } }
France Algeria
action union
action filter_type
action find
entity France
relation head of state
type common name
action filter_type
action find
entity Algeria
relation head of state
type common name
['France', 'head of state', {'concept': 'common name'}] ['Algeria', 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ?o WHERE { { resource:Algeria property:head_of_state ?o . ?o rdf:type ontology:common_name } UNION { resource:France property:head_of_state ?o . ?o rdf:type ontology:common_name } }
[]
common name
Q2105 Q2042 Q2038
SYSTEM
Jacques Chirac, Charles de Gaulle, François Mitterrand
Q2105 Q2038 Q157 Q329 Q2042 Q12950 Q2185 Q2124 Q57308
(Q142,P35,c(Q502895)) (Q262,P35,c(Q502895))
action union
action filter_type
action find
entity Q142
relation P35
type Q502895
action filter_type
action find
entity Q262
relation P35
type Q502895
The chiefs of state of France and Algeria are President [ANSWERS]
['Q142', 'P35', {'concept': 'Q502895'}] ['Q262', 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ?o WHERE { { resource:Q262 property:P35 ?o . ?o rdf:type ontology:Q502895 } UNION { resource:Q142 property:P35 ?o . ?o rdf:type ontology:Q502895 } }
Jacques Chirac François Mitterrand François Hollande Nicolas Sarkozy Charles de Gaulle Alain Poher Georges Pompidou Valéry Giscard d'Estaing Abdelaziz Bouteflika
The chiefs of state of France and Algeria are President Jacques Chirac, Charles de Gaulle and François Mitterrand
Jacques Chirac Charles de Gaulle François Mitterrand
action union
action filter_type
action find
entity France
relation head of state
type common name
action filter_type
action find
entity Algeria
relation head of state
type common name
['France', 'head of state', {'concept': 'common name'}] ['Algeria', 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ?o WHERE { { resource:Algeria property:head_of_state ?o . ?o rdf:type ontology:common_name } UNION { resource:France property:head_of_state ?o . ?o rdf:type ontology:common_name } }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q2105 Q2042 Q2038
P40
Q502895
USER
Who have those ones as an offspring ?
(c(Q502895),P40,Q2105) (c(Q502895),P40,Q2042) (c(Q502895),P40,Q2038)
action filter_type
action find_reverse
entity prev_answer
relation P40
type Q502895
[{'concept': 'Q502895'}, 'P40', 'Q2105'] [{'concept': 'Q502895'}, 'P40', 'Q2042'] [{'concept': 'Q502895'}, 'P40', 'Q2038']
SELECT DISTINCT ?f WHERE { ?f property:P40 ?k . ?f rdf:type ontology:Q502895 . VALUES ( ?k ) { ( resource:Q2105 ) ( resource:Q2038 ) ( resource:Q157 ) } }
Jacques Chirac Charles de Gaulle François Mitterrand
action filter_type
action find_reverse
entity prev_answer
relation child
type common name
[{'concept': 'common name'}, 'child', 'Jacques Chirac'] [{'concept': 'common name'}, 'child', 'Charles de Gaulle'] [{'concept': 'common name'}, 'child', 'François Mitterrand']
SELECT DISTINCT ?f WHERE { ?f property:child ?k . ?f rdf:type ontology:common_name . VALUES ( ?k ) { ( resource:Jacques_Chirac ) ( resource:François_Mitterrand ) ( resource:François_Hollande ) } }
[]
common name
Q3132274 Q16354853 Q16354565
SYSTEM
Henri de Gaulle, Jeanne Maillot, Abel François Marie Chirac
Q16354565 Q16354830 Q16354853 Q3132274 Q16354832 Q16354834
(c(Q502895),P40,Q2105) (c(Q502895),P40,Q2042) (c(Q502895),P40,Q2038)
action filter_type
action find_reverse
entity prev_answer
relation P40
type Q502895
[ANSWERS] have those ones as an offspring
[{'concept': 'Q502895'}, 'P40', 'Q2105'] [{'concept': 'Q502895'}, 'P40', 'Q2042'] [{'concept': 'Q502895'}, 'P40', 'Q2038']
SELECT DISTINCT ?f WHERE { ?f property:P40 ?k . ?f rdf:type ontology:Q502895 . VALUES ( ?k ) { ( resource:Q2105 ) ( resource:Q2038 ) ( resource:Q157 ) } }
Abel François Marie Chirac Marie-Louise Valette Jeanne Maillot Henri de Gaulle Yvonne Lorrain Joseph Mitterrand
Henri de Gaulle, Jeanne Maillot and Abel François Marie Chirac have those ones as an offspring
Henri de Gaulle Jeanne Maillot Abel François Marie Chirac
action filter_type
action find_reverse
entity prev_answer
relation child
type common name
[{'concept': 'common name'}, 'child', 'Jacques Chirac'] [{'concept': 'common name'}, 'child', 'Charles de Gaulle'] [{'concept': 'common name'}, 'child', 'François Mitterrand']
SELECT DISTINCT ?f WHERE { ?f property:child ?k . ?f rdf:type ontology:common_name . VALUES ( ?k ) { ( resource:Jacques_Chirac ) ( resource:François_Mitterrand ) ( resource:François_Hollande ) } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q16354565
P734
Q82799
USER
Which name is associated with that person ?
(Q16354565,P734,c(Q82799))
action filter_type
action find
entity Q16354565
relation P734
type Q82799
['Q16354565', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?k WHERE { resource:Q16354565 property:P734 ?k . ?k rdf:type ontology:Q82799 }
Abel François Marie Chirac
action filter_type
action find
entity Abel François Marie Chirac
relation family name
type name
['Abel François Marie Chirac', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?k WHERE { resource:Abel_François_Marie_Chirac property:family_name ?k . ?k rdf:type ontology:name }
[]
name
Clarification for simple ques.
Q3132274
SYSTEM
Did you mean Henri de Gaulle ?
Q3132274 Q16354853 Q16354565
(Q3132274,P734,c(Q82799)) (Q16354853,P734,c(Q82799)) (Q16354565,P734,c(Q82799))
[ANSWER]
['Q3132274', 'P734', {'concept': 'Q82799'}] ['Q16354853', 'P734', {'concept': 'Q82799'}] ['Q16354565', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?k WHERE { resource:Q16354565 property:P734 ?k . ?k rdf:type ontology:Q82799 }
Henri de Gaulle Jeanne Maillot Abel François Marie Chirac
Did you mean Henri de Gaulle ?
Henri de Gaulle
['Henri de Gaulle', 'family name', {'concept': 'name'}] ['Jeanne Maillot', 'family name', {'concept': 'name'}] ['Abel François Marie Chirac', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?k WHERE { resource:Abel_François_Marie_Chirac property:family_name ?k . ?k rdf:type ontology:name }
[]
Simple Question (Coreferenced)
USER
No, I meant Abel François Marie Chirac. Could you tell me the answer for that?
(Q16354565,P734,c(Q82799))
Q16354565
['Q16354565', 'P734', {'concept': 'Q82799'}]
['Abel François Marie Chirac', 'family name', {'concept': 'name'}]
[]
Q21167131
SYSTEM
Chirac
Q21167131
(Q16354565,P734,c(Q82799))
action filter_type
action find
entity Q16354565
relation P734
type Q82799
[ANSWER] is associated with that person
['Q16354565', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?k WHERE { resource:Q16354565 property:P734 ?k . ?k rdf:type ontology:Q82799 }
Chirac
Chirac is associated with that person
Chirac
action filter_type
action find
entity Abel François Marie Chirac
relation family name
type name
['Abel François Marie Chirac', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?k WHERE { resource:Abel_François_Marie_Chirac property:family_name ?k . ?k rdf:type ontology:name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q262
P138
Q17444909 Q79007
USER
How many astronomical object types or streets have Algeria as their namesake ?
(c(Q17444909),P138,Q262) (c(Q79007),P138,Q262)
action count
action union
action filter_type
action find_reverse
entity Q262
relation P138
type Q17444909
action filter_type
action find_reverse
entity Q262
relation P138
type Q79007
[{'concept': 'Q17444909'}, 'P138', 'Q262'] [{'concept': 'Q79007'}, 'P138', 'Q262']
SELECT DISTINCT ( COUNT ( ?q ) AS ?u ) WHERE { ?q rdf:type ?p . VALUES ( ?p ) { ( ontology:Q17444909 ) ( ontology:Q79007 ) } }
Algeria
action count
action union
action filter_type
action find_reverse
entity Algeria
relation named after
type astronomical object type
action filter_type
action find_reverse
entity Algeria
relation named after
type street
[{'concept': 'astronomical object type'}, 'named after', 'Algeria'] [{'concept': 'street'}, 'named after', 'Algeria']
SELECT DISTINCT ( COUNT ( ?q ) AS ?u ) WHERE { ?q rdf:type ?p . VALUES ( ?p ) { ( ontology:astronomical_object_type ) ( ontology:street ) } }
[]
astronomical object type street
SYSTEM
2
Q137048 Q2921961
(c(Q17444909),P138,Q262) (c(Q79007),P138,Q262)
action count
action union
action filter_type
action find_reverse
entity Q262
relation P138
type Q17444909
action filter_type
action find_reverse
entity Q262
relation P138
type Q79007
[ANSWER]
[{'concept': 'Q17444909'}, 'P138', 'Q262'] [{'concept': 'Q79007'}, 'P138', 'Q262']
SELECT DISTINCT ( COUNT ( ?q ) AS ?u ) WHERE { ?q rdf:type ?p . VALUES ( ?p ) { ( ontology:Q17444909 ) ( ontology:Q79007 ) } }
1213 Algeria boulevard d'Algérie
2
action count
action union
action filter_type
action find_reverse
entity Algeria
relation named after
type astronomical object type
action filter_type
action find_reverse
entity Algeria
relation named after
type street
[{'concept': 'astronomical object type'}, 'named after', 'Algeria'] [{'concept': 'street'}, 'named after', 'Algeria']
SELECT DISTINCT ( COUNT ( ?q ) AS ?u ) WHERE { ?q rdf:type ?p . VALUES ( ?p ) { ( ontology:astronomical_object_type ) ( ontology:street ) } }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q6581072 Q2105
P21 P22
Q502895
USER
Which people have Jacques Chirac as dad and have female as the sex ?
AND((c(Q502895),P22,Q2105), (c(Q502895),P21,Q6581072))
action filter_type
action intersection
action find_reverse
entity Q2105
relation P22
action find_reverse
entity Q6581072
relation P21
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P22', 'Q2105'], [{'concept': 'Q502895'}, 'P21', 'Q6581072']]}
SELECT DISTINCT ?c WHERE { ?c property:P22 resource:Q2105 . ?c property:P21 resource:Q6581072 . ?c rdf:type ontology:Q502895 }
female Jacques Chirac
action filter_type
action intersection
action find_reverse
entity Jacques Chirac
relation father
action find_reverse
entity female
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'father', 'Jacques Chirac'], [{'concept': 'common name'}, 'gender', 'female']]}
SELECT DISTINCT ?c WHERE { ?c property:father resource:Jacques_Chirac . ?c property:gender resource:female . ?c rdf:type ontology:common_name }
[]
common name
Q447613 Q15529521 Q2977194
SYSTEM
Anh Dao Traxel, Laurence Chirac, Claude Chirac
Q447613 Q15529521 Q2977194
AND((c(Q502895),P22,Q2105), (c(Q502895),P21,Q6581072))
action filter_type
action intersection
action find_reverse
entity Q2105
relation P22
action find_reverse
entity Q6581072
relation P21
type Q502895
[ANSWERS] have Jacques Chirac as dad and have female as the sex
{'AND': [[{'concept': 'Q502895'}, 'P22', 'Q2105'], [{'concept': 'Q502895'}, 'P21', 'Q6581072']]}
SELECT DISTINCT ?c WHERE { ?c property:P22 resource:Q2105 . ?c property:P21 resource:Q6581072 . ?c rdf:type ontology:Q502895 }
Anh Dao Traxel Laurence Chirac Claude Chirac
Anh Dao Traxel, Laurence Chirac and Claude Chirac have Jacques Chirac as dad and have female as the sex
Anh Dao Traxel Laurence Chirac Claude Chirac
action filter_type
action intersection
action find_reverse
entity Jacques Chirac
relation father
action find_reverse
entity female
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'father', 'Jacques Chirac'], [{'concept': 'common name'}, 'gender', 'female']]}
SELECT DISTINCT ?c WHERE { ?c property:father resource:Jacques_Chirac . ?c property:gender resource:female . ?c rdf:type ontology:common_name }
[]