Simple Question (Direct)
Simple Question
Q7819297
P19
Q56061
USER
Which administrative territory is the birthplace of Tommy Charlton ?
(Q7819297,P19,c(Q56061))
action filter_type
action find
entity Q7819297
relation P19
type Q56061
['Q7819297', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?v WHERE { resource:Q7819297 property:P19 ?v . ?v rdf:type ontology:Q56061 }
Tommy Charlton
action filter_type
action find
entity Tommy Charlton
relation place of birth
type administrative territorial entity
['Tommy Charlton', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { resource:Tommy_Charlton property:place_of_birth ?v . ?v rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q171866
SYSTEM
Middlesbrough
Q171866
(Q7819297,P19,c(Q56061))
action filter_type
action find
entity Q7819297
relation P19
type Q56061
The [ANSWER] is the birthplace of Tommy Charlton
['Q7819297', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?v WHERE { resource:Q7819297 property:P19 ?v . ?v rdf:type ontology:Q56061 }
Middlesbrough
The Middlesbrough is the birthplace of Tommy Charlton
Middlesbrough
action filter_type
action find
entity Tommy Charlton
relation place of birth
type administrative territorial entity
['Tommy Charlton', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { resource:Tommy_Charlton property:place_of_birth ?v . ?v rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q7819297
P27
Q15617994
USER
Which administrative territory is that person an inhabitant of ?
(Q171866,P27,c(Q15617994))
action filter_type
action find
entity Q7819297
relation P27
type Q15617994
['Q171866', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q15617994 . resource:Q7819297 property:P27 ?z }
Tommy Charlton
action filter_type
action find
entity Tommy Charlton
relation country of citizenship
type designation for an administrative territorial entity
['Middlesbrough', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Tommy_Charlton property:country_of_citizenship ?z }
[]
designation for an administrative territorial entity
Q145
SYSTEM
United Kingdom
Q145
(Q171866,P27,c(Q15617994))
action filter_type
action find
entity Q7819297
relation P27
type Q15617994
[ANSWER] is that person an inhabitant of
['Q171866', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q15617994 . resource:Q7819297 property:P27 ?z }
United Kingdom
United Kingdom is that person an inhabitant of
United Kingdom
action filter_type
action find
entity Tommy Charlton
relation country of citizenship
type designation for an administrative territorial entity
['Middlesbrough', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Tommy_Charlton property:country_of_citizenship ?z }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q16
P530
Q1048835 Q15617994
USER
How many political territories have diplomatic relationships with lesser number of administrative territories than Canada ?
(c(Q15617994),P530,c(Q1048835))
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': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?t ) WHERE { { SELECT DISTINCT ?r ( COUNT ( ?b ) AS ?c ) WHERE { ?r rdf:type ontology:Q1048835 . ?b rdf:type ontology:Q15617994 . ?r property:P530 ?b } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?z ) WHERE { ?s rdf:type ontology:Q15617994 . resource:Q16 property:P530 ?s } } . FILTER ( ?c < ?z ) }
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': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?t ) WHERE { { SELECT DISTINCT ?r ( COUNT ( ?b ) AS ?c ) WHERE { ?r rdf:type ontology:political_territorial_entity . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity . ?r property:diplomatic_relation ?b } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?z ) WHERE { ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Canada property:diplomatic_relation ?s } } . FILTER ( ?c < ?z ) }
[]
political territorial entity designation for an administrative territorial entity
SYSTEM
10
Q1000 Q40 Q781 Q778 Q769 Q685 Q35 Q691 Q664 Q766
(c(Q15617994),P530,c(Q1048835))
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': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?t ) WHERE { { SELECT DISTINCT ?r ( COUNT ( ?b ) AS ?c ) WHERE { ?r rdf:type ontology:Q1048835 . ?b rdf:type ontology:Q15617994 . ?r property:P530 ?b } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?z ) WHERE { ?s rdf:type ontology:Q15617994 . resource:Q16 property:P530 ?s } } . FILTER ( ?c < ?z ) }
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': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?t ) WHERE { { SELECT DISTINCT ?r ( COUNT ( ?b ) AS ?c ) WHERE { ?r rdf:type ontology:political_territorial_entity . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity . ?r property:diplomatic_relation ?b } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?z ) WHERE { ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Canada property:diplomatic_relation ?s } } . FILTER ( ?c < ?z ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q1000
P530
Q1048835 Q15617994
USER
And how about Gabon?
(c(Q15617994),P530,c(Q1048835))
action count
action less
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q1000
relation P530
type Q1048835
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?z ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?n ) AS ?m ) WHERE { ?n rdf:type ontology:Q15617994 . ?h rdf:type ontology:Q1048835 . ?h property:P530 ?n } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?q ) WHERE { resource:Q1000 property:P530 ?w . ?w rdf:type ontology:Q1048835 } } . FILTER ( ?m < ?q ) }
Gabon
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 Gabon
relation diplomatic relation
type political territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?z ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?n ) AS ?m ) WHERE { ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . ?h rdf:type ontology:political_territorial_entity . ?h property:diplomatic_relation ?n } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?q ) WHERE { resource:Gabon property:diplomatic_relation ?w . ?w rdf:type ontology:political_territorial_entity } } . FILTER ( ?m < ?q ) }
[]
political territorial entity designation for an administrative territorial entity
SYSTEM
2
Q685 Q691
(c(Q15617994),P530,c(Q1048835))
action count
action less
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q1000
relation P530
type Q1048835
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?z ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?n ) AS ?m ) WHERE { ?n rdf:type ontology:Q15617994 . ?h rdf:type ontology:Q1048835 . ?h property:P530 ?n } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?q ) WHERE { resource:Q1000 property:P530 ?w . ?w rdf:type ontology:Q1048835 } } . FILTER ( ?m < ?q ) }
Solomon Islands Papua New Guinea
2
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 Gabon
relation diplomatic relation
type political territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?z ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?n ) AS ?m ) WHERE { ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . ?h rdf:type ontology:political_territorial_entity . ?h property:diplomatic_relation ?n } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?q ) WHERE { resource:Gabon property:diplomatic_relation ?w . ?w rdf:type ontology:political_territorial_entity } } . FILTER ( ?m < ?q ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q1048835
USER
How many political territories have diplomatic associations with exactly 34 administrative territories ?
(c(Q1048835),P530,c(Q15617994))
action count
action equal
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 34
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?g ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?n ) AS ?t ) WHERE { ?e rdf:type ontology:Q1048835 . ?n rdf:type ontology:Q15617994 . ?e property:P530 ?n } GROUP BY ?e } . FILTER ( ?t = 34 ) }
action count
action equal
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 34
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?g ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?n ) AS ?t ) WHERE { ?e rdf:type ontology:political_territorial_entity . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . ?e property:diplomatic_relation ?n } GROUP BY ?e } . FILTER ( ?t = 34 ) }
[]
designation for an administrative territorial entity political territorial entity
SYSTEM
1
Q16
(c(Q1048835),P530,c(Q15617994))
action count
action equal
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 34
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?g ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?n ) AS ?t ) WHERE { ?e rdf:type ontology:Q1048835 . ?n rdf:type ontology:Q15617994 . ?e property:P530 ?n } GROUP BY ?e } . FILTER ( ?t = 34 ) }
Canada
1
action count
action equal
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 34
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?g ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?n ) AS ?t ) WHERE { ?e rdf:type ontology:political_territorial_entity . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . ?e property:diplomatic_relation ?n } GROUP BY ?e } . FILTER ( ?t = 34 ) }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q1048835
USER
Which political territories have diplomatic associations with approximately 14 administrative territories ?
(c(Q1048835),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 14
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?j ) AS ?p ) WHERE { ?y property:P530 ?j . ?j rdf:type ontology:Q15617994 . ?y rdf:type ontology:Q1048835 } GROUP BY ?y } . FILTER ( ?p = 14 ) }
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 14
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?j ) AS ?p ) WHERE { ?y property:diplomatic_relation ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y rdf:type ontology:political_territorial_entity } GROUP BY ?y } . FILTER ( ?p = 14 ) }
[]
designation for an administrative territorial entity political territorial entity
Q35 Q16 Q40
SYSTEM
Denmark, Canada, Austria
Q1000 Q40 Q781 Q778 Q769 Q685 Q35 Q691 Q16 Q664 Q766
(c(Q1048835),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 14
[ANSWERS] have diplomatic associations with approximately 14 administrative territories
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?j ) AS ?p ) WHERE { ?y property:P530 ?j . ?j rdf:type ontology:Q15617994 . ?y rdf:type ontology:Q1048835 } GROUP BY ?y } . FILTER ( ?p = 14 ) }
Gabon Austria Antigua and Barbuda The Bahamas Grenada Solomon Islands Denmark Papua New Guinea Canada New Zealand Jamaica
Denmark, Canada and Austria have diplomatic associations with approximately 14 administrative territories
Denmark Canada Austria
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 14
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?j ) AS ?p ) WHERE { ?y property:diplomatic_relation ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y rdf:type ontology:political_territorial_entity } GROUP BY ?y } . FILTER ( ?p = 14 ) }
[]
Clarification
Quantitative|Count|Logical operators|Indirect
P740
Q43229 Q215380
USER
How many organizations and bands were formed at that political territory ?
(c(Q43229),P740,Q40) (c(Q215380),P740,Q40) (c(Q43229),P740,Q35) (c(Q215380),P740,Q35) (c(Q43229),P740,Q16) (c(Q215380),P740,Q16) (c(Q43229),P740,Q40) (c(Q215380),P740,Q40)
[{'concept': 'Q43229'}, 'P740', 'Q40'] [{'concept': 'Q215380'}, 'P740', 'Q40'] [{'concept': 'Q43229'}, 'P740', 'Q35'] [{'concept': 'Q215380'}, 'P740', 'Q35'] [{'concept': 'Q43229'}, 'P740', 'Q16'] [{'concept': 'Q215380'}, 'P740', 'Q16'] [{'concept': 'Q43229'}, 'P740', 'Q40'] [{'concept': 'Q215380'}, 'P740', 'Q40']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:P740 resource:Q359060 } UNION { ?y property:P740 resource:Q359060 } UNION { ?z property:P740 resource:Q22286761 } UNION { ?y property:P740 resource:Q22286761 } UNION { ?z property:P740 resource:Q1031917 } UNION { ?y property:P740 resource:Q1031917 } UNION { ?z property:P740 resource:Q359060 } UNION { ?y property:P740 resource:Q359060 } } . ?z rdf:type ontology:Q43229 . ?y rdf:type ontology:Q215380 }
[{'concept': 'organization'}, 'location of formation', 'Austria'] [{'concept': 'band'}, 'location of formation', 'Austria'] [{'concept': 'organization'}, 'location of formation', 'Denmark'] [{'concept': 'band'}, 'location of formation', 'Denmark'] [{'concept': 'organization'}, 'location of formation', 'Canada'] [{'concept': 'band'}, 'location of formation', 'Canada'] [{'concept': 'organization'}, 'location of formation', 'Austria'] [{'concept': 'band'}, 'location of formation', 'Austria']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:location_of_formation resource:Austria } UNION { ?y property:location_of_formation resource:Austria } UNION { ?z property:location_of_formation resource:Denmark } UNION { ?y property:location_of_formation resource:Denmark } UNION { ?z property:location_of_formation resource:Canada } UNION { ?y property:location_of_formation resource:Canada } UNION { ?z property:location_of_formation resource:Austria } UNION { ?y property:location_of_formation resource:Austria } } . ?z rdf:type ontology:organization . ?y rdf:type ontology:band }
[]
organization band
Quantitative|Count|Mult. entity type|Clarification
Q35
SYSTEM
Did you mean Denmark ?
[ANSWER]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:P740 resource:Q359060 } UNION { ?y property:P740 resource:Q359060 } UNION { ?z property:P740 resource:Q22286761 } UNION { ?y property:P740 resource:Q22286761 } UNION { ?z property:P740 resource:Q1031917 } UNION { ?y property:P740 resource:Q1031917 } UNION { ?z property:P740 resource:Q359060 } UNION { ?y property:P740 resource:Q359060 } } . ?z rdf:type ontology:Q43229 . ?y rdf:type ontology:Q215380 }
Did you mean Denmark ?
Denmark
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:location_of_formation resource:Austria } UNION { ?y property:location_of_formation resource:Austria } UNION { ?z property:location_of_formation resource:Denmark } UNION { ?y property:location_of_formation resource:Denmark } UNION { ?z property:location_of_formation resource:Canada } UNION { ?y property:location_of_formation resource:Canada } UNION { ?z property:location_of_formation resource:Austria } UNION { ?y property:location_of_formation resource:Austria } } . ?z rdf:type ontology:organization . ?y rdf:type ontology:band }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Austria. Could you tell me the answer for that?
(c(Q43229),P740,Q40) (c(Q215380),P740,Q40) (c(Q43229),P740,Q35) (c(Q215380),P740,Q35) (c(Q43229),P740,Q16) (c(Q215380),P740,Q16) (c(Q43229),P740,Q40) (c(Q215380),P740,Q40)
Q40
[{'concept': 'Q43229'}, 'P740', 'Q40'] [{'concept': 'Q215380'}, 'P740', 'Q40'] [{'concept': 'Q43229'}, 'P740', 'Q35'] [{'concept': 'Q215380'}, 'P740', 'Q35'] [{'concept': 'Q43229'}, 'P740', 'Q16'] [{'concept': 'Q215380'}, 'P740', 'Q16'] [{'concept': 'Q43229'}, 'P740', 'Q40'] [{'concept': 'Q215380'}, 'P740', 'Q40']
[{'concept': 'organization'}, 'location of formation', 'Austria'] [{'concept': 'band'}, 'location of formation', 'Austria'] [{'concept': 'organization'}, 'location of formation', 'Denmark'] [{'concept': 'band'}, 'location of formation', 'Denmark'] [{'concept': 'organization'}, 'location of formation', 'Canada'] [{'concept': 'band'}, 'location of formation', 'Canada'] [{'concept': 'organization'}, 'location of formation', 'Austria'] [{'concept': 'band'}, 'location of formation', 'Austria']
[]
SYSTEM
1 organizations and 1 bands
Q19587417 Q117507
(c(Q43229),P740,Q40) (c(Q215380),P740,Q40) (c(Q43229),P740,Q35) (c(Q215380),P740,Q35) (c(Q43229),P740,Q16) (c(Q215380),P740,Q16) (c(Q43229),P740,Q40) (c(Q215380),P740,Q40)
[ANSWER]
[{'concept': 'Q43229'}, 'P740', 'Q40'] [{'concept': 'Q215380'}, 'P740', 'Q40'] [{'concept': 'Q43229'}, 'P740', 'Q35'] [{'concept': 'Q215380'}, 'P740', 'Q35'] [{'concept': 'Q43229'}, 'P740', 'Q16'] [{'concept': 'Q215380'}, 'P740', 'Q16'] [{'concept': 'Q43229'}, 'P740', 'Q40'] [{'concept': 'Q215380'}, 'P740', 'Q40']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:P740 resource:Q359060 } UNION { ?y property:P740 resource:Q359060 } UNION { ?z property:P740 resource:Q22286761 } UNION { ?y property:P740 resource:Q22286761 } UNION { ?z property:P740 resource:Q1031917 } UNION { ?y property:P740 resource:Q1031917 } UNION { ?z property:P740 resource:Q359060 } UNION { ?y property:P740 resource:Q359060 } } . ?z rdf:type ontology:Q43229 . ?y rdf:type ontology:Q215380 }
The Makemakes Atomic Skis
1 organizations and 1 bands
[{'concept': 'organization'}, 'location of formation', 'Austria'] [{'concept': 'band'}, 'location of formation', 'Austria'] [{'concept': 'organization'}, 'location of formation', 'Denmark'] [{'concept': 'band'}, 'location of formation', 'Denmark'] [{'concept': 'organization'}, 'location of formation', 'Canada'] [{'concept': 'band'}, 'location of formation', 'Canada'] [{'concept': 'organization'}, 'location of formation', 'Austria'] [{'concept': 'band'}, 'location of formation', 'Austria']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:location_of_formation resource:Austria } UNION { ?y property:location_of_formation resource:Austria } UNION { ?z property:location_of_formation resource:Denmark } UNION { ?y property:location_of_formation resource:Denmark } UNION { ?z property:location_of_formation resource:Canada } UNION { ?y property:location_of_formation resource:Canada } UNION { ?z property:location_of_formation resource:Austria } UNION { ?y property:location_of_formation resource:Austria } } . ?z rdf:type ontology:organization . ?y rdf:type ontology:band }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q40
P530
Q1048835 Q1048835
USER
How many political territories have diplomatic associations with more number of political territories than Austria ?
(c(Q1048835),P530,c(Q1048835))
action count
action greater
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
action count
action filter_type
action find
entity Q40
relation P530
type Q1048835
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?v ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?z ) AS ?w ) WHERE { ?c property:P530 ?z . ?c rdf:type ontology:Q1048835 . ?z rdf:type ontology:Q1048835 } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?o ) WHERE { ?x rdf:type ontology:Q1048835 . resource:Q40 property:P530 ?x } } . FILTER ( ?w > ?o ) }
Austria
action count
action greater
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
action count
action filter_type
action find
entity Austria
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?v ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?z ) AS ?w ) WHERE { ?c property:diplomatic_relation ?z . ?c rdf:type ontology:political_territorial_entity . ?z rdf:type ontology:political_territorial_entity } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?o ) WHERE { ?x rdf:type ontology:political_territorial_entity . resource:Austria property:diplomatic_relation ?x } } . FILTER ( ?w > ?o ) }
[]
political territorial entity political territorial entity
SYSTEM
5
Q183 Q408 Q35 Q16 Q664
(c(Q1048835),P530,c(Q1048835))
action count
action greater
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
action count
action filter_type
action find
entity Q40
relation P530
type Q1048835
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?v ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?z ) AS ?w ) WHERE { ?c property:P530 ?z . ?c rdf:type ontology:Q1048835 . ?z rdf:type ontology:Q1048835 } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?o ) WHERE { ?x rdf:type ontology:Q1048835 . resource:Q40 property:P530 ?x } } . FILTER ( ?w > ?o ) }
Germany Australia Denmark Canada New Zealand
5
action count
action greater
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
action count
action filter_type
action find
entity Austria
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?v ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?z ) AS ?w ) WHERE { ?c property:diplomatic_relation ?z . ?c rdf:type ontology:political_territorial_entity . ?z rdf:type ontology:political_territorial_entity } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?o ) WHERE { ?x rdf:type ontology:political_territorial_entity . resource:Austria property:diplomatic_relation ?x } } . FILTER ( ?w > ?o ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q3761069 Q7819297
P106
Q12737077
USER
Which occupations are the job of Tommy Charlton or German Yuferov ?
OR((Q7819297,P106,c(Q12737077)), (Q3761069,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q7819297
relation P106
action find
entity Q3761069
relation P106
type Q12737077
{'OR': [['Q7819297', 'P106', {'concept': 'Q12737077'}], ['Q3761069', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q12737077 . { { resource:Q7819297 property:P106 ?l } UNION { resource:Q3761069 property:P106 ?l } } }
German Yuferov Tommy Charlton
action filter_type
action union
action find
entity Tommy Charlton
relation occupation
action find
entity German Yuferov
relation occupation
type occupation
{'OR': [['Tommy Charlton', 'occupation', {'concept': 'occupation'}], ['German Yuferov', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:occupation . { { resource:Tommy_Charlton property:occupation ?l } UNION { resource:German_Yuferov property:occupation ?l } } }
[]
occupation
Q15972912 Q937857
SYSTEM
modern pentathlete, association football player
Q15972912 Q937857
OR((Q7819297,P106,c(Q12737077)), (Q3761069,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q7819297
relation P106
action find
entity Q3761069
relation P106
type Q12737077
And [ANSWERS] are the job of Tommy Charlton or German Yuferov
{'OR': [['Q7819297', 'P106', {'concept': 'Q12737077'}], ['Q3761069', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q12737077 . { { resource:Q7819297 property:P106 ?l } UNION { resource:Q3761069 property:P106 ?l } } }
modern pentathlete association football player
And modern pentathlete and association football player are the job of Tommy Charlton or German Yuferov
modern pentathlete association football player
action filter_type
action union
action find
entity Tommy Charlton
relation occupation
action find
entity German Yuferov
relation occupation
type occupation
{'OR': [['Tommy Charlton', 'occupation', {'concept': 'occupation'}], ['German Yuferov', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:occupation . { { resource:Tommy_Charlton property:occupation ?l } UNION { resource:German_Yuferov property:occupation ?l } } }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P417
Q502895 Q12737077
USER
Which people are the names of the patron saint of approximately 1 occupation ?
(c(Q12737077),P417,c(Q502895))
action approx
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
value 1
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?x ) AS ?i ) WHERE { ?x property:P417 ?t . ?t rdf:type ontology:Q502895 . ?x rdf:type ontology:Q12737077 } GROUP BY ?t } . FILTER ( ?i = 1 ) }
action approx
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
value 1
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?x ) AS ?i ) WHERE { ?x property:patron_saint ?t . ?t rdf:type ontology:common_name . ?x rdf:type ontology:occupation } GROUP BY ?t } . FILTER ( ?i = 1 ) }
[]
common name occupation
Q9438 Q60059 Q44281
SYSTEM
Thomas Aquinas, Albertus Magnus, Ignatius of Loyola
Q453698 Q152457 Q43689 Q163900 Q212850 Q374822 Q9438 Q130997 Q312758 Q5575577 Q191107 Q242274 Q119289 Q360798 Q298845 Q48438 Q119512 Q44281 Q170164 Q43399 Q508214 Q9200 Q193507 Q463600 Q43669 Q40662 Q332656 Q320171 Q137947 Q80513 Q324700 Q44015 Q149727 Q232427 Q60059 Q17590 Q271474 Q276148
(c(Q12737077),P417,c(Q502895))
action approx
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
value 1
[ANSWERS] are the names of the patron saint of approximately 1 occupation
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?x ) AS ?i ) WHERE { ?x property:P417 ?t . ?t rdf:type ontology:Q502895 . ?x rdf:type ontology:Q12737077 } GROUP BY ?t } . FILTER ( ?i = 1 ) }
Saint Amand Saint Roch Ambrose Saint Francis Xavier Vitus Adrian of Nicomedia Thomas Aquinas Damasus I Jean-Baptiste de La Salle Gobnait Clare of Assisi Dorothea of Caesarea Leonard of Port Maurice Saint Eligius Saint Florian Saint George William of Maleval Ignatius of Loyola Helena of Constantinople Andrew Cyriacus Paul Saint Christopher Saint Petronilla Thomas the Apostle John the Baptist Camillus de Lellis John of God Alexius of Rome Saint Cecilia Urban of Langres John the Apostle Saint Giles Saint Apollonia Albertus Magnus Lawrence of Rome Joseph of Arimathea Charalampus
Thomas Aquinas, Albertus Magnus and Ignatius of Loyola are the names of the patron saint of approximately 1 occupation
Thomas Aquinas Albertus Magnus Ignatius of Loyola
action approx
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
value 1
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?x ) AS ?i ) WHERE { ?x property:patron_saint ?t . ?t rdf:type ontology:common_name . ?x rdf:type ontology:occupation } GROUP BY ?t } . FILTER ( ?i = 1 ) }
[]
Clarification
Simple Question|Single Entity|Indirect
Q9438
P180
Q3305213
USER
Which painting expressess that person ?
(c(Q3305213),P180,Q9438)
action filter_type
action find_reverse
entity Q9438
relation P180
type Q3305213
[{'concept': 'Q3305213'}, 'P180', 'Q9438']
SELECT DISTINCT ?r WHERE { ?r property:P180 resource:Q9438 . ?r rdf:type ontology:Q3305213 }
Thomas Aquinas
action filter_type
action find_reverse
entity Thomas Aquinas
relation depicts
type painting
[{'concept': 'painting'}, 'depicts', 'Thomas Aquinas']
SELECT DISTINCT ?r WHERE { ?r property:depicts resource:Thomas_Aquinas . ?r rdf:type ontology:painting }
[]
painting
Clarification for simple ques.
Q60059
SYSTEM
Did you mean Albertus Magnus ?
Q9438 Q60059 Q44281
(c(Q3305213),P180,Q9438) (c(Q3305213),P180,Q60059) (c(Q3305213),P180,Q44281)
[ANSWER]
[{'concept': 'Q3305213'}, 'P180', 'Q9438'] [{'concept': 'Q3305213'}, 'P180', 'Q60059'] [{'concept': 'Q3305213'}, 'P180', 'Q44281']
SELECT DISTINCT ?r WHERE { ?r property:P180 resource:Q9438 . ?r rdf:type ontology:Q3305213 }
Thomas Aquinas Albertus Magnus Ignatius of Loyola
Did you mean Albertus Magnus ?
Albertus Magnus
[{'concept': 'painting'}, 'depicts', 'Thomas Aquinas'] [{'concept': 'painting'}, 'depicts', 'Albertus Magnus'] [{'concept': 'painting'}, 'depicts', 'Ignatius of Loyola']
SELECT DISTINCT ?r WHERE { ?r property:depicts resource:Thomas_Aquinas . ?r rdf:type ontology:painting }
[]
Simple Question (Coreferenced)
USER
No, I meant Thomas Aquinas. Could you tell me the answer for that?
(c(Q3305213),P180,Q9438)
Q9438
[{'concept': 'Q3305213'}, 'P180', 'Q9438']
[{'concept': 'painting'}, 'depicts', 'Thomas Aquinas']
[]
Q1215717
SYSTEM
Coronation of the Virgin
Q1215717
(c(Q3305213),P180,Q9438)
action filter_type
action find_reverse
entity Q9438
relation P180
type Q3305213
[ANSWER] expressess that person
[{'concept': 'Q3305213'}, 'P180', 'Q9438']
SELECT DISTINCT ?r WHERE { ?r property:P180 resource:Q9438 . ?r rdf:type ontology:Q3305213 }
Coronation of the Virgin
Coronation of the Virgin expressess that person
Coronation of the Virgin
action filter_type
action find_reverse
entity Thomas Aquinas
relation depicts
type painting
[{'concept': 'painting'}, 'depicts', 'Thomas Aquinas']
SELECT DISTINCT ?r WHERE { ?r property:depicts resource:Thomas_Aquinas . ?r rdf:type ontology:painting }
[]