Simple Question (Direct)
Simple Question
Q242000
P47
Q15617994
USER
Which administrative territories have a shared border with Carpineto Romano ?
(Q242000,P47,c(Q15617994))
action filter_type
action find
entity Q242000
relation P47
type Q15617994
['Q242000', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ?w WHERE { resource:Q242000 property:P47 ?w . ?w rdf:type ontology:Q15617994 }
Carpineto Romano
action filter_type
action find
entity Carpineto Romano
relation shares border with
type designation for an administrative territorial entity
['Carpineto Romano', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { resource:Carpineto_Romano property:shares_border_with ?w . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q117395 Q128206 Q242980
SYSTEM
Supino, Sezze, Montelanico
Q128103 Q128119 Q128206 Q117395 Q242980 Q128161 Q128057 Q242698
(Q242000,P47,c(Q15617994))
action filter_type
action find
entity Q242000
relation P47
type Q15617994
[ANSWERS] have a shared border with Carpineto Romano
['Q242000', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ?w WHERE { resource:Q242000 property:P47 ?w . ?w rdf:type ontology:Q15617994 }
Maenza Norma, Lazio Sezze Supino Montelanico Roccagorga Bassiano Gorga
Supino, Sezze and Montelanico have a shared border with Carpineto Romano
Supino Sezze Montelanico
action filter_type
action find
entity Carpineto Romano
relation shares border with
type designation for an administrative territorial entity
['Carpineto Romano', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { resource:Carpineto_Romano property:shares_border_with ?w . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q242000
P17
Q15617994
USER
Which administrative territory does Carpineto Romano belong to ?
(Q242000,P17,c(Q15617994))
action filter_type
action find
entity Q242000
relation P17
type Q15617994
['Q242000', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q15617994 . resource:Q242000 property:P17 ?w }
Carpineto Romano
action filter_type
action find
entity Carpineto Romano
relation country
type designation for an administrative territorial entity
['Carpineto Romano', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Carpineto_Romano property:country ?w }
[]
designation for an administrative territorial entity
Q38
SYSTEM
Italy
Q38
(Q242000,P17,c(Q15617994))
action filter_type
action find
entity Q242000
relation P17
type Q15617994
Carpineto Romano belongs to [ANSWER]
['Q242000', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q15617994 . resource:Q242000 property:P17 ?w }
Italy
Carpineto Romano belongs to Italy
Italy
action filter_type
action find
entity Carpineto Romano
relation country
type designation for an administrative territorial entity
['Carpineto Romano', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Carpineto_Romano property:country ?w }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q953548
Q15617994
USER
And also tell me about Négresse?
(Q953548,P17,c(Q15617994))
action filter_type
action find
entity Q953548
relation P17
type Q15617994
['Q953548', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?l WHERE { resource:Q953548 property:P17 ?l . ?l rdf:type ontology:Q15617994 }
Négresse
action filter_type
action find
entity Négresse
relation country
type designation for an administrative territorial entity
['Négresse', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { resource:Négresse property:country ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142
SYSTEM
France
Q142
(Q953548,P17,c(Q15617994))
action filter_type
action find
entity Q953548
relation P17
type Q15617994
[ANSWER]
['Q953548', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?l WHERE { resource:Q953548 property:P17 ?l . ?l rdf:type ontology:Q15617994 }
France
France
action filter_type
action find
entity Négresse
relation country
type designation for an administrative territorial entity
['Négresse', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { resource:Négresse property:country ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q1048835
USER
Which political territories have diplomatic relations with atleast 117 administrative territories ?
(c(Q1048835),P530,c(Q15617994))
action atleast
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 117
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?x ) AS ?t ) WHERE { ?m property:P530 ?x . ?m rdf:type ontology:Q1048835 . ?x rdf:type ontology:Q15617994 } GROUP BY ?m } . FILTER ( ?t >= 117 ) }
action atleast
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 117
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?x ) AS ?t ) WHERE { ?m property:diplomatic_relation ?x . ?m rdf:type ontology:political_territorial_entity . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?m } . FILTER ( ?t >= 117 ) }
[]
designation for an administrative territorial entity political territorial entity
Q183
SYSTEM
Germany
Q183
(c(Q1048835),P530,c(Q15617994))
action atleast
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 117
[ANSWER] have diplomatic relations with atleast 117 administrative territories
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?x ) AS ?t ) WHERE { ?m property:P530 ?x . ?m rdf:type ontology:Q1048835 . ?x rdf:type ontology:Q15617994 } GROUP BY ?m } . FILTER ( ?t >= 117 ) }
Germany
Germany have diplomatic relations with atleast 117 administrative territories
Germany
action atleast
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 117
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?x ) AS ?t ) WHERE { ?m property:diplomatic_relation ?x . ?m rdf:type ontology:political_territorial_entity . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?m } . FILTER ( ?t >= 117 ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q183
P138
Q82794 Q484652
USER
How many geographic regions or international organizations are the etymology of Germany ?
(Q183,P138,c(Q82794)) (Q183,P138,c(Q484652))
action count
action union
action filter_type
action find
entity Q183
relation P138
type Q82794
action filter_type
action find
entity Q183
relation P138
type Q484652
['Q183', 'P138', {'concept': 'Q82794'}] ['Q183', 'P138', {'concept': 'Q484652'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?y ) WHERE { ?i rdf:type ?w . VALUES ( ?w ) { ( ontology:Q82794 ) ( ontology:Q484652 ) } }
Germany
action count
action union
action filter_type
action find
entity Germany
relation named after
type geographic region
action filter_type
action find
entity Germany
relation named after
type international organization
['Germany', 'named after', {'concept': 'geographic region'}] ['Germany', 'named after', {'concept': 'international organization'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?y ) WHERE { ?i rdf:type ?w . VALUES ( ?w ) { ( ontology:geographic_region ) ( ontology:international_organization ) } }
[]
geographic region international organization
SYSTEM
2
Q62646 Q132990
(Q183,P138,c(Q82794)) (Q183,P138,c(Q484652))
action count
action union
action filter_type
action find
entity Q183
relation P138
type Q82794
action filter_type
action find
entity Q183
relation P138
type Q484652
[ANSWER]
['Q183', 'P138', {'concept': 'Q82794'}] ['Q183', 'P138', {'concept': 'Q484652'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?y ) WHERE { ?i rdf:type ?w . VALUES ( ?w ) { ( ontology:Q82794 ) ( ontology:Q484652 ) } }
Germania Alamanni
2
action count
action union
action filter_type
action find
entity Germany
relation named after
type geographic region
action filter_type
action find
entity Germany
relation named after
type international organization
['Germany', 'named after', {'concept': 'geographic region'}] ['Germany', 'named after', {'concept': 'international organization'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?y ) WHERE { ?i rdf:type ?w . VALUES ( ?w ) { ( ontology:geographic_region ) ( ontology:international_organization ) } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q142
P276
Q15259995 Q350604
USER
How many recurring tournaments or armed conflicts are located at France ?
(c(Q15259995),P276,Q142) (c(Q350604),P276,Q142)
action count
action union
action filter_type
action find_reverse
entity Q142
relation P276
type Q15259995
action filter_type
action find_reverse
entity Q142
relation P276
type Q350604
[{'concept': 'Q15259995'}, 'P276', 'Q142'] [{'concept': 'Q350604'}, 'P276', 'Q142']
SELECT DISTINCT ( COUNT ( ?n ) AS ?y ) WHERE { ?n rdf:type ?w . VALUES ( ?w ) { ( ontology:Q15259995 ) ( ontology:Q350604 ) } }
France
action count
action union
action filter_type
action find_reverse
entity France
relation location
type recurring tournament
action filter_type
action find_reverse
entity France
relation location
type armed conflict
[{'concept': 'recurring tournament'}, 'location', 'France'] [{'concept': 'armed conflict'}, 'location', 'France']
SELECT DISTINCT ( COUNT ( ?n ) AS ?y ) WHERE { ?n rdf:type ?w . VALUES ( ?w ) { ( ontology:recurring_tournament ) ( ontology:armed_conflict ) } }
[]
recurring tournament armed conflict
SYSTEM
2
Q542737 Q12551
(c(Q15259995),P276,Q142) (c(Q350604),P276,Q142)
action count
action union
action filter_type
action find_reverse
entity Q142
relation P276
type Q15259995
action filter_type
action find_reverse
entity Q142
relation P276
type Q350604
[ANSWER]
[{'concept': 'Q15259995'}, 'P276', 'Q142'] [{'concept': 'Q350604'}, 'P276', 'Q142']
SELECT DISTINCT ( COUNT ( ?n ) AS ?y ) WHERE { ?n rdf:type ?w . VALUES ( ?w ) { ( ontology:Q15259995 ) ( ontology:Q350604 ) } }
2017 World Men's Handball Championship Hundred Years' War
2
action count
action union
action filter_type
action find_reverse
entity France
relation location
type recurring tournament
action filter_type
action find_reverse
entity France
relation location
type armed conflict
[{'concept': 'recurring tournament'}, 'location', 'France'] [{'concept': 'armed conflict'}, 'location', 'France']
SELECT DISTINCT ( COUNT ( ?n ) AS ?y ) WHERE { ?n rdf:type ?w . VALUES ( ?w ) { ( ontology:recurring_tournament ) ( ontology:armed_conflict ) } }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q4777986 Q242000
P190 P740
Q15617994
USER
Which administrative territories are twin towns of Carpineto Romano or did Anvil Publishing orginate in ?
OR((Q242000,P190,c(Q15617994)), (Q4777986,P740,c(Q15617994)))
action filter_type
action union
action find
entity Q242000
relation P190
action find
entity Q4777986
relation P740
type Q15617994
{'OR': [['Q242000', 'P190', {'concept': 'Q15617994'}], ['Q4777986', 'P740', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Q242000 property:P190 ?z } UNION { resource:Q4777986 property:P740 ?z } } . ?z rdf:type ontology:Q15617994 }
Anvil Publishing Carpineto Romano
action filter_type
action union
action find
entity Carpineto Romano
relation sister city
action find
entity Anvil Publishing
relation location of formation
type designation for an administrative territorial entity
{'OR': [['Carpineto Romano', 'sister city', {'concept': 'designation for an administrative territorial entity'}], ['Anvil Publishing', 'location of formation', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Carpineto_Romano property:sister_city ?z } UNION { resource:Anvil_Publishing property:location_of_formation ?z } } . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q20384 Q928
SYSTEM
Cascia, Philippines
Q20384 Q928
OR((Q242000,P190,c(Q15617994)), (Q4777986,P740,c(Q15617994)))
action filter_type
action union
action find
entity Q242000
relation P190
action find
entity Q4777986
relation P740
type Q15617994
[ANSWERS] are twin towns of Carpineto Romano or did Anvil Publishing orginate in
{'OR': [['Q242000', 'P190', {'concept': 'Q15617994'}], ['Q4777986', 'P740', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Q242000 property:P190 ?z } UNION { resource:Q4777986 property:P740 ?z } } . ?z rdf:type ontology:Q15617994 }
Cascia Philippines
Cascia and Philippines are twin towns of Carpineto Romano or did Anvil Publishing orginate in
Cascia Philippines
action filter_type
action union
action find
entity Carpineto Romano
relation sister city
action find
entity Anvil Publishing
relation location of formation
type designation for an administrative territorial entity
{'OR': [['Carpineto Romano', 'sister city', {'concept': 'designation for an administrative territorial entity'}], ['Anvil Publishing', 'location of formation', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Carpineto_Romano property:sister_city ?z } UNION { resource:Anvil_Publishing property:location_of_formation ?z } } . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q6581097 Q242000
P19 P21
Q502895
USER
Which people were born at Carpineto Romano and are a male ?
AND((c(Q502895),P19,Q242000), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q242000
relation P19
action find_reverse
entity Q6581097
relation P21
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P19', 'Q242000'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?t WHERE { ?t property:P19 resource:Q242000 . ?t property:P21 resource:Q6581097 . ?t rdf:type ontology:Q502895 }
male Carpineto Romano
action filter_type
action intersection
action find_reverse
entity Carpineto Romano
relation place of birth
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'place of birth', 'Carpineto Romano'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?t WHERE { ?t property:place_of_birth resource:Carpineto_Romano . ?t property:gender resource:male . ?t rdf:type ontology:common_name }
[]
common name
Q43922 Q15465052 Q3713255 Q1332564
SYSTEM
Leo XIII, Renzo Carella, Domenico Stella, Giuseppe Pecci
Q43922 Q15465052 Q3713255 Q1332564
AND((c(Q502895),P19,Q242000), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q242000
relation P19
action find_reverse
entity Q6581097
relation P21
type Q502895
[ANSWERS] were born at Carpineto Romano and are a male
{'AND': [[{'concept': 'Q502895'}, 'P19', 'Q242000'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?t WHERE { ?t property:P19 resource:Q242000 . ?t property:P21 resource:Q6581097 . ?t rdf:type ontology:Q502895 }
Leo XIII Renzo Carella Domenico Stella Giuseppe Pecci
Leo XIII, Renzo Carella, Domenico Stella and Giuseppe Pecci were born at Carpineto Romano and are a male
Leo XIII Renzo Carella Domenico Stella Giuseppe Pecci
action filter_type
action intersection
action find_reverse
entity Carpineto Romano
relation place of birth
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'place of birth', 'Carpineto Romano'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?t WHERE { ?t property:place_of_birth resource:Carpineto_Romano . ?t property:gender resource:male . ?t rdf:type ontology:common_name }
[]
Clarification
Quantitative|Count|Single entity type|Indirect
P50
Q234460
USER
How many texts were written by that person ?
(c(Q234460),P50,Q43922)
[{'concept': 'Q234460'}, 'P50', 'Q43922']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:Q482980 resource:Q43922 . ?z rdf:type ontology:Q234460 }
[{'concept': 'text'}, 'author', 'Leo XIII']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:author resource:Leo_XIII . ?z rdf:type ontology:text }
[]
text
Quantitative|Count|Single entity type|Clarification
Q15465052
SYSTEM
Did you mean Renzo Carella ?
(c(Q234460),P50,Q43922) (c(Q234460),P50,Q15465052) (c(Q234460),P50,Q3713255) (c(Q234460),P50,Q1332564)
[ANSWER]
[{'concept': 'Q234460'}, 'P50', 'Q43922'] [{'concept': 'Q234460'}, 'P50', 'Q15465052'] [{'concept': 'Q234460'}, 'P50', 'Q3713255'] [{'concept': 'Q234460'}, 'P50', 'Q1332564']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:Q482980 resource:Q43922 . ?z rdf:type ontology:Q234460 }
Did you mean Renzo Carella ?
Renzo Carella
[{'concept': 'text'}, 'author', 'Leo XIII'] [{'concept': 'text'}, 'author', 'Renzo Carella'] [{'concept': 'text'}, 'author', 'Domenico Stella'] [{'concept': 'text'}, 'author', 'Giuseppe Pecci']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:author resource:Leo_XIII . ?z rdf:type ontology:text }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Leo XIII. Could you tell me the answer for that?
(c(Q234460),P50,Q43922)
Q43922
[{'concept': 'Q234460'}, 'P50', 'Q43922']
[{'concept': 'text'}, 'author', 'Leo XIII']
[]
SYSTEM
2
Q729168 Q1223180
(c(Q234460),P50,Q43922)
[ANSWER]
[{'concept': 'Q234460'}, 'P50', 'Q43922']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:Q482980 resource:Q43922 . ?z rdf:type ontology:Q234460 }
Etsi Nos Octobri Mense
2
[{'concept': 'text'}, 'author', 'Leo XIII']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:author resource:Leo_XIII . ?z rdf:type ontology:text }
[]