Simple Question (Direct)
Simple Question
Q734114
P47
Q20667921
USER
Which french administrative divisions share border with Saint-Marcel-Campes ?
(Q734114,P47,c(Q20667921))
action filter_type
action find
entity Q734114
relation P47
type Q20667921
['Q734114', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ?p WHERE { resource:Q734114 property:P47 ?p . ?p rdf:type ontology:Q20667921 }
Saint-Marcel-Campes
action filter_type
action find
entity Saint-Marcel-Campes
relation shares border with
type type of french administrative division
['Saint-Marcel-Campes', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?p WHERE { resource:Saint-Marcel-Campes property:shares_border_with ?p . ?p rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q635125 Q1466902 Q1390374
SYSTEM
Cordes-sur-Ciel, Livers-Cazelles, Salles
Q1390374 Q1343580 Q513458 Q1470204 Q1471356 Q1466902 Q635125
(Q734114,P47,c(Q20667921))
action filter_type
action find
entity Q734114
relation P47
type Q20667921
[ANSWERS] share border with Saint-Marcel-Campes
['Q734114', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ?p WHERE { resource:Q734114 property:P47 ?p . ?p rdf:type ontology:Q20667921 }
Salles Bournazel Le Ségur Laparrouquial Lacapelle-Ségalar Livers-Cazelles Cordes-sur-Ciel
Cordes-sur-Ciel, Livers-Cazelles and Salles share border with Saint-Marcel-Campes
Cordes-sur-Ciel Livers-Cazelles Salles
action filter_type
action find
entity Saint-Marcel-Campes
relation shares border with
type type of french administrative division
['Saint-Marcel-Campes', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?p WHERE { resource:Saint-Marcel-Campes property:shares_border_with ?p . ?p rdf:type ontology:type_of_french_administrative_division }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q635125
P19
Q502895
USER
Who were born at Cordes-sur-Ciel ?
(c(Q502895),P19,Q635125)
action filter_type
action find_reverse
entity Q635125
relation P19
type Q502895
[{'concept': 'Q502895'}, 'P19', 'Q635125']
SELECT DISTINCT ?w WHERE { ?w property:P19 resource:Q635125 . ?w rdf:type ontology:Q502895 }
Cordes-sur-Ciel
action filter_type
action find_reverse
entity Cordes-sur-Ciel
relation place of birth
type common name
[{'concept': 'common name'}, 'place of birth', 'Cordes-sur-Ciel']
SELECT DISTINCT ?w WHERE { ?w property:place_of_birth resource:Cordes-sur-Ciel . ?w rdf:type ontology:common_name }
[]
common name
Q2834572 Q5742020
SYSTEM
Alexis Littré, Camille Raynaud
Q2834572 Q5742020
(c(Q502895),P19,Q635125)
action filter_type
action find_reverse
entity Q635125
relation P19
type Q502895
[ANSWERS] were born at Cordes-sur-Ciel
[{'concept': 'Q502895'}, 'P19', 'Q635125']
SELECT DISTINCT ?w WHERE { ?w property:P19 resource:Q635125 . ?w rdf:type ontology:Q502895 }
Alexis Littré Camille Raynaud
Alexis Littré and Camille Raynaud were born at Cordes-sur-Ciel
Alexis Littré Camille Raynaud
action filter_type
action find_reverse
entity Cordes-sur-Ciel
relation place of birth
type common name
[{'concept': 'common name'}, 'place of birth', 'Cordes-sur-Ciel']
SELECT DISTINCT ?w WHERE { ?w property:place_of_birth resource:Cordes-sur-Ciel . ?w rdf:type ontology:common_name }
[]
Clarification
Simple Question|Single Entity|Indirect
Q2834572
P106
Q12737077
USER
What are the job of that person ?
(Q2834572,P106,c(Q12737077))
action filter_type
action find
entity Q2834572
relation P106
type Q12737077
['Q2834572', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?y WHERE { resource:Q2834572 property:P106 ?y . ?y rdf:type ontology:Q12737077 }
Alexis Littré
action filter_type
action find
entity Alexis Littré
relation occupation
type occupation
['Alexis Littré', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?y WHERE { resource:Alexis_Littré property:occupation ?y . ?y rdf:type ontology:occupation }
[]
occupation
Clarification for simple ques.
Q5742020
SYSTEM
Did you mean Camille Raynaud ?
Q2834572 Q5742020
(Q2834572,P106,c(Q12737077)) (Q5742020,P106,c(Q12737077))
[ANSWER]
['Q2834572', 'P106', {'concept': 'Q12737077'}] ['Q5742020', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?y WHERE { resource:Q2834572 property:P106 ?y . ?y rdf:type ontology:Q12737077 }
Alexis Littré Camille Raynaud
Did you mean Camille Raynaud ?
Camille Raynaud
['Alexis Littré', 'occupation', {'concept': 'occupation'}] ['Camille Raynaud', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?y WHERE { resource:Alexis_Littré property:occupation ?y . ?y rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
USER
No, I meant Alexis Littré. Could you tell me the answer for that?
(Q2834572,P106,c(Q12737077))
Q2834572
['Q2834572', 'P106', {'concept': 'Q12737077'}]
['Alexis Littré', 'occupation', {'concept': 'occupation'}]
[]
Q39631 Q1622272 Q15980158
SYSTEM
physician, university teacher, non-fiction writer
Q39631 Q1622272 Q15980158
(Q2834572,P106,c(Q12737077))
action filter_type
action find
entity Q2834572
relation P106
type Q12737077
The job of that person are a [ANSWERS]
['Q2834572', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?y WHERE { resource:Q2834572 property:P106 ?y . ?y rdf:type ontology:Q12737077 }
physician university teacher non-fiction writer
The job of that person are a physician, university teacher and non-fiction writer
physician university teacher non-fiction writer
action filter_type
action find
entity Alexis Littré
relation occupation
type occupation
['Alexis Littré', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?y WHERE { resource:Alexis_Littré property:occupation ?y . ?y rdf:type ontology:occupation }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q39631
P921
Q571 Q838948
USER
How many books or works of art were primarily based on physician ?
(c(Q571),P921,Q39631) (c(Q838948),P921,Q39631)
action count
action union
action filter_type
action find_reverse
entity Q39631
relation P921
type Q571
action filter_type
action find_reverse
entity Q39631
relation P921
type Q838948
[{'concept': 'Q571'}, 'P921', 'Q39631'] [{'concept': 'Q838948'}, 'P921', 'Q39631']
SELECT DISTINCT ( COUNT ( ?e ) AS ?j ) WHERE { { ?e rdf:type ontology:Q571 . ?e property:P921 resource:Q39631 } UNION { ?e property:P921 resource:Q39631 . ?e rdf:type ontology:Q838948 } }
physician
action count
action union
action filter_type
action find_reverse
entity physician
relation main subject
type book
action filter_type
action find_reverse
entity physician
relation main subject
type work of art
[{'concept': 'book'}, 'main subject', 'physician'] [{'concept': 'work of art'}, 'main subject', 'physician']
SELECT DISTINCT ( COUNT ( ?e ) AS ?j ) WHERE { { ?e rdf:type ontology:book . ?e property:main_subject resource:physician } UNION { ?e property:main_subject resource:physician . ?e rdf:type ontology:work_of_art } }
[]
book work of art
SYSTEM
2
Q847709 Q19037977
(c(Q571),P921,Q39631) (c(Q838948),P921,Q39631)
action count
action union
action filter_type
action find_reverse
entity Q39631
relation P921
type Q571
action filter_type
action find_reverse
entity Q39631
relation P921
type Q838948
[ANSWER]
[{'concept': 'Q571'}, 'P921', 'Q39631'] [{'concept': 'Q838948'}, 'P921', 'Q39631']
SELECT DISTINCT ( COUNT ( ?e ) AS ?j ) WHERE { { ?e rdf:type ontology:Q571 . ?e property:P921 resource:Q39631 } UNION { ?e property:P921 resource:Q39631 . ?e rdf:type ontology:Q838948 } }
Red Beard American Medical Biographies
2
action count
action union
action filter_type
action find_reverse
entity physician
relation main subject
type book
action filter_type
action find_reverse
entity physician
relation main subject
type work of art
[{'concept': 'book'}, 'main subject', 'physician'] [{'concept': 'work of art'}, 'main subject', 'physician']
SELECT DISTINCT ( COUNT ( ?e ) AS ?j ) WHERE { { ?e rdf:type ontology:book . ?e property:main_subject resource:physician } UNION { ?e property:main_subject resource:physician . ?e rdf:type ontology:work_of_art } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q635125
P1376
Q20667921
USER
Which french administrative division has Cordes-sur-Ciel has its first city ?
(Q635125,P1376,c(Q20667921))
action filter_type
action find
entity Q635125
relation P1376
type Q20667921
['Q635125', 'P1376', {'concept': 'Q20667921'}]
SELECT DISTINCT ?j WHERE { resource:Q635125 property:P1376 ?j . ?j rdf:type ontology:Q20667921 }
Cordes-sur-Ciel
action filter_type
action find
entity Cordes-sur-Ciel
relation capital of
type type of french administrative division
['Cordes-sur-Ciel', 'capital of', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?j WHERE { resource:Cordes-sur-Ciel property:capital_of ?j . ?j rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q1725037
SYSTEM
canton of Cordes-sur-Ciel
Q1725037
(Q635125,P1376,c(Q20667921))
action filter_type
action find
entity Q635125
relation P1376
type Q20667921
[ANSWER] has Cordes-sur-Ciel has its first city
['Q635125', 'P1376', {'concept': 'Q20667921'}]
SELECT DISTINCT ?j WHERE { resource:Q635125 property:P1376 ?j . ?j rdf:type ontology:Q20667921 }
canton of Cordes-sur-Ciel
Canton of Cordes-sur-Ciel has Cordes-sur-Ciel has its first city
canton of Cordes-sur-Ciel
action filter_type
action find
entity Cordes-sur-Ciel
relation capital of
type type of french administrative division
['Cordes-sur-Ciel', 'capital of', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?j WHERE { resource:Cordes-sur-Ciel property:capital_of ?j . ?j rdf:type ontology:type_of_french_administrative_division }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q1725037 Q205576
P1376
Q20667921
USER
Is Châtellerault center of administration for that one ?
(Q205576,P1376,Q1725037)
action is_in
entity Q205576
action find
entity Q1725037
relation P1376
['Q205576', 'P1376', 'Q1725037']
ASK WHERE { resource:Q1725037 property:P1376 resource:Q205576 }
canton of Cordes-sur-Ciel Châtellerault
action is_in
entity Châtellerault
action find
entity canton of Cordes-sur-Ciel
relation capital of
['Châtellerault', 'capital of', 'canton of Cordes-sur-Ciel']
ASK WHERE { resource:canton_of_Cordes-sur-Ciel property:capital_of resource:Châtellerault }
[]
type of french administrative division
SYSTEM
NO
(Q205576,P1376,Q1725037)
action is_in
entity Q205576
action find
entity Q1725037
relation P1376
[ANSWER]
['Q205576', 'P1376', 'Q1725037']
ASK WHERE { resource:Q1725037 property:P1376 resource:Q205576 }
No
action is_in
entity Châtellerault
action find
entity canton of Cordes-sur-Ciel
relation capital of
['Châtellerault', 'capital of', 'canton of Cordes-sur-Ciel']
ASK WHERE { resource:canton_of_Cordes-sur-Ciel property:capital_of resource:Châtellerault }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q1465737 Q1390374
P47
Q20667921
USER
Which french administrative divisions are next to the border of Salles or Rosey ?
OR((c(Q20667921),P47,Q1390374), (c(Q20667921),P47,Q1465737))
action filter_type
action union
action find_reverse
entity Q1390374
relation P47
action find_reverse
entity Q1465737
relation P47
type Q20667921
{'OR': [[{'concept': 'Q20667921'}, 'P47', 'Q1390374'], [{'concept': 'Q20667921'}, 'P47', 'Q1465737']]}
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q20667921 . { { ?w property:P47 resource:Q1390374 } UNION { ?w property:P47 resource:Q1465737 } } }
Rosey Salles
action filter_type
action union
action find_reverse
entity Salles
relation shares border with
action find_reverse
entity Rosey
relation shares border with
type type of french administrative division
{'OR': [[{'concept': 'type of french administrative division'}, 'shares border with', 'Salles'], [{'concept': 'type of french administrative division'}, 'shares border with', 'Rosey']]}
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:type_of_french_administrative_division . { { ?w property:shares_border_with resource:Salles } UNION { ?w property:shares_border_with resource:Rosey } } }
[]
type of french administrative division
Q1424750 Q1424743 Q1173461 Q513458 Q902613 Q902972 Q1466902 Q1390545 Q734114
SYSTEM
Granges, Moroges, Bissey-sous-Cruchaud, Le Ségur, Saint-Désert, Monestiés, Livers-Cazelles, Virac, Saint-Marcel-Campes
Q1424750 Q1424743 Q1173461 Q513458 Q902613 Q902972 Q1466902 Q1390545 Q734114
OR((c(Q20667921),P47,Q1390374), (c(Q20667921),P47,Q1465737))
action filter_type
action union
action find_reverse
entity Q1390374
relation P47
action find_reverse
entity Q1465737
relation P47
type Q20667921
[ANSWERS] are next to the border of Salles or Rosey
{'OR': [[{'concept': 'Q20667921'}, 'P47', 'Q1390374'], [{'concept': 'Q20667921'}, 'P47', 'Q1465737']]}
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q20667921 . { { ?w property:P47 resource:Q1390374 } UNION { ?w property:P47 resource:Q1465737 } } }
Granges Moroges Bissey-sous-Cruchaud Le Ségur Saint-Désert Monestiés Livers-Cazelles Virac Saint-Marcel-Campes
Granges, Moroges, Bissey-sous-Cruchaud, Le Ségur, Saint-Désert, Monestiés, Livers-Cazelles, Virac and Saint-Marcel-Campes are next to the border of Salles or Rosey
Granges Moroges Bissey-sous-Cruchaud Le Ségur Saint-Désert Monestiés Livers-Cazelles Virac Saint-Marcel-Campes
action filter_type
action union
action find_reverse
entity Salles
relation shares border with
action find_reverse
entity Rosey
relation shares border with
type type of french administrative division
{'OR': [[{'concept': 'type of french administrative division'}, 'shares border with', 'Salles'], [{'concept': 'type of french administrative division'}, 'shares border with', 'Rosey']]}
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:type_of_french_administrative_division . { { ?w property:shares_border_with resource:Salles } UNION { ?w property:shares_border_with resource:Rosey } } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q902972
P36
Q20667921
USER
Which french administrative division has that one as its administrative centre ?
(c(Q20667921),P36,Q902972)
action filter_type
action find_reverse
entity Q902972
relation P36
type Q20667921
[{'concept': 'Q20667921'}, 'P36', 'Q902972']
SELECT DISTINCT ?m WHERE { ?m property:P36 resource:Q902972 . ?m rdf:type ontology:Q20667921 }
Monestiés
action filter_type
action find_reverse
entity Monestiés
relation capital
type type of french administrative division
[{'concept': 'type of french administrative division'}, 'capital', 'Monestiés']
SELECT DISTINCT ?m WHERE { ?m property:capital resource:Monestiés . ?m rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Clarification for simple ques.
Q902972
SYSTEM
Did you mean Monestiés ?
Q1424750 Q1424743 Q1173461 Q513458 Q902613 Q902972 Q1466902 Q1390545 Q734114
(c(Q20667921),P36,Q1424750) (c(Q20667921),P36,Q1424743) (c(Q20667921),P36,Q1173461) (c(Q20667921),P36,Q513458) (c(Q20667921),P36,Q902613) (c(Q20667921),P36,Q902972) (c(Q20667921),P36,Q1466902) (c(Q20667921),P36,Q1390545) (c(Q20667921),P36,Q734114)
[ANSWER]
[{'concept': 'Q20667921'}, 'P36', 'Q1424750'] [{'concept': 'Q20667921'}, 'P36', 'Q1424743'] [{'concept': 'Q20667921'}, 'P36', 'Q1173461'] [{'concept': 'Q20667921'}, 'P36', 'Q513458'] [{'concept': 'Q20667921'}, 'P36', 'Q902613'] [{'concept': 'Q20667921'}, 'P36', 'Q902972'] [{'concept': 'Q20667921'}, 'P36', 'Q1466902'] [{'concept': 'Q20667921'}, 'P36', 'Q1390545'] [{'concept': 'Q20667921'}, 'P36', 'Q734114']
SELECT DISTINCT ?m WHERE { ?m property:P36 resource:Q902972 . ?m rdf:type ontology:Q20667921 }
Granges Moroges Bissey-sous-Cruchaud Le Ségur Saint-Désert Monestiés Livers-Cazelles Virac Saint-Marcel-Campes
Did you mean Monestiés ?
Monestiés
[{'concept': 'type of french administrative division'}, 'capital', 'Granges'] [{'concept': 'type of french administrative division'}, 'capital', 'Moroges'] [{'concept': 'type of french administrative division'}, 'capital', 'Bissey-sous-Cruchaud'] [{'concept': 'type of french administrative division'}, 'capital', 'Le Ségur'] [{'concept': 'type of french administrative division'}, 'capital', 'Saint-Désert'] [{'concept': 'type of french administrative division'}, 'capital', 'Monestiés'] [{'concept': 'type of french administrative division'}, 'capital', 'Livers-Cazelles'] [{'concept': 'type of french administrative division'}, 'capital', 'Virac'] [{'concept': 'type of french administrative division'}, 'capital', 'Saint-Marcel-Campes']
SELECT DISTINCT ?m WHERE { ?m property:capital resource:Monestiés . ?m rdf:type ontology:type_of_french_administrative_division }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q20667921),P36,Q902972)
[{'concept': 'Q20667921'}, 'P36', 'Q902972']
[{'concept': 'type of french administrative division'}, 'capital', 'Monestiés']
[]
Q1726268
SYSTEM
canton of Monestiés
Q1726268
(c(Q20667921),P36,Q902972)
action filter_type
action find_reverse
entity Q902972
relation P36
type Q20667921
The [ANSWER] has that one as its administrative centre
[{'concept': 'Q20667921'}, 'P36', 'Q902972']
SELECT DISTINCT ?m WHERE { ?m property:P36 resource:Q902972 . ?m rdf:type ontology:Q20667921 }
canton of Monestiés
The canton of Monestiés has that one as its administrative centre
canton of Monestiés
action filter_type
action find_reverse
entity Monestiés
relation capital
type type of french administrative division
[{'concept': 'type of french administrative division'}, 'capital', 'Monestiés']
SELECT DISTINCT ?m WHERE { ?m property:capital resource:Monestiés . ?m rdf:type ontology:type_of_french_administrative_division }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q7555318 Q635125
P17
Q15617994
USER
Which administrative territories are Cordes-sur-Ciel or Sokouno a part of ?
OR((Q635125,P17,c(Q15617994)), (Q7555318,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q635125
relation P17
action find
entity Q7555318
relation P17
type Q15617994
{'OR': [['Q635125', 'P17', {'concept': 'Q15617994'}], ['Q7555318', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?c WHERE { { { resource:Q7555318 property:P17 ?c } UNION { resource:Q635125 property:P17 ?c } } . ?c rdf:type ontology:Q15617994 }
Sokouno Cordes-sur-Ciel
action filter_type
action union
action find
entity Cordes-sur-Ciel
relation country
action find
entity Sokouno
relation country
type designation for an administrative territorial entity
{'OR': [['Cordes-sur-Ciel', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Sokouno', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?c WHERE { { { resource:Sokouno property:country ?c } UNION { resource:Cordes-sur-Ciel property:country ?c } } . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142 Q962
SYSTEM
France, Benin
Q142 Q962
OR((Q635125,P17,c(Q15617994)), (Q7555318,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q635125
relation P17
action find
entity Q7555318
relation P17
type Q15617994
[ANSWERS] are Cordes-sur-Ciel or Sokouno a part of
{'OR': [['Q635125', 'P17', {'concept': 'Q15617994'}], ['Q7555318', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?c WHERE { { { resource:Q7555318 property:P17 ?c } UNION { resource:Q635125 property:P17 ?c } } . ?c rdf:type ontology:Q15617994 }
France Benin
France and Benin are Cordes-sur-Ciel or Sokouno a part of
France Benin
action filter_type
action union
action find
entity Cordes-sur-Ciel
relation country
action find
entity Sokouno
relation country
type designation for an administrative territorial entity
{'OR': [['Cordes-sur-Ciel', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Sokouno', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?c WHERE { { { resource:Sokouno property:country ?c } UNION { resource:Cordes-sur-Ciel property:country ?c } } . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]