Simple Question (Direct)
Simple Question
Q3821713
P57
Q502895
USER
Who directed The Fiery Cavalcade ?
(Q3821713,P57,c(Q502895))
action filter_type
action find
entity Q3821713
relation P57
type Q502895
['Q3821713', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?u WHERE { resource:Q3821713 property:P57 ?u . ?u rdf:type ontology:Q502895 }
The Fiery Cavalcade
action filter_type
action find
entity The Fiery Cavalcade
relation director
type common name
['The Fiery Cavalcade', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?u WHERE { resource:The_Fiery_Cavalcade property:director ?u . ?u rdf:type ontology:common_name }
[]
common name
Q53020
SYSTEM
Carmine Gallone
Q53020
(Q3821713,P57,c(Q502895))
action filter_type
action find
entity Q3821713
relation P57
type Q502895
[ANSWER] directed The Fiery Cavalcade
['Q3821713', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?u WHERE { resource:Q3821713 property:P57 ?u . ?u rdf:type ontology:Q502895 }
Carmine Gallone
Carmine Gallone directed The Fiery Cavalcade
Carmine Gallone
action filter_type
action find
entity The Fiery Cavalcade
relation director
type common name
['The Fiery Cavalcade', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?u WHERE { resource:The_Fiery_Cavalcade property:director ?u . ?u rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q53020
P106
Q28640
USER
What are the job of that person ?
(Q53020,P106,c(Q28640))
action filter_type
action find
entity Q53020
relation P106
type Q28640
['Q53020', 'P106', {'concept': 'Q28640'}]
SELECT DISTINCT ?c WHERE { resource:Q53020 property:P106 ?c . ?c rdf:type ontology:Q28640 }
Carmine Gallone
action filter_type
action find
entity Carmine Gallone
relation occupation
type profession
['Carmine Gallone', 'occupation', {'concept': 'profession'}]
SELECT DISTINCT ?c WHERE { resource:Carmine_Gallone property:occupation ?c . ?c rdf:type ontology:profession }
[]
profession
Q2526255 Q3282637 Q28389
SYSTEM
film director, film producer, screenwriter
Q2526255 Q3282637 Q28389
(Q53020,P106,c(Q28640))
action filter_type
action find
entity Q53020
relation P106
type Q28640
The job of that person are the [ANSWERS]
['Q53020', 'P106', {'concept': 'Q28640'}]
SELECT DISTINCT ?c WHERE { resource:Q53020 property:P106 ?c . ?c rdf:type ontology:Q28640 }
film director film producer screenwriter
The job of that person are the film director, film producer and screenwriter
film director film producer screenwriter
action filter_type
action find
entity Carmine Gallone
relation occupation
type profession
['Carmine Gallone', 'occupation', {'concept': 'profession'}]
SELECT DISTINCT ?c WHERE { resource:Carmine_Gallone property:occupation ?c . ?c rdf:type ontology:profession }
[]
Clarification
Quantitative|Count|Single entity type|Indirect
P361
Q16334295
USER
How many groups of humans are that profession a part of ?
(Q2526255,P361,c(Q16334295))
['Q2526255', 'P361', {'concept': 'Q16334295'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q2526255 property:P361 ?z . ?z rdf:type ontology:Q16334295 }
['film director', 'part of', {'concept': 'group of humans'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:film_director property:part_of ?z . ?z rdf:type ontology:group_of_humans }
[]
group of humans
Quantitative|Count|Single entity type|Clarification
Q2526255
SYSTEM
Did you mean film director ?
(Q2526255,P361,c(Q16334295)) (Q3282637,P361,c(Q16334295)) (Q28389,P361,c(Q16334295))
[ANSWER]
['Q2526255', 'P361', {'concept': 'Q16334295'}] ['Q3282637', 'P361', {'concept': 'Q16334295'}] ['Q28389', 'P361', {'concept': 'Q16334295'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q2526255 property:P361 ?z . ?z rdf:type ontology:Q16334295 }
Did you mean film director ?
film director
['film director', 'part of', {'concept': 'group of humans'}] ['film producer', 'part of', {'concept': 'group of humans'}] ['screenwriter', 'part of', {'concept': 'group of humans'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:film_director property:part_of ?z . ?z rdf:type ontology:group_of_humans }
[]
Quantitative Reasoning (Count) (All)
USER
Yes
(Q2526255,P361,c(Q16334295))
['Q2526255', 'P361', {'concept': 'Q16334295'}]
['film director', 'part of', {'concept': 'group of humans'}]
[]
SYSTEM
1
Q506702
(Q2526255,P361,c(Q16334295))
[ANSWER]
['Q2526255', 'P361', {'concept': 'Q16334295'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q2526255 property:P361 ?z . ?z rdf:type ontology:Q16334295 }
film crew
1
['film director', 'part of', {'concept': 'group of humans'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:film_director property:part_of ?z . ?z rdf:type ontology:group_of_humans }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2526255
P425
Q268592
USER
Which economic branch has film director as thier associated field of occupation ?
(Q2526255,P425,c(Q268592))
action filter_type
action find
entity Q2526255
relation P425
type Q268592
['Q2526255', 'P425', {'concept': 'Q268592'}]
SELECT DISTINCT ?k WHERE { resource:Q2526255 property:P425 ?k . ?k rdf:type ontology:Q268592 }
film director
action filter_type
action find
entity film director
relation field of this occupation
type economic branch
['film director', 'field of this occupation', {'concept': 'economic branch'}]
SELECT DISTINCT ?k WHERE { resource:film_director property:field_of_this_occupation ?k . ?k rdf:type ontology:economic_branch }
[]
economic branch
Q932586
SYSTEM
filmmaking
Q932586
(Q2526255,P425,c(Q268592))
action filter_type
action find
entity Q2526255
relation P425
type Q268592
[ANSWER] has film director as thier associated field of occupation
['Q2526255', 'P425', {'concept': 'Q268592'}]
SELECT DISTINCT ?k WHERE { resource:Q2526255 property:P425 ?k . ?k rdf:type ontology:Q268592 }
filmmaking
Filmmaking has film director as thier associated field of occupation
filmmaking
action filter_type
action find
entity film director
relation field of this occupation
type economic branch
['film director', 'field of this occupation', {'concept': 'economic branch'}]
SELECT DISTINCT ?k WHERE { resource:film_director property:field_of_this_occupation ?k . ?k rdf:type ontology:economic_branch }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P355
Q268592 Q1269299
USER
Which business organizations are max number of economic branches the subsidiary of ?
(c(Q1269299),P355,c(Q268592))
action argmax
action find_tuple_counts
relation P355
type Q1269299
type Q268592
[{'concept': 'Q1269299'}, 'P355', {'concept': 'Q268592'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MAX ( ?c ) AS ?k ) { SELECT DISTINCT ?f ( COUNT ( ?m ) AS ?c ) WHERE { ?f property:P355 ?m . ?m rdf:type ontology:Q268592 . ?f rdf:type ontology:Q1269299 } GROUP BY ?f } } . { SELECT DISTINCT ?p ( COUNT ( ?i ) AS ?w ) WHERE { ?p rdf:type ontology:Q1269299 . ?i rdf:type ontology:Q268592 . ?p property:P355 ?i } GROUP BY ?p } . FILTER ( ?w = ?k ) }
action argmax
action find_tuple_counts
relation subsidiary
type type of business entity
type economic branch
[{'concept': 'type of business entity'}, 'subsidiary', {'concept': 'economic branch'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MAX ( ?c ) AS ?k ) { SELECT DISTINCT ?f ( COUNT ( ?m ) AS ?c ) WHERE { ?f property:subsidiary ?m . ?m rdf:type ontology:economic_branch . ?f rdf:type ontology:type_of_business_entity } GROUP BY ?f } } . { SELECT DISTINCT ?p ( COUNT ( ?i ) AS ?w ) WHERE { ?p rdf:type ontology:type_of_business_entity . ?i rdf:type ontology:economic_branch . ?p property:subsidiary ?i } GROUP BY ?p } . FILTER ( ?w = ?k ) }
[]
economic branch type of business entity
Q1418 Q15944611
SYSTEM
Nokia, Altice
Q1418 Q15944611
(c(Q1269299),P355,c(Q268592))
action argmax
action find_tuple_counts
relation P355
type Q1269299
type Q268592
[ANSWERS] are max number of economic branches the subsidiary of
[{'concept': 'Q1269299'}, 'P355', {'concept': 'Q268592'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MAX ( ?c ) AS ?k ) { SELECT DISTINCT ?f ( COUNT ( ?m ) AS ?c ) WHERE { ?f property:P355 ?m . ?m rdf:type ontology:Q268592 . ?f rdf:type ontology:Q1269299 } GROUP BY ?f } } . { SELECT DISTINCT ?p ( COUNT ( ?i ) AS ?w ) WHERE { ?p rdf:type ontology:Q1269299 . ?i rdf:type ontology:Q268592 . ?p property:P355 ?i } GROUP BY ?p } . FILTER ( ?w = ?k ) }
Nokia Altice
Nokia and Altice are max number of economic branches the subsidiary of
Nokia Altice
action argmax
action find_tuple_counts
relation subsidiary
type type of business entity
type economic branch
[{'concept': 'type of business entity'}, 'subsidiary', {'concept': 'economic branch'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MAX ( ?c ) AS ?k ) { SELECT DISTINCT ?f ( COUNT ( ?m ) AS ?c ) WHERE { ?f property:subsidiary ?m . ?m rdf:type ontology:economic_branch . ?f rdf:type ontology:type_of_business_entity } GROUP BY ?f } } . { SELECT DISTINCT ?p ( COUNT ( ?i ) AS ?w ) WHERE { ?p rdf:type ontology:type_of_business_entity . ?i rdf:type ontology:economic_branch . ?p property:subsidiary ?i } GROUP BY ?p } . FILTER ( ?w = ?k ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q122741
P355
Q28640 Q43229 Q4830453
USER
How many professions are more number of organizations or business enterprises the parent company of than Sega ?
(c(Q43229)|c(Q4830453),P355,c(Q28640))
action count
action greater
action union
action find_reverse_tuple_counts
relation P355
type Q28640
type Q43229
action find_reverse_tuple_counts
relation P355
type Q28640
type Q4830453
action count
action filter_multi_types
action find_reverse
entity Q122741
relation P355
type Q43229
type Q4830453
[[{'concept': 'Q43229'}, {'concept': 'Q4830453'}], 'P355', {'concept': 'Q28640'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?x ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?c ) AS ?y ) WHERE { ?c rdf:type ?q . VALUES ( ?q ) { ( ontology:Q43229 ) ( ontology:Q4830453 ) } } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?u ) WHERE { ?b property:P355 resource:Q122741 . { { ?b rdf:type ontology:Q43229 } UNION { ?b rdf:type ontology:Q4830453 } } } } . FILTER ( ?y > ?u ) }
Sega
action count
action greater
action union
action find_reverse_tuple_counts
relation subsidiary
type profession
type organization
action find_reverse_tuple_counts
relation subsidiary
type profession
type business enterprise
action count
action filter_multi_types
action find_reverse
entity Sega
relation subsidiary
type organization
type business enterprise
[[{'concept': 'organization'}, {'concept': 'business enterprise'}], 'subsidiary', {'concept': 'profession'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?x ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?c ) AS ?y ) WHERE { ?c rdf:type ?q . VALUES ( ?q ) { ( ontology:organization ) ( ontology:business_enterprise ) } } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?u ) WHERE { ?b property:subsidiary resource:Sega . { { ?b rdf:type ontology:organization } UNION { ?b rdf:type ontology:business_enterprise } } } } . FILTER ( ?y > ?u ) }
[]
profession organization business enterprise
SYSTEM
2
Q800120 Q959672
(c(Q43229)|c(Q4830453),P355,c(Q28640))
action count
action greater
action union
action find_reverse_tuple_counts
relation P355
type Q28640
type Q43229
action find_reverse_tuple_counts
relation P355
type Q28640
type Q4830453
action count
action filter_multi_types
action find_reverse
entity Q122741
relation P355
type Q43229
type Q4830453
[ANSWER]
[[{'concept': 'Q43229'}, {'concept': 'Q4830453'}], 'P355', {'concept': 'Q28640'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?x ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?c ) AS ?y ) WHERE { ?c rdf:type ?q . VALUES ( ?q ) { ( ontology:Q43229 ) ( ontology:Q4830453 ) } } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?u ) WHERE { ?b property:P355 resource:Q122741 . { { ?b rdf:type ontology:Q43229 } UNION { ?b rdf:type ontology:Q4830453 } } } } . FILTER ( ?y > ?u ) }
Humongous Daybreak Game Company
2
action count
action greater
action union
action find_reverse_tuple_counts
relation subsidiary
type profession
type organization
action find_reverse_tuple_counts
relation subsidiary
type profession
type business enterprise
action count
action filter_multi_types
action find_reverse
entity Sega
relation subsidiary
type organization
type business enterprise
[[{'concept': 'organization'}, {'concept': 'business enterprise'}], 'subsidiary', {'concept': 'profession'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?x ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?c ) AS ?y ) WHERE { ?c rdf:type ?q . VALUES ( ?q ) { ( ontology:organization ) ( ontology:business_enterprise ) } } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?u ) WHERE { ?b property:subsidiary resource:Sega . { { ?b rdf:type ontology:organization } UNION { ?b rdf:type ontology:business_enterprise } } } } . FILTER ( ?y > ?u ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q23076
P355
Q1269299 Q740752
USER
Which transport companies are more number of business organizations the subordinate of than Nederlandse Spoorwegen ?
(c(Q740752),P355,c(Q1269299))
action greater
action find_tuple_counts
relation P355
type Q740752
type Q1269299
action count
action filter_type
action find
entity Q23076
relation P355
type Q740752
[{'concept': 'Q740752'}, 'P355', {'concept': 'Q1269299'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?m ) WHERE { resource:Q23076 property:P355 ?s . ?s rdf:type ontology:Q740752 } } . FILTER ( ?z > ?m ) . { SELECT DISTINCT ?b ( COUNT ( ?o ) AS ?z ) WHERE { ?b property:P355 ?o . ?b rdf:type ontology:Q740752 . ?o rdf:type ontology:Q1269299 } GROUP BY ?b } }
Nederlandse Spoorwegen
action greater
action find_tuple_counts
relation subsidiary
type transport company
type type of business entity
action count
action filter_type
action find
entity Nederlandse Spoorwegen
relation subsidiary
type transport company
[{'concept': 'transport company'}, 'subsidiary', {'concept': 'type of business entity'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?m ) WHERE { resource:Nederlandse_Spoorwegen property:subsidiary ?s . ?s rdf:type ontology:transport_company } } . FILTER ( ?z > ?m ) . { SELECT DISTINCT ?b ( COUNT ( ?o ) AS ?z ) WHERE { ?b property:subsidiary ?o . ?b rdf:type ontology:transport_company . ?o rdf:type ontology:type_of_business_entity } GROUP BY ?b } }
[]
type of business entity transport company
Q9322 Q2245513 Q1332242
SYSTEM
Deutsche Bahn, Sanyo Electric Railway, Tokyu Corporation
Q9322 Q2245513 Q1332242
(c(Q740752),P355,c(Q1269299))
action greater
action find_tuple_counts
relation P355
type Q740752
type Q1269299
action count
action filter_type
action find
entity Q23076
relation P355
type Q740752
[ANSWERS] are more number of business organizations the subordinate of than Nederlandse Spoorwegen
[{'concept': 'Q740752'}, 'P355', {'concept': 'Q1269299'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?m ) WHERE { resource:Q23076 property:P355 ?s . ?s rdf:type ontology:Q740752 } } . FILTER ( ?z > ?m ) . { SELECT DISTINCT ?b ( COUNT ( ?o ) AS ?z ) WHERE { ?b property:P355 ?o . ?b rdf:type ontology:Q740752 . ?o rdf:type ontology:Q1269299 } GROUP BY ?b } }
Deutsche Bahn Sanyo Electric Railway Tokyu Corporation
Deutsche Bahn, Sanyo Electric Railway and Tokyu Corporation are more number of business organizations the subordinate of than Nederlandse Spoorwegen
Deutsche Bahn Sanyo Electric Railway Tokyu Corporation
action greater
action find_tuple_counts
relation subsidiary
type transport company
type type of business entity
action count
action filter_type
action find
entity Nederlandse Spoorwegen
relation subsidiary
type transport company
[{'concept': 'transport company'}, 'subsidiary', {'concept': 'type of business entity'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?m ) WHERE { resource:Nederlandse_Spoorwegen property:subsidiary ?s . ?s rdf:type ontology:transport_company } } . FILTER ( ?z > ?m ) . { SELECT DISTINCT ?b ( COUNT ( ?o ) AS ?z ) WHERE { ?b property:subsidiary ?o . ?b rdf:type ontology:transport_company . ?o rdf:type ontology:type_of_business_entity } GROUP BY ?b } }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P355
Q874405 Q740752
USER
Which social groups are an auxiliary of exactly 1 transport company ?
(c(Q740752),P355,c(Q874405))
action equal
action find_reverse_tuple_counts
relation P355
type Q874405
type Q740752
value 1
[{'concept': 'Q740752'}, 'P355', {'concept': 'Q874405'}]
SELECT DISTINCT ?m WHERE { FILTER ( ?d = 1 ) . { SELECT DISTINCT ?m ( COUNT ( ?v ) AS ?d ) WHERE { ?v property:P355 ?m . ?m rdf:type ontology:Q874405 . ?v rdf:type ontology:Q740752 } GROUP BY ?m } }
action equal
action find_reverse_tuple_counts
relation subsidiary
type social group
type transport company
value 1
[{'concept': 'transport company'}, 'subsidiary', {'concept': 'social group'}]
SELECT DISTINCT ?m WHERE { FILTER ( ?d = 1 ) . { SELECT DISTINCT ?m ( COUNT ( ?v ) AS ?d ) WHERE { ?v property:subsidiary ?m . ?m rdf:type ontology:social_group . ?v rdf:type ontology:transport_company } GROUP BY ?m } }
[]
social group transport company
Q7437933 Q7988225 Q6670591
SYSTEM
Scottish Region of British Railways, Western Region of British Railways, London Midland Region of British Railways
Q7437933 Q7988225 Q6670591 Q5330408 Q7570387 Q7055281
(c(Q740752),P355,c(Q874405))
action equal
action find_reverse_tuple_counts
relation P355
type Q874405
type Q740752
value 1
[ANSWERS] are an auxiliary of exactly 1 transport company
[{'concept': 'Q740752'}, 'P355', {'concept': 'Q874405'}]
SELECT DISTINCT ?m WHERE { FILTER ( ?d = 1 ) . { SELECT DISTINCT ?m ( COUNT ( ?v ) AS ?d ) WHERE { ?v property:P355 ?m . ?m rdf:type ontology:Q874405 . ?v rdf:type ontology:Q740752 } GROUP BY ?m } }
Scottish Region of British Railways Western Region of British Railways London Midland Region of British Railways Eastern Region of British Railways Southern Region of British Railways North Eastern Region of British Railways
Scottish Region of British Railways, Western Region of British Railways and London Midland Region of British Railways are an auxiliary of exactly 1 transport company
Scottish Region of British Railways Western Region of British Railways London Midland Region of British Railways
action equal
action find_reverse_tuple_counts
relation subsidiary
type social group
type transport company
value 1
[{'concept': 'transport company'}, 'subsidiary', {'concept': 'social group'}]
SELECT DISTINCT ?m WHERE { FILTER ( ?d = 1 ) . { SELECT DISTINCT ?m ( COUNT ( ?v ) AS ?d ) WHERE { ?v property:subsidiary ?m . ?m rdf:type ontology:social_group . ?v rdf:type ontology:transport_company } GROUP BY ?m } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q7401332 Q122741
P17
Q15617994
USER
Which administrative territories are Sega or Saint Gregory the Illuminator Church, Tbilisi situated in ?
OR((Q122741,P17,c(Q15617994)), (Q7401332,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q122741
relation P17
action find
entity Q7401332
relation P17
type Q15617994
{'OR': [['Q122741', 'P17', {'concept': 'Q15617994'}], ['Q7401332', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q15617994 . { { resource:Q7401332 property:P17 ?n } UNION { resource:Q122741 property:P17 ?n } } }
Saint Gregory the Illuminator Church, Tbilisi Sega
action filter_type
action union
action find
entity Sega
relation country
action find
entity Saint Gregory the Illuminator Church, Tbilisi
relation country
type designation for an administrative territorial entity
{'OR': [['Sega', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Saint Gregory the Illuminator Church, Tbilisi', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Saint_Gregory_the_Illuminator_Church,_Tbilisi property:country ?n } UNION { resource:Sega property:country ?n } } }
[]
designation for an administrative territorial entity
Q17 Q230
SYSTEM
Japan, Georgia
Q17 Q230
OR((Q122741,P17,c(Q15617994)), (Q7401332,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q122741
relation P17
action find
entity Q7401332
relation P17
type Q15617994
Sega or Saint Gregory the Illuminator Church , Tbilisi are situated between [ANSWERS]
{'OR': [['Q122741', 'P17', {'concept': 'Q15617994'}], ['Q7401332', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q15617994 . { { resource:Q7401332 property:P17 ?n } UNION { resource:Q122741 property:P17 ?n } } }
Japan Georgia
Sega or Saint Gregory the Illuminator Church , Tbilisi are situated between Japan and Georgia
Japan Georgia
action filter_type
action union
action find
entity Sega
relation country
action find
entity Saint Gregory the Illuminator Church, Tbilisi
relation country
type designation for an administrative territorial entity
{'OR': [['Sega', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Saint Gregory the Illuminator Church, Tbilisi', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Saint_Gregory_the_Illuminator_Church,_Tbilisi property:country ?n } UNION { resource:Sega property:country ?n } } }
[]
Clarification
Comparative|Count over More/Less|Single entity type|Indirect
P495
Q15617994 Q2031291
USER
How many administrative territories did lesser number of releases originate than that administrative territory ?
(c(Q2031291),P495,c(Q15617994))
[{'concept': 'Q2031291'}, 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { ?z property:P495 ?y . ?z rdf:type ontology:Q2031291 . ?y rdf:type ontology:Q15617994 }
[{'concept': 'release'}, 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { ?z property:country_of_origin ?y . ?z rdf:type ontology:release . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity release
Comparative|Count over More/Less|Single entity type|Clarification
Q230
SYSTEM
Did you mean Georgia ?
(c(Q2031291),P495,c(Q15617994))
[ANSWER]
[{'concept': 'Q2031291'}, 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { ?z property:P495 ?y . ?z rdf:type ontology:Q2031291 . ?y rdf:type ontology:Q15617994 }
Did you mean Georgia ?
Georgia
[{'concept': 'release'}, 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { ?z property:country_of_origin ?y . ?z rdf:type ontology:release . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (Count) (All)
USER
Yes
(c(Q2031291),P495,c(Q15617994))
[{'concept': 'Q2031291'}, 'P495', {'concept': 'Q15617994'}]
[{'concept': 'release'}, 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
[]
SYSTEM
0
(c(Q2031291),P495,c(Q15617994))
[ANSWER]
[{'concept': 'Q2031291'}, 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { ?z property:P495 ?y . ?z rdf:type ontology:Q2031291 . ?y rdf:type ontology:Q15617994 }
0
[{'concept': 'release'}, 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { ?z property:country_of_origin ?y . ?z rdf:type ontology:release . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q15617994
USER
How many administrative territories have tactful political relations with atleast 77 administrative territories ?
(c(Q15617994),P530,c(Q15617994))
action count
action atleast
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
value 77
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?a ) WHERE { { SELECT DISTINCT ?p ( COUNT ( ?n ) AS ?q ) WHERE { ?p property:P530 ?n . ?n rdf:type ontology:Q15617994 . ?p rdf:type ontology:Q15617994 } GROUP BY ?p } . FILTER ( ?q >= 77 ) }
action count
action atleast
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 77
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?a ) WHERE { { SELECT DISTINCT ?p ( COUNT ( ?n ) AS ?q ) WHERE { ?p property:diplomatic_relation ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?p } . FILTER ( ?q >= 77 ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
SYSTEM
1
Q230
(c(Q15617994),P530,c(Q15617994))
action count
action atleast
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
value 77
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?a ) WHERE { { SELECT DISTINCT ?p ( COUNT ( ?n ) AS ?q ) WHERE { ?p property:P530 ?n . ?n rdf:type ontology:Q15617994 . ?p rdf:type ontology:Q15617994 } GROUP BY ?p } . FILTER ( ?q >= 77 ) }
Georgia
1
action count
action atleast
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 77
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?a ) WHERE { { SELECT DISTINCT ?p ( COUNT ( ?n ) AS ?q ) WHERE { ?p property:diplomatic_relation ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?p } . FILTER ( ?q >= 77 ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q34020
P530
Q15617994 Q15617994
USER
Which administrative territories have tactful political relations with around the same number of administrative territories as Niue ?
(c(Q15617994),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q34020
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?o ) WHERE { ?f rdf:type ontology:Q15617994 . resource:Q34020 property:P530 ?f } } . FILTER ( ?r = ?o ) . { SELECT DISTINCT ?n ( COUNT ( ?x ) AS ?r ) WHERE { ?n property:P530 ?x . ?n rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q15617994 } GROUP BY ?n } }
Niue
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Niue
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?o ) WHERE { ?f rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Niue property:diplomatic_relation ?f } } . FILTER ( ?r = ?o ) . { SELECT DISTINCT ?n ( COUNT ( ?x ) AS ?r ) WHERE { ?n property:diplomatic_relation ?x . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?n } }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q55 Q36 Q148
SYSTEM
Netherlands, Poland, People's Republic of China
Q702 Q804 Q800 Q419 Q668 Q414 Q55 Q145 Q262 Q148 Q783 Q265 Q37 Q712 Q711 Q717 Q837 Q252 Q399 Q398 Q403 Q657 Q258 Q45 Q43 Q41 Q792 Q790 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q986 Q822 Q241 Q242 Q244 Q811 Q33 Q32 Q31 Q924 Q36 Q34 Q928 Q39 Q739 Q423 Q983 Q851 Q733 Q29999 Q854 Q734 Q819 Q424 Q730 Q736 Q236 Q232 Q233 Q238 Q20 Q1045 Q1041 Q27 Q28 Q921 Q1049 Q1027 Q1020 Q189 Q843 Q842 Q1029 Q1028 Q786 Q228 Q227 Q225 Q224 Q222 Q221 Q96 Q229 Q347 Q17 Q902 Q1036 Q1037 Q974 Q1032 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 Q697 Q298 Q695 Q115 Q117 Q754 Q750 Q212 Q213 Q211 Q217 Q214 Q215 Q218 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q833 Q977 Q1009 Q1008 Q971 Q683 Q34020 Q686 Q836 Q574 Q79 Q77 Q878 Q774 Q948 Q817 Q810 Q1019 Q1016 Q1011 Q945 Q678 Q29 Q33788 Q869
(c(Q15617994),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q34020
relation P530
type Q15617994
[ANSWERS] have tactful political relations with around the same number of administrative territories as Niue
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?o ) WHERE { ?f rdf:type ontology:Q15617994 . resource:Q34020 property:P530 ?f } } . FILTER ( ?r = ?o ) . { SELECT DISTINCT ?n ( COUNT ( ?x ) AS ?r ) WHERE { ?n property:P530 ?x . ?n rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q15617994 } GROUP BY ?n } }
Federated States of Micronesia Panama Costa Rica Peru India Argentina Netherlands United Kingdom Algeria People's Republic of China Honduras Uzbekistan Lithuania Fiji Mongolia Venezuela Nepal Indonesia Armenia Bahrain Serbia Chad South Africa Portugal Turkey Greece El Salvador Haiti Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam Eritrea Lebanon Cuba Belize Barbados Nicaragua Finland Luxembourg Belgium Tanzania Poland Sweden Philippines Switzerland Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Kingdom of the Netherlands Sri Lanka Guyana Laos Cambodia Suriname Ecuador Montenegro Kazakhstan Malta San Marino Norway Somalia Senegal Ireland Hungary Brunei Sudan Mauritius Malawi Iceland Pakistan Oman Mozambique Morocco Dominican Republic Andorra Azerbaijan Bosnia and Herzegovina Croatia Albania Republic of Macedonia Mexico Cyprus Liechtenstein Japan Bangladesh Uganda Rwanda Democratic Republic of the Congo Niger Nigeria Namibia Estonia Burkina Faso Burundi Benin Botswana Nauru Chile Palau Ethiopia Ghana Trinidad and Tobago Bolivia Ukraine Czech Republic Latvia Republic of Moldova Slovakia Slovenia Romania Bulgaria Mali Bhutan Angola Guinea-Bissau Guinea Gambia Malaysia Djibouti Cameroon Côte d'Ivoire Republic of the Congo Samoa Niue Vanuatu Myanmar East Timor Egypt Uruguay United Arab Emirates Guatemala Tunisia Kuwait Jordan Madagascar Libya Cape Verde Togo Tonga Spain New Caledonia Thailand
Netherlands, Poland and People's Republic of China have tactful political relations with around the same number of administrative territories as Niue
Netherlands Poland People's Republic of China
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Niue
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?o ) WHERE { ?f rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Niue property:diplomatic_relation ?f } } . FILTER ( ?r = ?o ) . { SELECT DISTINCT ?n ( COUNT ( ?x ) AS ?r ) WHERE { ?n property:diplomatic_relation ?x . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?n } }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q4170167
P530
Q1048835
USER
Are Dudyn known to have diplomatic connections with those administrative territories ?
(Q4170167,P530,Q55) (Q4170167,P530,Q36) (Q4170167,P530,Q148)
action is_in
entity prev_answer
action find
entity Q4170167
relation P530
['Q4170167', 'P530', 'Q55'] ['Q4170167', 'P530', 'Q36'] ['Q4170167', 'P530', 'Q148']
ASK WHERE { VALUES ( ?e ) { ( resource:Q702 ) ( resource:Q804 ) ( resource:Q800 ) } . resource:Q4170167 property:P530 ?e }
Dudyn
action is_in
entity prev_answer
action find
entity Dudyn
relation diplomatic relation
['Dudyn', 'diplomatic relation', 'Netherlands'] ['Dudyn', 'diplomatic relation', 'Poland'] ['Dudyn', 'diplomatic relation', "People's Republic of China"]
ASK WHERE { VALUES ( ?e ) { ( resource:Federated_States_of_Micronesia ) ( resource:Panama ) ( resource:Costa_Rica ) } . resource:Dudyn property:diplomatic_relation ?e }
[]
political territorial entity
SYSTEM
NO
(Q4170167,P530,Q55) (Q4170167,P530,Q36) (Q4170167,P530,Q148)
action is_in
entity prev_answer
action find
entity Q4170167
relation P530
[ANSWER]
['Q4170167', 'P530', 'Q55'] ['Q4170167', 'P530', 'Q36'] ['Q4170167', 'P530', 'Q148']
ASK WHERE { VALUES ( ?e ) { ( resource:Q702 ) ( resource:Q804 ) ( resource:Q800 ) } . resource:Q4170167 property:P530 ?e }
No
action is_in
entity prev_answer
action find
entity Dudyn
relation diplomatic relation
['Dudyn', 'diplomatic relation', 'Netherlands'] ['Dudyn', 'diplomatic relation', 'Poland'] ['Dudyn', 'diplomatic relation', "People's Republic of China"]
ASK WHERE { VALUES ( ?e ) { ( resource:Federated_States_of_Micronesia ) ( resource:Panama ) ( resource:Costa_Rica ) } . resource:Dudyn property:diplomatic_relation ?e }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q148 Q23303213
P35
Q502895
USER
Does Harry A. Marmer have the highest formal authority in People's Republic of China ?
(Q148,P35,Q23303213)
action is_in
entity Q23303213
action find
entity Q148
relation P35
['Q148', 'P35', 'Q23303213']
ASK WHERE { resource:Q148 property:P35 resource:Q23303213 }
People's Republic of China Harry A. Marmer
action is_in
entity Harry A. Marmer
action find
entity People's Republic of China
relation head of state
["People's Republic of China", 'head of state', 'Harry A. Marmer']
ASK WHERE { resource:People's_Republic_of_China property:head_of_state resource:Harry_A._Marmer }
[]
common name
SYSTEM
NO
(Q148,P35,Q23303213)
action is_in
entity Q23303213
action find
entity Q148
relation P35
[ANSWER]
['Q148', 'P35', 'Q23303213']
ASK WHERE { resource:Q148 property:P35 resource:Q23303213 }
No
action is_in
entity Harry A. Marmer
action find
entity People's Republic of China
relation head of state
["People's Republic of China", 'head of state', 'Harry A. Marmer']
ASK WHERE { resource:People's_Republic_of_China property:head_of_state resource:Harry_A._Marmer }
[]