Simple Question (Direct)
Simple Question
Q552048
P19
Q20667921
USER
Which french administrative division is the place of birth of Jonathan Dasnières de Veigy ?
(Q552048,P19,c(Q20667921))
action filter_type
action find
entity Q552048
relation P19
type Q20667921
['Q552048', 'P19', {'concept': 'Q20667921'}]
SELECT DISTINCT ?m WHERE { resource:Q552048 property:P19 ?m . ?m rdf:type ontology:Q20667921 }
Jonathan Dasnières de Veigy
action filter_type
action find
entity Jonathan Dasnières de Veigy
relation place of birth
type type of french administrative division
['Jonathan Dasnières de Veigy', 'place of birth', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?m WHERE { resource:Jonathan_Dasnières_de_Veigy property:place_of_birth ?m . ?m rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q42807
SYSTEM
Nîmes
Q42807
(Q552048,P19,c(Q20667921))
action filter_type
action find
entity Q552048
relation P19
type Q20667921
[ANSWER] is the place of birth of Jonathan Dasnières de Veigy
['Q552048', 'P19', {'concept': 'Q20667921'}]
SELECT DISTINCT ?m WHERE { resource:Q552048 property:P19 ?m . ?m rdf:type ontology:Q20667921 }
Nîmes
Nîmes is the place of birth of Jonathan Dasnières de Veigy
Nîmes
action filter_type
action find
entity Jonathan Dasnières de Veigy
relation place of birth
type type of french administrative division
['Jonathan Dasnières de Veigy', 'place of birth', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?m WHERE { resource:Jonathan_Dasnières_de_Veigy property:place_of_birth ?m . ?m rdf:type ontology:type_of_french_administrative_division }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q42807
P47
Q20667921
USER
Which french administrative divisions are adjacent to that one ?
(Q42807,P47,c(Q20667921))
action filter_type
action find
entity Q42807
relation P47
type Q20667921
['Q42807', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ?q WHERE { resource:Q42807 property:P47 ?q . ?q rdf:type ontology:Q20667921 }
Nîmes
action filter_type
action find
entity Nîmes
relation shares border with
type type of french administrative division
['Nîmes', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?q WHERE { resource:Nîmes property:shares_border_with ?q . ?q rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q243024 Q244297 Q1009410
SYSTEM
Saint-Gilles, Marguerittes, Sainte-Anastasie
Q244175 Q379793 Q477780 Q269637 Q239867 Q269782 Q273202 Q861981 Q841538 Q1009410 Q261640 Q245609 Q844827 Q244297 Q243024
(Q42807,P47,c(Q20667921))
action filter_type
action find
entity Q42807
relation P47
type Q20667921
[ANSWERS] are adjacent to that one
['Q42807', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ?q WHERE { resource:Q42807 property:P47 ?q . ?q rdf:type ontology:Q20667921 }
Dions Bouillargues Générac Gajan Parignargues Caissargues Poulx Milhaud La Calmette Sainte-Anastasie Rodilhan La Rouvière Caveirac Marguerittes Saint-Gilles
Saint-Gilles, Marguerittes and Sainte-Anastasie are adjacent to that one
Saint-Gilles Marguerittes Sainte-Anastasie
action filter_type
action find
entity Nîmes
relation shares border with
type type of french administrative division
['Nîmes', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?q WHERE { resource:Nîmes property:shares_border_with ?q . ?q rdf:type ontology:type_of_french_administrative_division }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q742327
Q20667921
USER
And what about Zoza?
(Q742327,P47,c(Q20667921))
action filter_type
action find
entity Q742327
relation P47
type Q20667921
['Q742327', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ?b WHERE { resource:Q742327 property:P47 ?b . ?b rdf:type ontology:Q20667921 }
Zoza
action filter_type
action find
entity Zoza
relation shares border with
type type of french administrative division
['Zoza', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?b WHERE { resource:Zoza property:shares_border_with ?b . ?b rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q273684 Q648612 Q1109658
SYSTEM
Sainte-Lucie-de-Tallano, Serra-di-Scopamène, Zérubia
Q648612 Q273684 Q1087934 Q1109658 Q641750
(Q742327,P47,c(Q20667921))
action filter_type
action find
entity Q742327
relation P47
type Q20667921
[ANSWERS]
['Q742327', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ?b WHERE { resource:Q742327 property:P47 ?b . ?b rdf:type ontology:Q20667921 }
Serra-di-Scopamène Sainte-Lucie-de-Tallano Altagène Zérubia Cargiaca
Sainte-Lucie-de-Tallano Serra-di-Scopamène Zérubia
action filter_type
action find
entity Zoza
relation shares border with
type type of french administrative division
['Zoza', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?b WHERE { resource:Zoza property:shares_border_with ?b . ?b rdf:type ontology:type_of_french_administrative_division }
[]
Clarification
Quantitative|Count|Single entity type|Indirect
P47
Q20667921
USER
How many french administrative divisions have an adjacent border with that french administrative division ?
(c(Q20667921),P47,Q273684)
[{'concept': 'Q20667921'}, 'P47', 'Q273684']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:P47 resource:Q273684 . ?z rdf:type ontology:Q20667921 }
[{'concept': 'type of french administrative division'}, 'shares border with', 'Sainte-Lucie-de-Tallano']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:shares_border_with resource:Sainte-Lucie-de-Tallano . ?z rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Quantitative|Count|Single entity type|Clarification
Q273684
SYSTEM
Did you mean Sainte-Lucie-de-Tallano ?
(c(Q20667921),P47,Q273684) (c(Q20667921),P47,Q648612) (c(Q20667921),P47,Q1109658)
[ANSWER]
[{'concept': 'Q20667921'}, 'P47', 'Q273684'] [{'concept': 'Q20667921'}, 'P47', 'Q648612'] [{'concept': 'Q20667921'}, 'P47', 'Q1109658']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:P47 resource:Q273684 . ?z rdf:type ontology:Q20667921 }
Did you mean Sainte-Lucie-de-Tallano ?
Sainte-Lucie-de-Tallano
[{'concept': 'type of french administrative division'}, 'shares border with', 'Sainte-Lucie-de-Tallano'] [{'concept': 'type of french administrative division'}, 'shares border with', 'Serra-di-Scopamène'] [{'concept': 'type of french administrative division'}, 'shares border with', 'Zérubia']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:shares_border_with resource:Sainte-Lucie-de-Tallano . ?z rdf:type ontology:type_of_french_administrative_division }
[]
Quantitative Reasoning (Count) (All)
USER
Yes
(c(Q20667921),P47,Q273684)
[{'concept': 'Q20667921'}, 'P47', 'Q273684']
[{'concept': 'type of french administrative division'}, 'shares border with', 'Sainte-Lucie-de-Tallano']
[]
SYSTEM
10
Q519130 Q742327 Q1110508 Q783908 Q273682 Q1087934 Q641750 Q1109584 Q244925 Q273443
(c(Q20667921),P47,Q273684)
[ANSWER]
[{'concept': 'Q20667921'}, 'P47', 'Q273684']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:P47 resource:Q273684 . ?z rdf:type ontology:Q20667921 }
Arbellara Zoza Olmiccia Loreto-di-Tallano Granace Altagène Cargiaca Mela Foce Levie
10
[{'concept': 'type of french administrative division'}, 'shares border with', 'Sainte-Lucie-de-Tallano']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:shares_border_with resource:Sainte-Lucie-de-Tallano . ?z rdf:type ontology:type_of_french_administrative_division }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q142 Q244297
P47 P17
Q20667921
USER
Which french administrative divisions do Marguerittes share a border with and are situated in France ?
AND((c(Q20667921),P47,Q244297), (c(Q20667921),P17,Q142))
action filter_type
action intersection
action find_reverse
entity Q244297
relation P47
action find_reverse
entity Q142
relation P17
type Q20667921
{'AND': [[{'concept': 'Q20667921'}, 'P47', 'Q244297'], [{'concept': 'Q20667921'}, 'P17', 'Q142']]}
SELECT DISTINCT ?h WHERE { ?h property:P47 resource:Q244297 . ?h property:P17 resource:Q142 . ?h rdf:type ontology:Q20667921 }
France Marguerittes
action filter_type
action intersection
action find_reverse
entity Marguerittes
relation shares border with
action find_reverse
entity France
relation country
type type of french administrative division
{'AND': [[{'concept': 'type of french administrative division'}, 'shares border with', 'Marguerittes'], [{'concept': 'type of french administrative division'}, 'country', 'France']]}
SELECT DISTINCT ?h WHERE { ?h property:shares_border_with resource:Marguerittes . ?h property:country resource:France . ?h rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q379640 Q379622 Q273952 Q273202 Q42807 Q261640 Q375605 Q244249
SYSTEM
Cabrières, Saint-Gervasy, Bezouce, Poulx, Nîmes, Rodilhan, Redessan, Manduel
Q379640 Q379622 Q273952 Q273202 Q42807 Q261640 Q375605 Q244249
AND((c(Q20667921),P47,Q244297), (c(Q20667921),P17,Q142))
action filter_type
action intersection
action find_reverse
entity Q244297
relation P47
action find_reverse
entity Q142
relation P17
type Q20667921
Marguerittes share a border with [ANSWERS]
{'AND': [[{'concept': 'Q20667921'}, 'P47', 'Q244297'], [{'concept': 'Q20667921'}, 'P17', 'Q142']]}
SELECT DISTINCT ?h WHERE { ?h property:P47 resource:Q244297 . ?h property:P17 resource:Q142 . ?h rdf:type ontology:Q20667921 }
Cabrières Saint-Gervasy Bezouce Poulx Nîmes Rodilhan Redessan Manduel
Marguerittes share a border with Cabrières, Saint-Gervasy, Bezouce, Poulx, Nîmes, Rodilhan, Redessan and Manduel
Cabrières Saint-Gervasy Bezouce Poulx Nîmes Rodilhan Redessan Manduel
action filter_type
action intersection
action find_reverse
entity Marguerittes
relation shares border with
action find_reverse
entity France
relation country
type type of french administrative division
{'AND': [[{'concept': 'type of french administrative division'}, 'shares border with', 'Marguerittes'], [{'concept': 'type of french administrative division'}, 'country', 'France']]}
SELECT DISTINCT ?h WHERE { ?h property:shares_border_with resource:Marguerittes . ?h property:country resource:France . ?h rdf:type ontology:type_of_french_administrative_division }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q42807
P551
Q502895
USER
Which people dwell at Nîmes ?
(c(Q502895),P551,Q42807)
action filter_type
action find_reverse
entity Q42807
relation P551
type Q502895
[{'concept': 'Q502895'}, 'P551', 'Q42807']
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q502895 . ?d property:P551 resource:Q42807 }
Nîmes
action filter_type
action find_reverse
entity Nîmes
relation residence
type common name
[{'concept': 'common name'}, 'residence', 'Nîmes']
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:common_name . ?d property:residence resource:Nîmes }
[]
common name
Q2829892 Q220425 Q552048
SYSTEM
Alain Guyard, Virginie Razzano, Jonathan Dasnières de Veigy
Q2829892 Q7608197 Q220425 Q552048
(c(Q502895),P551,Q42807)
action filter_type
action find_reverse
entity Q42807
relation P551
type Q502895
[ANSWERS] dwell at Nîmes
[{'concept': 'Q502895'}, 'P551', 'Q42807']
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q502895 . ?d property:P551 resource:Q42807 }
Alain Guyard Stephane Sansoni Virginie Razzano Jonathan Dasnières de Veigy
Alain Guyard, Virginie Razzano and Jonathan Dasnières de Veigy dwell at Nîmes
Alain Guyard Virginie Razzano Jonathan Dasnières de Veigy
action filter_type
action find_reverse
entity Nîmes
relation residence
type common name
[{'concept': 'common name'}, 'residence', 'Nîmes']
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:common_name . ?d property:residence resource:Nîmes }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q2829892 Q220425 Q552048
P21
Q290
USER
Which sexes do those people have ?
(Q2829892,P21,c(Q290)) (Q220425,P21,c(Q290)) (Q552048,P21,c(Q290))
action filter_type
action find
entity prev_answer
relation P21
type Q290
['Q2829892', 'P21', {'concept': 'Q290'}] ['Q220425', 'P21', {'concept': 'Q290'}] ['Q552048', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?i WHERE { ?q property:P21 ?i . ?i rdf:type ontology:Q290 . VALUES ( ?q ) { ( resource:Q2829892 ) ( resource:Q7608197 ) ( resource:Q220425 ) } }
Alain Guyard Virginie Razzano Jonathan Dasnières de Veigy
action filter_type
action find
entity prev_answer
relation gender
type sex
['Alain Guyard', 'gender', {'concept': 'sex'}] ['Virginie Razzano', 'gender', {'concept': 'sex'}] ['Jonathan Dasnières de Veigy', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?i WHERE { ?q property:gender ?i . ?i rdf:type ontology:sex . VALUES ( ?q ) { ( resource:Alain_Guyard ) ( resource:Stephane_Sansoni ) ( resource:Virginie_Razzano ) } }
[]
sex
Q6581097 Q6581072 Q6581097
SYSTEM
male for 1st, 3rd, female for 2nd
Q6581097 Q6581072 Q6581097
(Q2829892,P21,c(Q290)) (Q220425,P21,c(Q290)) (Q552048,P21,c(Q290))
action filter_type
action find
entity prev_answer
relation P21
type Q290
[ANSWERS]
['Q2829892', 'P21', {'concept': 'Q290'}] ['Q220425', 'P21', {'concept': 'Q290'}] ['Q552048', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?i WHERE { ?q property:P21 ?i . ?i rdf:type ontology:Q290 . VALUES ( ?q ) { ( resource:Q2829892 ) ( resource:Q7608197 ) ( resource:Q220425 ) } }
male female male
Those people have a male, female and male
male female male
action filter_type
action find
entity prev_answer
relation gender
type sex
['Alain Guyard', 'gender', {'concept': 'sex'}] ['Virginie Razzano', 'gender', {'concept': 'sex'}] ['Jonathan Dasnières de Veigy', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?i WHERE { ?q property:gender ?i . ?i rdf:type ontology:sex . VALUES ( ?q ) { ( resource:Alain_Guyard ) ( resource:Stephane_Sansoni ) ( resource:Virginie_Razzano ) } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q2829892
P106
Q151885
USER
What is the profession of that person ?
(Q2829892,P106,c(Q151885))
action filter_type
action find
entity Q2829892
relation P106
type Q151885
['Q2829892', 'P106', {'concept': 'Q151885'}]
SELECT DISTINCT ?r WHERE { resource:Q2829892 property:P106 ?r . ?r rdf:type ontology:Q151885 }
Alain Guyard
action filter_type
action find
entity Alain Guyard
relation occupation
type concept
['Alain Guyard', 'occupation', {'concept': 'concept'}]
SELECT DISTINCT ?r WHERE { resource:Alain_Guyard property:occupation ?r . ?r rdf:type ontology:concept }
[]
concept
Clarification for simple ques.
Q2829892
SYSTEM
Did you mean Alain Guyard ?
Q6581097 Q6581072 Q6581097
(Q6581097,P106,c(Q151885)) (Q6581072,P106,c(Q151885)) (Q6581097,P106,c(Q151885))
[ANSWER]
['Q6581097', 'P106', {'concept': 'Q151885'}] ['Q6581072', 'P106', {'concept': 'Q151885'}] ['Q6581097', 'P106', {'concept': 'Q151885'}]
SELECT DISTINCT ?r WHERE { resource:Q2829892 property:P106 ?r . ?r rdf:type ontology:Q151885 }
male female male
Did you mean Alain Guyard ?
Alain Guyard
['male', 'occupation', {'concept': 'concept'}] ['female', 'occupation', {'concept': 'concept'}] ['male', 'occupation', {'concept': 'concept'}]
SELECT DISTINCT ?r WHERE { resource:Alain_Guyard property:occupation ?r . ?r rdf:type ontology:concept }
[]
Simple Question (Coreferenced)
USER
Yes
(Q2829892,P106,c(Q151885))
['Q2829892', 'P106', {'concept': 'Q151885'}]
['Alain Guyard', 'occupation', {'concept': 'concept'}]
[]
Q214917
SYSTEM
playwright
Q214917
(Q2829892,P106,c(Q151885))
action filter_type
action find
entity Q2829892
relation P106
type Q151885
The profession of that person is a [ANSWER]
['Q2829892', 'P106', {'concept': 'Q151885'}]
SELECT DISTINCT ?r WHERE { resource:Q2829892 property:P106 ?r . ?r rdf:type ontology:Q151885 }
playwright
The profession of that person is a playwright
playwright
action filter_type
action find
entity Alain Guyard
relation occupation
type concept
['Alain Guyard', 'occupation', {'concept': 'concept'}]
SELECT DISTINCT ?r WHERE { resource:Alain_Guyard property:occupation ?r . ?r rdf:type ontology:concept }
[]