Simple Question (Direct)
Simple Question
Q445113
P54
Q1194951
USER
What is Massimo Martino a member of ?
(Q445113,P54,c(Q1194951))
action filter_type
action find
entity Q445113
relation P54
type Q1194951
['Q445113', 'P54', {'concept': 'Q1194951'}]
SELECT DISTINCT ?b WHERE { resource:Q445113 property:P54 ?b . ?b rdf:type ontology:Q1194951 }
Massimo Martino
action filter_type
action find
entity Massimo Martino
relation member of sports team
type national sports team
['Massimo Martino', 'member of sports team', {'concept': 'national sports team'}]
SELECT DISTINCT ?b WHERE { resource:Massimo_Martino property:member_of_sports_team ?b . ?b rdf:type ontology:national_sports_team }
[]
national sports team
Q184266
SYSTEM
Luxembourg national football team
Q184266
(Q445113,P54,c(Q1194951))
action filter_type
action find
entity Q445113
relation P54
type Q1194951
Massimo Martino a member of is [ANSWER]
['Q445113', 'P54', {'concept': 'Q1194951'}]
SELECT DISTINCT ?b WHERE { resource:Q445113 property:P54 ?b . ?b rdf:type ontology:Q1194951 }
Luxembourg national football team
Massimo Martino a member of is Luxembourg national football team
Luxembourg national football team
action filter_type
action find
entity Massimo Martino
relation member of sports team
type national sports team
['Massimo Martino', 'member of sports team', {'concept': 'national sports team'}]
SELECT DISTINCT ?b WHERE { resource:Massimo_Martino property:member_of_sports_team ?b . ?b rdf:type ontology:national_sports_team }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q445113
P734
Q82799
USER
Who is associated with that person ?
(Q184266,P734,c(Q82799))
action filter_type
action find
entity Q445113
relation P734
type Q82799
['Q184266', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?r WHERE { resource:Q445113 property:P734 ?r . ?r rdf:type ontology:Q82799 }
Massimo Martino
action filter_type
action find
entity Massimo Martino
relation family name
type name
['Luxembourg national football team', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?r WHERE { resource:Massimo_Martino property:family_name ?r . ?r rdf:type ontology:name }
[]
name
Q18002394
SYSTEM
Martino
Q18002394
(Q184266,P734,c(Q82799))
action filter_type
action find
entity Q445113
relation P734
type Q82799
[ANSWER] is associated with that person
['Q184266', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?r WHERE { resource:Q445113 property:P734 ?r . ?r rdf:type ontology:Q82799 }
Martino
Martino is associated with that person
Martino
action filter_type
action find
entity Massimo Martino
relation family name
type name
['Luxembourg national football team', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?r WHERE { resource:Massimo_Martino property:family_name ?r . ?r rdf:type ontology:name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q184266
P1532
Q15617994
USER
Which administrative territory is played by Luxembourg national football team ?
(Q184266,P1532,c(Q15617994))
action filter_type
action find
entity Q184266
relation P1532
type Q15617994
['Q184266', 'P1532', {'concept': 'Q15617994'}]
SELECT DISTINCT ?k WHERE { resource:Q184266 property:P1532 ?k . ?k rdf:type ontology:Q15617994 }
Luxembourg national football team
action filter_type
action find
entity Luxembourg national football team
relation country for sport
type designation for an administrative territorial entity
['Luxembourg national football team', 'country for sport', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { resource:Luxembourg_national_football_team property:country_for_sport ?k . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q32
SYSTEM
Luxembourg
Q32
(Q184266,P1532,c(Q15617994))
action filter_type
action find
entity Q184266
relation P1532
type Q15617994
And [ANSWER] is played by [ANSWER] national football team
['Q184266', 'P1532', {'concept': 'Q15617994'}]
SELECT DISTINCT ?k WHERE { resource:Q184266 property:P1532 ?k . ?k rdf:type ontology:Q15617994 }
Luxembourg
And Luxembourg is played by Luxembourg national football team
Luxembourg
action filter_type
action find
entity Luxembourg national football team
relation country for sport
type designation for an administrative territorial entity
['Luxembourg national football team', 'country for sport', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { resource:Luxembourg_national_football_team property:country_for_sport ?k . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q983091
Q15617994
USER
And how about Jaime Correa?
(Q983091,P1532,c(Q15617994))
action filter_type
action find
entity Q983091
relation P1532
type Q15617994
['Q983091', 'P1532', {'concept': 'Q15617994'}]
SELECT DISTINCT ?m WHERE { resource:Q983091 property:P1532 ?m . ?m rdf:type ontology:Q15617994 }
Jaime Correa
action filter_type
action find
entity Jaime Correa
relation country for sport
type designation for an administrative territorial entity
['Jaime Correa', 'country for sport', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { resource:Jaime_Correa property:country_for_sport ?m . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q96
SYSTEM
Mexico
Q96
(Q983091,P1532,c(Q15617994))
action filter_type
action find
entity Q983091
relation P1532
type Q15617994
[ANSWER]
['Q983091', 'P1532', {'concept': 'Q15617994'}]
SELECT DISTINCT ?m WHERE { resource:Q983091 property:P1532 ?m . ?m rdf:type ontology:Q15617994 }
Mexico
Mexico
action filter_type
action find
entity Jaime Correa
relation country for sport
type designation for an administrative territorial entity
['Jaime Correa', 'country for sport', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { resource:Jaime_Correa property:country_for_sport ?m . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q2515574 Q445113
P27
Q15617994
USER
Which administrative territories do Massimo Martino or Sun Chao belong to ?
OR((Q445113,P27,c(Q15617994)), (Q2515574,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q445113
relation P27
action find
entity Q2515574
relation P27
type Q15617994
{'OR': [['Q445113', 'P27', {'concept': 'Q15617994'}], ['Q2515574', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?f WHERE { { VALUES ( ?j ) { ( resource:Q445113 ) ( resource:Q2515574 ) } . ?j property:P27 ?f } . ?f rdf:type ontology:Q15617994 }
Sun Chao Massimo Martino
action filter_type
action union
action find
entity Massimo Martino
relation country of citizenship
action find
entity Sun Chao
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Massimo Martino', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Sun Chao', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?f WHERE { { VALUES ( ?j ) { ( resource:Massimo_Martino ) ( resource:Sun_Chao ) } . ?j property:country_of_citizenship ?f } . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q32 Q148
SYSTEM
Luxembourg, People's Republic of China
Q32 Q148
OR((Q445113,P27,c(Q15617994)), (Q2515574,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q445113
relation P27
action find
entity Q2515574
relation P27
type Q15617994
Massimo Martino or Sun Chao belong to [ANSWERS]
{'OR': [['Q445113', 'P27', {'concept': 'Q15617994'}], ['Q2515574', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?f WHERE { { VALUES ( ?j ) { ( resource:Q445113 ) ( resource:Q2515574 ) } . ?j property:P27 ?f } . ?f rdf:type ontology:Q15617994 }
Luxembourg People's Republic of China
Massimo Martino or Sun Chao belong to Luxembourg and People's Republic of China
Luxembourg People's Republic of China
action filter_type
action union
action find
entity Massimo Martino
relation country of citizenship
action find
entity Sun Chao
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Massimo Martino', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Sun Chao', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?f WHERE { { VALUES ( ?j ) { ( resource:Massimo_Martino ) ( resource:Sun_Chao ) } . ?j property:country_of_citizenship ?f } . ?f 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 are known to have diplomatic connections with approximately 53 administrative territories ?
(c(Q1048835),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 53
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?t ) AS ?l ) WHERE { ?m property:P530 ?t . ?m rdf:type ontology:Q1048835 . ?t rdf:type ontology:Q15617994 } GROUP BY ?m } . FILTER ( ?l = 53 ) }
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 53
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?t ) AS ?l ) WHERE { ?m property:diplomatic_relation ?t . ?m rdf:type ontology:political_territorial_entity . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?m } . FILTER ( ?l = 53 ) }
[]
designation for an administrative territorial entity political territorial entity
Q16
SYSTEM
Canada
Q16
(c(Q1048835),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 53
[ANSWER] is known to have diplomatic connections with approximately 53 administrative territories
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?t ) AS ?l ) WHERE { ?m property:P530 ?t . ?m rdf:type ontology:Q1048835 . ?t rdf:type ontology:Q15617994 } GROUP BY ?m } . FILTER ( ?l = 53 ) }
Canada
Canada is known to have diplomatic connections with approximately 53 administrative territories
Canada
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 53
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?t ) AS ?l ) WHERE { ?m property:diplomatic_relation ?t . ?m rdf:type ontology:political_territorial_entity . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?m } . FILTER ( ?l = 53 ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q7561974
P206
Q355304 Q1267889 Q15617994
USER
How many administrative territories are located nearby greater number of watercourses or waterways than Sonning Eye ?
(c(Q15617994),P206,c(Q355304)|c(Q1267889))
action count
action greater
action union
action find_tuple_counts
relation P206
type Q15617994
type Q355304
action find_tuple_counts
relation P206
type Q15617994
type Q1267889
action count
action filter_multi_types
action find
entity Q7561974
relation P206
type Q355304
type Q1267889
[{'concept': 'Q15617994'}, 'P206', [{'concept': 'Q355304'}, {'concept': 'Q1267889'}]]
SELECT DISTINCT ( COUNT ( ?b ) AS ?h ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?i ) AS ?n ) WHERE { { ?b property:P206 ?i . ?b rdf:type ontology:Q15617994 . ?i rdf:type ontology:Q355304 } UNION { ?b property:P206 ?i . ?b rdf:type ontology:Q15617994 . ?i rdf:type ontology:Q1267889 } } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?e ) WHERE { resource:Q7561974 property:P206 ?w . { ?w rdf:type ?m . VALUES ( ?m ) { ( ontology:Q355304 ) ( ontology:Q1267889 ) } } } } . FILTER ( ?n > ?e ) }
Sonning Eye
action count
action greater
action union
action find_tuple_counts
relation located next to body of water
type designation for an administrative territorial entity
type watercourse
action find_tuple_counts
relation located next to body of water
type designation for an administrative territorial entity
type waterway
action count
action filter_multi_types
action find
entity Sonning Eye
relation located next to body of water
type watercourse
type waterway
[{'concept': 'designation for an administrative territorial entity'}, 'located next to body of water', [{'concept': 'watercourse'}, {'concept': 'waterway'}]]
SELECT DISTINCT ( COUNT ( ?b ) AS ?h ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?i ) AS ?n ) WHERE { { ?b property:located_next_to_body_of_water ?i . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity . ?i rdf:type ontology:watercourse } UNION { ?b property:located_next_to_body_of_water ?i . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity . ?i rdf:type ontology:waterway } } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?e ) WHERE { resource:Sonning_Eye property:located_next_to_body_of_water ?w . { ?w rdf:type ?m . VALUES ( ?m ) { ( ontology:watercourse ) ( ontology:waterway ) } } } } . FILTER ( ?n > ?e ) }
[]
watercourse waterway designation for an administrative territorial entity
SYSTEM
13
Q241358 Q214 Q491751 Q14825 Q36 Q28 Q525900 Q213 Q3923 Q252320 Q526087 Q2758 Q494305
(c(Q15617994),P206,c(Q355304)|c(Q1267889))
action count
action greater
action union
action find_tuple_counts
relation P206
type Q15617994
type Q355304
action find_tuple_counts
relation P206
type Q15617994
type Q1267889
action count
action filter_multi_types
action find
entity Q7561974
relation P206
type Q355304
type Q1267889
[ANSWER]
[{'concept': 'Q15617994'}, 'P206', [{'concept': 'Q355304'}, {'concept': 'Q1267889'}]]
SELECT DISTINCT ( COUNT ( ?b ) AS ?h ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?i ) AS ?n ) WHERE { { ?b property:P206 ?i . ?b rdf:type ontology:Q15617994 . ?i rdf:type ontology:Q355304 } UNION { ?b property:P206 ?i . ?b rdf:type ontology:Q15617994 . ?i rdf:type ontology:Q1267889 } } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?e ) WHERE { resource:Q7561974 property:P206 ?w . { ?w rdf:type ?m . VALUES ( ?m ) { ( ontology:Q355304 ) ( ontology:Q1267889 ) } } } } . FILTER ( ?n > ?e ) }
Schleiden Slovakia Pfatter Memmingen Poland Hungary Meinheim Czech Republic Bayreuth Pleinfeld Nennslingen Mönchengladbach Kelheim
13
action count
action greater
action union
action find_tuple_counts
relation located next to body of water
type designation for an administrative territorial entity
type watercourse
action find_tuple_counts
relation located next to body of water
type designation for an administrative territorial entity
type waterway
action count
action filter_multi_types
action find
entity Sonning Eye
relation located next to body of water
type watercourse
type waterway
[{'concept': 'designation for an administrative territorial entity'}, 'located next to body of water', [{'concept': 'watercourse'}, {'concept': 'waterway'}]]
SELECT DISTINCT ( COUNT ( ?b ) AS ?h ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?i ) AS ?n ) WHERE { { ?b property:located_next_to_body_of_water ?i . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity . ?i rdf:type ontology:watercourse } UNION { ?b property:located_next_to_body_of_water ?i . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity . ?i rdf:type ontology:waterway } } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?e ) WHERE { resource:Sonning_Eye property:located_next_to_body_of_water ?w . { ?w rdf:type ?m . VALUES ( ?m ) { ( ontology:watercourse ) ( ontology:waterway ) } } } } . FILTER ( ?n > ?e ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q1984541
P206
Q355304 Q1267889 Q15617994
USER
And how about Niamey II?
(c(Q15617994),P206,c(Q355304)|c(Q1267889))
action count
action greater
action union
action find_tuple_counts
relation P206
type Q15617994
type Q355304
action find_tuple_counts
relation P206
type Q15617994
type Q1267889
action count
action filter_multi_types
action find
entity Q1984541
relation P206
type Q355304
type Q1267889
[{'concept': 'Q15617994'}, 'P206', [{'concept': 'Q355304'}, {'concept': 'Q1267889'}]]
SELECT DISTINCT ( COUNT ( ?b ) AS ?x ) WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?z ) WHERE { { VALUES ( ?q ) { ( ontology:Q1267889 ) ( ontology:Q355304 ) } . ?g rdf:type ?q } . resource:Q1984541 property:P206 ?g } } . FILTER ( ?w > ?z ) . { SELECT DISTINCT ?b ( COUNT ( ?h ) AS ?w ) WHERE { { ?b property:P206 ?h . ?b rdf:type ontology:Q15617994 . ?h rdf:type ontology:Q355304 } UNION { ?b property:P206 ?h . ?h rdf:type ontology:Q1267889 . ?b rdf:type ontology:Q15617994 } } GROUP BY ?b } }
Niamey II
action count
action greater
action union
action find_tuple_counts
relation located next to body of water
type designation for an administrative territorial entity
type watercourse
action find_tuple_counts
relation located next to body of water
type designation for an administrative territorial entity
type waterway
action count
action filter_multi_types
action find
entity Niamey II
relation located next to body of water
type watercourse
type waterway
[{'concept': 'designation for an administrative territorial entity'}, 'located next to body of water', [{'concept': 'watercourse'}, {'concept': 'waterway'}]]
SELECT DISTINCT ( COUNT ( ?b ) AS ?x ) WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?z ) WHERE { { VALUES ( ?q ) { ( ontology:waterway ) ( ontology:watercourse ) } . ?g rdf:type ?q } . resource:Niamey_II property:located_next_to_body_of_water ?g } } . FILTER ( ?w > ?z ) . { SELECT DISTINCT ?b ( COUNT ( ?h ) AS ?w ) WHERE { { ?b property:located_next_to_body_of_water ?h . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity . ?h rdf:type ontology:watercourse } UNION { ?b property:located_next_to_body_of_water ?h . ?h rdf:type ontology:waterway . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?b } }
[]
watercourse waterway designation for an administrative territorial entity
SYSTEM
13
Q241358 Q214 Q491751 Q14825 Q36 Q28 Q525900 Q213 Q3923 Q252320 Q526087 Q2758 Q494305
(c(Q15617994),P206,c(Q355304)|c(Q1267889))
action count
action greater
action union
action find_tuple_counts
relation P206
type Q15617994
type Q355304
action find_tuple_counts
relation P206
type Q15617994
type Q1267889
action count
action filter_multi_types
action find
entity Q1984541
relation P206
type Q355304
type Q1267889
[ANSWER]
[{'concept': 'Q15617994'}, 'P206', [{'concept': 'Q355304'}, {'concept': 'Q1267889'}]]
SELECT DISTINCT ( COUNT ( ?b ) AS ?x ) WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?z ) WHERE { { VALUES ( ?q ) { ( ontology:Q1267889 ) ( ontology:Q355304 ) } . ?g rdf:type ?q } . resource:Q1984541 property:P206 ?g } } . FILTER ( ?w > ?z ) . { SELECT DISTINCT ?b ( COUNT ( ?h ) AS ?w ) WHERE { { ?b property:P206 ?h . ?b rdf:type ontology:Q15617994 . ?h rdf:type ontology:Q355304 } UNION { ?b property:P206 ?h . ?h rdf:type ontology:Q1267889 . ?b rdf:type ontology:Q15617994 } } GROUP BY ?b } }
Schleiden Slovakia Pfatter Memmingen Poland Hungary Meinheim Czech Republic Bayreuth Pleinfeld Nennslingen Mönchengladbach Kelheim
13
action count
action greater
action union
action find_tuple_counts
relation located next to body of water
type designation for an administrative territorial entity
type watercourse
action find_tuple_counts
relation located next to body of water
type designation for an administrative territorial entity
type waterway
action count
action filter_multi_types
action find
entity Niamey II
relation located next to body of water
type watercourse
type waterway
[{'concept': 'designation for an administrative territorial entity'}, 'located next to body of water', [{'concept': 'watercourse'}, {'concept': 'waterway'}]]
SELECT DISTINCT ( COUNT ( ?b ) AS ?x ) WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?z ) WHERE { { VALUES ( ?q ) { ( ontology:waterway ) ( ontology:watercourse ) } . ?g rdf:type ?q } . resource:Niamey_II property:located_next_to_body_of_water ?g } } . FILTER ( ?w > ?z ) . { SELECT DISTINCT ?b ( COUNT ( ?h ) AS ?w ) WHERE { { ?b property:located_next_to_body_of_water ?h . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity . ?h rdf:type ontology:watercourse } UNION { ?b property:located_next_to_body_of_water ?h . ?h rdf:type ontology:waterway . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?b } }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q1048835 Q1048835
USER
Which political territories have ambassadorial relations with atleast 8 political territories ?
(c(Q1048835),P530,c(Q1048835))
action atleast
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
value 8
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?o WHERE { FILTER ( ?r >= 8 ) . { SELECT DISTINCT ?o ( COUNT ( ?c ) AS ?r ) WHERE { ?o property:P530 ?c . ?o rdf:type ontology:Q1048835 . ?c rdf:type ontology:Q1048835 } GROUP BY ?o } }
action atleast
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
value 8
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?o WHERE { FILTER ( ?r >= 8 ) . { SELECT DISTINCT ?o ( COUNT ( ?c ) AS ?r ) WHERE { ?o property:diplomatic_relation ?c . ?o rdf:type ontology:political_territorial_entity . ?c rdf:type ontology:political_territorial_entity } GROUP BY ?o } }
[]
political territorial entity political territorial entity
Q408
SYSTEM
Australia
Q408
(c(Q1048835),P530,c(Q1048835))
action atleast
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
value 8
[ANSWER] have ambassadorial relations with atleast 8 political territories
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?o WHERE { FILTER ( ?r >= 8 ) . { SELECT DISTINCT ?o ( COUNT ( ?c ) AS ?r ) WHERE { ?o property:P530 ?c . ?o rdf:type ontology:Q1048835 . ?c rdf:type ontology:Q1048835 } GROUP BY ?o } }
Australia
Australia have ambassadorial relations with atleast 8 political territories
Australia
action atleast
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
value 8
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?o WHERE { FILTER ( ?r >= 8 ) . { SELECT DISTINCT ?o ( COUNT ( ?c ) AS ?r ) WHERE { ?o property:diplomatic_relation ?c . ?o rdf:type ontology:political_territorial_entity . ?c rdf:type ontology:political_territorial_entity } GROUP BY ?o } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q16
P17
Q1048835
USER
Which political territory is Canada situated in ?
(Q16,P17,c(Q1048835))
action filter_type
action find
entity Q16
relation P17
type Q1048835
['Q16', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?h WHERE { resource:Q16 property:P17 ?h . ?h rdf:type ontology:Q1048835 }
Canada
action filter_type
action find
entity Canada
relation country
type political territorial entity
['Canada', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:Canada property:country ?h . ?h rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q16
SYSTEM
Canada
Q16
(Q16,P17,c(Q1048835))
action filter_type
action find
entity Q16
relation P17
type Q1048835
[ANSWER] is situated in [ANSWER]
['Q16', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?h WHERE { resource:Q16 property:P17 ?h . ?h rdf:type ontology:Q1048835 }
Canada
Canada is situated in Canada
Canada
action filter_type
action find
entity Canada
relation country
type political territorial entity
['Canada', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:Canada property:country ?h . ?h rdf:type ontology:political_territorial_entity }
[]