Simple Question (Direct)
Simple Question
Q581258
P22
Q502895
USER
Which male person has a child named Bartolomeo Borghesi ?
(Q581258,P22,c(Q502895))
action filter_type
action find
entity Q581258
relation P22
type Q502895
['Q581258', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q502895 . resource:Q581258 property:P22 ?b }
Bartolomeo Borghesi
action filter_type
action find
entity Bartolomeo Borghesi
relation father
type common name
['Bartolomeo Borghesi', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:common_name . resource:Bartolomeo_Borghesi property:father ?b }
[]
common name
Q22250508
SYSTEM
Pietro Borghesi
Q22250508
(Q581258,P22,c(Q502895))
action filter_type
action find
entity Q581258
relation P22
type Q502895
As [ANSWER] has a child named Bartolomeo Borghesi
['Q581258', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q502895 . resource:Q581258 property:P22 ?b }
Pietro Borghesi
As Pietro Borghesi has a child named Bartolomeo Borghesi
Pietro Borghesi
action filter_type
action find
entity Bartolomeo Borghesi
relation father
type common name
['Bartolomeo Borghesi', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:common_name . resource:Bartolomeo_Borghesi property:father ?b }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q581258
P20
Q15617994
USER
Where did the expiration of Bartolomeo Borghesi occur ?
(Q581258,P20,c(Q15617994))
action filter_type
action find
entity Q581258
relation P20
type Q15617994
['Q581258', 'P20', {'concept': 'Q15617994'}]
SELECT DISTINCT ?l WHERE { resource:Q581258 property:P20 ?l . ?l rdf:type ontology:Q15617994 }
Bartolomeo Borghesi
action filter_type
action find
entity Bartolomeo Borghesi
relation place of death
type designation for an administrative territorial entity
['Bartolomeo Borghesi', 'place of death', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { resource:Bartolomeo_Borghesi property:place_of_death ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q238
SYSTEM
San Marino
Q238
(Q581258,P20,c(Q15617994))
action filter_type
action find
entity Q581258
relation P20
type Q15617994
The expiration of Bartolomeo Borghesi occurred in [ANSWER]
['Q581258', 'P20', {'concept': 'Q15617994'}]
SELECT DISTINCT ?l WHERE { resource:Q581258 property:P20 ?l . ?l rdf:type ontology:Q15617994 }
San Marino
The expiration of Bartolomeo Borghesi occurred in San Marino
San Marino
action filter_type
action find
entity Bartolomeo Borghesi
relation place of death
type designation for an administrative territorial entity
['Bartolomeo Borghesi', 'place of death', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { resource:Bartolomeo_Borghesi property:place_of_death ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q238
P159
Q43229
USER
Which organization has its head office location at that administrative territory ?
(c(Q43229),P159,Q238)
action filter_type
action find_reverse
entity Q238
relation P159
type Q43229
[{'concept': 'Q43229'}, 'P159', 'Q238']
SELECT DISTINCT ?w WHERE { ?w property:P159 resource:Q238 . ?w rdf:type ontology:Q43229 }
San Marino
action filter_type
action find_reverse
entity San Marino
relation headquarters location
type organization
[{'concept': 'organization'}, 'headquarters location', 'San Marino']
SELECT DISTINCT ?w WHERE { ?w property:headquarters_location resource:San_Marino . ?w rdf:type ontology:organization }
[]
organization
Q3661910
SYSTEM
Cassa di Risparmio della Repubblica di San Marino
Q3661910
(c(Q43229),P159,Q238)
action filter_type
action find_reverse
entity Q238
relation P159
type Q43229
[ANSWER] has its head office location at that administrative territory
[{'concept': 'Q43229'}, 'P159', 'Q238']
SELECT DISTINCT ?w WHERE { ?w property:P159 resource:Q238 . ?w rdf:type ontology:Q43229 }
Cassa di Risparmio della Repubblica di San Marino
Cassa di Risparmio della Repubblica di San Marino has its head office location at that administrative territory
Cassa di Risparmio della Repubblica di San Marino
action filter_type
action find_reverse
entity San Marino
relation headquarters location
type organization
[{'concept': 'organization'}, 'headquarters location', 'San Marino']
SELECT DISTINCT ?w WHERE { ?w property:headquarters_location resource:San_Marino . ?w rdf:type ontology:organization }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3661910
P740
Q56061
USER
Which administrative territory is the location of formation of that organization ?
(Q3661910,P740,c(Q56061))
action filter_type
action find
entity Q3661910
relation P740
type Q56061
['Q3661910', 'P740', {'concept': 'Q56061'}]
SELECT DISTINCT ?l WHERE { resource:Q3661910 property:P740 ?l . ?l rdf:type ontology:Q56061 }
Cassa di Risparmio della Repubblica di San Marino
action filter_type
action find
entity Cassa di Risparmio della Repubblica di San Marino
relation location of formation
type administrative territorial entity
['Cassa di Risparmio della Repubblica di San Marino', 'location of formation', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { resource:Cassa_di_Risparmio_della_Repubblica_di_San_Marino property:location_of_formation ?l . ?l rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1848
SYSTEM
San Marino
Q1848
(Q3661910,P740,c(Q56061))
action filter_type
action find
entity Q3661910
relation P740
type Q56061
[ANSWER] is the location of formation of that organization
['Q3661910', 'P740', {'concept': 'Q56061'}]
SELECT DISTINCT ?l WHERE { resource:Q3661910 property:P740 ?l . ?l rdf:type ontology:Q56061 }
San Marino
San Marino is the location of formation of that organization
San Marino
action filter_type
action find
entity Cassa di Risparmio della Repubblica di San Marino
relation location of formation
type administrative territorial entity
['Cassa di Risparmio della Repubblica di San Marino', 'location of formation', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { resource:Cassa_di_Risparmio_della_Repubblica_di_San_Marino property:location_of_formation ?l . ?l rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1848
P36
Q15617994
USER
Which administrative territory has that administrative territory as its capital ?
(c(Q15617994),P36,Q1848)
action filter_type
action find_reverse
entity Q1848
relation P36
type Q15617994
[{'concept': 'Q15617994'}, 'P36', 'Q1848']
SELECT DISTINCT ?l WHERE { ?l property:P36 resource:Q1848 . ?l rdf:type ontology:Q15617994 }
San Marino
action filter_type
action find_reverse
entity San Marino
relation capital
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'capital', 'San Marino']
SELECT DISTINCT ?l WHERE { ?l property:capital resource:San_Marino . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q238
SYSTEM
San Marino
Q238
(c(Q15617994),P36,Q1848)
action filter_type
action find_reverse
entity Q1848
relation P36
type Q15617994
The [ANSWER] has that administrative territory as its capital
[{'concept': 'Q15617994'}, 'P36', 'Q1848']
SELECT DISTINCT ?l WHERE { ?l property:P36 resource:Q1848 . ?l rdf:type ontology:Q15617994 }
San Marino
The San Marino has that administrative territory as its capital
San Marino
action filter_type
action find_reverse
entity San Marino
relation capital
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'capital', 'San Marino']
SELECT DISTINCT ?l WHERE { ?l property:capital resource:San_Marino . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q16
P530
Q15617994 Q1048835
USER
How many political territories have diplomatic associations with less number of administrative territories than Canada ?
(c(Q1048835),P530,c(Q15617994))
action count
action less
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q16
relation P530
type Q15617994
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?g ) WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?r ) WHERE { resource:Q16 property:P530 ?n . ?n rdf:type ontology:Q15617994 } } . FILTER ( ?f < ?r ) . { SELECT DISTINCT ?a ( COUNT ( ?l ) AS ?f ) WHERE { ?a property:P530 ?l . ?a rdf:type ontology:Q1048835 . ?l rdf:type ontology:Q15617994 } GROUP BY ?a } }
Canada
action count
action less
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Canada
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?g ) WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?r ) WHERE { resource:Canada property:diplomatic_relation ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?f < ?r ) . { SELECT DISTINCT ?a ( COUNT ( ?l ) AS ?f ) WHERE { ?a property:diplomatic_relation ?l . ?a rdf:type ontology:political_territorial_entity . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?a } }
[]
designation for an administrative territorial entity political territorial entity
SYSTEM
10
Q1000 Q40 Q781 Q778 Q769 Q685 Q35 Q691 Q664 Q766
(c(Q1048835),P530,c(Q15617994))
action count
action less
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q16
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?g ) WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?r ) WHERE { resource:Q16 property:P530 ?n . ?n rdf:type ontology:Q15617994 } } . FILTER ( ?f < ?r ) . { SELECT DISTINCT ?a ( COUNT ( ?l ) AS ?f ) WHERE { ?a property:P530 ?l . ?a rdf:type ontology:Q1048835 . ?l rdf:type ontology:Q15617994 } GROUP BY ?a } }
Gabon Austria Antigua and Barbuda The Bahamas Grenada Solomon Islands Denmark Papua New Guinea New Zealand Jamaica
10
action count
action less
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Canada
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?g ) WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?r ) WHERE { resource:Canada property:diplomatic_relation ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?f < ?r ) . { SELECT DISTINCT ?a ( COUNT ( ?l ) AS ?f ) WHERE { ?a property:diplomatic_relation ?l . ?a rdf:type ontology:political_territorial_entity . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?a } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q40
P530
Q15617994 Q1048835
USER
And how about Austria?
(c(Q1048835),P530,c(Q15617994))
action count
action less
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q40
relation P530
type Q15617994
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?v ) WHERE { { SELECT DISTINCT ?a ( COUNT ( ?r ) AS ?f ) WHERE { ?a rdf:type ontology:Q1048835 . ?r rdf:type ontology:Q15617994 . ?a property:P530 ?r } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?p ) WHERE { ?l rdf:type ontology:Q15617994 . resource:Q40 property:P530 ?l } } . FILTER ( ?f < ?p ) }
Austria
action count
action less
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Austria
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?v ) WHERE { { SELECT DISTINCT ?a ( COUNT ( ?r ) AS ?f ) WHERE { ?a rdf:type ontology:political_territorial_entity . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . ?a property:diplomatic_relation ?r } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?p ) WHERE { ?l rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Austria property:diplomatic_relation ?l } } . FILTER ( ?f < ?p ) }
[]
designation for an administrative territorial entity political territorial entity
SYSTEM
9
Q1000 Q781 Q778 Q769 Q685 Q35 Q691 Q664 Q766
(c(Q1048835),P530,c(Q15617994))
action count
action less
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q40
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?v ) WHERE { { SELECT DISTINCT ?a ( COUNT ( ?r ) AS ?f ) WHERE { ?a rdf:type ontology:Q1048835 . ?r rdf:type ontology:Q15617994 . ?a property:P530 ?r } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?p ) WHERE { ?l rdf:type ontology:Q15617994 . resource:Q40 property:P530 ?l } } . FILTER ( ?f < ?p ) }
Gabon Antigua and Barbuda The Bahamas Grenada Solomon Islands Denmark Papua New Guinea New Zealand Jamaica
9
action count
action less
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Austria
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?v ) WHERE { { SELECT DISTINCT ?a ( COUNT ( ?r ) AS ?f ) WHERE { ?a rdf:type ontology:political_territorial_entity . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . ?a property:diplomatic_relation ?r } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?p ) WHERE { ?l rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Austria property:diplomatic_relation ?l } } . FILTER ( ?f < ?p ) }
[]