Simple Question (Direct)
Simple Question
Q1930077
P21
Q290
USER
Which sex does Michaela Merten belong to ?
(Q1930077,P21,c(Q290))
action filter_type
action find
entity Q1930077
relation P21
type Q290
['Q1930077', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q290 . resource:Q1930077 property:P21 ?j }
Michaela Merten
action filter_type
action find
entity Michaela Merten
relation gender
type sex
['Michaela Merten', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:sex . resource:Michaela_Merten property:gender ?j }
[]
sex
Q6581072
SYSTEM
female
Q6581072
(Q1930077,P21,c(Q290))
action filter_type
action find
entity Q1930077
relation P21
type Q290
Michaela Merten belongs to [ANSWER]
['Q1930077', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q290 . resource:Q1930077 property:P21 ?j }
female
Michaela Merten belongs to female
female
action filter_type
action find
entity Michaela Merten
relation gender
type sex
['Michaela Merten', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:sex . resource:Michaela_Merten property:gender ?j }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1930077
P19
Q56061
USER
Where was Michaela Merten born ?
(Q1930077,P19,c(Q56061))
action filter_type
action find
entity Q1930077
relation P19
type Q56061
['Q1930077', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?z WHERE { resource:Q1930077 property:P19 ?z . ?z rdf:type ontology:Q56061 }
Michaela Merten
action filter_type
action find
entity Michaela Merten
relation place of birth
type administrative territorial entity
['Michaela Merten', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { resource:Michaela_Merten property:place_of_birth ?z . ?z rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q384544
SYSTEM
Karlovy Vary
Q384544
(Q1930077,P19,c(Q56061))
action filter_type
action find
entity Q1930077
relation P19
type Q56061
Michaela Merten was born in [ANSWER]
['Q1930077', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?z WHERE { resource:Q1930077 property:P19 ?z . ?z rdf:type ontology:Q56061 }
Karlovy Vary
Michaela Merten was born in Karlovy Vary
Karlovy Vary
action filter_type
action find
entity Michaela Merten
relation place of birth
type administrative territorial entity
['Michaela Merten', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { resource:Michaela_Merten property:place_of_birth ?z . ?z rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q11497689
Q56061
USER
And also tell me about Shichinosuke Oshimoto?
(Q11497689,P19,c(Q56061))
action filter_type
action find
entity Q11497689
relation P19
type Q56061
['Q11497689', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?g WHERE { resource:Q11497689 property:P19 ?g . ?g rdf:type ontology:Q56061 }
Shichinosuke Oshimoto
action filter_type
action find
entity Shichinosuke Oshimoto
relation place of birth
type administrative territorial entity
['Shichinosuke Oshimoto', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { resource:Shichinosuke_Oshimoto property:place_of_birth ?g . ?g rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1490
SYSTEM
Tokyo
Q1490
(Q11497689,P19,c(Q56061))
action filter_type
action find
entity Q11497689
relation P19
type Q56061
[ANSWER]
['Q11497689', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?g WHERE { resource:Q11497689 property:P19 ?g . ?g rdf:type ontology:Q56061 }
Tokyo
Tokyo
action filter_type
action find
entity Shichinosuke Oshimoto
relation place of birth
type administrative territorial entity
['Shichinosuke Oshimoto', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { resource:Shichinosuke_Oshimoto property:place_of_birth ?g . ?g rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q1490
P840
Q5398426 Q15961987
USER
How many television series and television genres have a setting location of Tokyo ?
(c(Q5398426),P840,Q1490) (c(Q15961987),P840,Q1490)
action count
action union
action filter_type
action find_reverse
entity Q1490
relation P840
type Q5398426
action filter_type
action find_reverse
entity Q1490
relation P840
type Q15961987
[{'concept': 'Q5398426'}, 'P840', 'Q1490'] [{'concept': 'Q15961987'}, 'P840', 'Q1490']
SELECT DISTINCT ( COUNT ( ?g ) AS ?c ) WHERE { ?g rdf:type ?i . VALUES ( ?i ) { ( ontology:Q5398426 ) ( ontology:Q15961987 ) } }
Tokyo
action count
action union
action filter_type
action find_reverse
entity Tokyo
relation narrative location
type television series
action filter_type
action find_reverse
entity Tokyo
relation narrative location
type television genre
[{'concept': 'television series'}, 'narrative location', 'Tokyo'] [{'concept': 'television genre'}, 'narrative location', 'Tokyo']
SELECT DISTINCT ( COUNT ( ?g ) AS ?c ) WHERE { ?g rdf:type ?i . VALUES ( ?i ) { ( ontology:television_series ) ( ontology:television_genre ) } }
[]
television series television genre
SYSTEM
1 television series and 1 television genres
Q3223150 Q1195724
(c(Q5398426),P840,Q1490) (c(Q15961987),P840,Q1490)
action count
action union
action filter_type
action find_reverse
entity Q1490
relation P840
type Q5398426
action filter_type
action find_reverse
entity Q1490
relation P840
type Q15961987
[ANSWER]
[{'concept': 'Q5398426'}, 'P840', 'Q1490'] [{'concept': 'Q15961987'}, 'P840', 'Q1490']
SELECT DISTINCT ( COUNT ( ?g ) AS ?c ) WHERE { ?g rdf:type ?i . VALUES ( ?i ) { ( ontology:Q5398426 ) ( ontology:Q15961987 ) } }
Kodoku no Gourmet Detective Conan: Magician of the Silver Sky
1 television series and 1 television genres
action count
action union
action filter_type
action find_reverse
entity Tokyo
relation narrative location
type television series
action filter_type
action find_reverse
entity Tokyo
relation narrative location
type television genre
[{'concept': 'television series'}, 'narrative location', 'Tokyo'] [{'concept': 'television genre'}, 'narrative location', 'Tokyo']
SELECT DISTINCT ( COUNT ( ?g ) AS ?c ) WHERE { ?g rdf:type ?i . VALUES ( ?i ) { ( ontology:television_series ) ( ontology:television_genre ) } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q1490 Q4733905
P361
Q83620
USER
How many thoroughfares are Tokyo or Almondsbury Interchange a component of ?
(Q1490,P361,c(Q83620)) (Q4733905,P361,c(Q83620))
action count
action union
action filter_type
action find
entity Q1490
relation P361
type Q83620
action filter_type
action find
entity Q4733905
relation P361
type Q83620
['Q1490', 'P361', {'concept': 'Q83620'}] ['Q4733905', 'P361', {'concept': 'Q83620'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?l ) WHERE { ?k property:P361 ?c . VALUES ( ?k ) { ( resource:Q1490 ) ( resource:Q4733905 ) } }
Tokyo Almondsbury Interchange
action count
action union
action filter_type
action find
entity Tokyo
relation part of
type thoroughfare
action filter_type
action find
entity Almondsbury Interchange
relation part of
type thoroughfare
['Tokyo', 'part of', {'concept': 'thoroughfare'}] ['Almondsbury Interchange', 'part of', {'concept': 'thoroughfare'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?l ) WHERE { ?k property:part_of ?c . VALUES ( ?k ) { ( resource:Tokyo ) ( resource:Almondsbury_Interchange ) } }
[]
thoroughfare
SYSTEM
2
Q1824663 Q1638174
(Q1490,P361,c(Q83620)) (Q4733905,P361,c(Q83620))
action count
action union
action filter_type
action find
entity Q1490
relation P361
type Q83620
action filter_type
action find
entity Q4733905
relation P361
type Q83620
[ANSWER]
['Q1490', 'P361', {'concept': 'Q83620'}] ['Q4733905', 'P361', {'concept': 'Q83620'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?l ) WHERE { ?k property:P361 ?c . VALUES ( ?k ) { ( resource:Q1490 ) ( resource:Q4733905 ) } }
M5 motorway M4 motorway
2
action count
action union
action filter_type
action find
entity Tokyo
relation part of
type thoroughfare
action filter_type
action find
entity Almondsbury Interchange
relation part of
type thoroughfare
['Tokyo', 'part of', {'concept': 'thoroughfare'}] ['Almondsbury Interchange', 'part of', {'concept': 'thoroughfare'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?l ) WHERE { ?k property:part_of ?c . VALUES ( ?k ) { ( resource:Tokyo ) ( resource:Almondsbury_Interchange ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1490
P1376
Q3024240
USER
Which former country has Tokyo as its capital ?
(Q1490,P1376,c(Q3024240))
action filter_type
action find
entity Q1490
relation P1376
type Q3024240
['Q1490', 'P1376', {'concept': 'Q3024240'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q3024240 . resource:Q1490 property:P1376 ?c }
Tokyo
action filter_type
action find
entity Tokyo
relation capital of
type former country
['Tokyo', 'capital of', {'concept': 'former country'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:former_country . resource:Tokyo property:capital_of ?c }
[]
former country
Q188712
SYSTEM
Empire of Japan
Q188712
(Q1490,P1376,c(Q3024240))
action filter_type
action find
entity Q1490
relation P1376
type Q3024240
[ANSWER] has Tokyo as its capital
['Q1490', 'P1376', {'concept': 'Q3024240'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q3024240 . resource:Q1490 property:P1376 ?c }
Empire of Japan
Empire of Japan has Tokyo as its capital
Empire of Japan
action filter_type
action find
entity Tokyo
relation capital of
type former country
['Tokyo', 'capital of', {'concept': 'former country'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:former_country . resource:Tokyo property:capital_of ?c }
[]
Simple Question (Ellipsis)
Incomplete|object parent is changed, subject and predicate remain same
Q1490
Q15617994
USER
And which administrative territory?
(Q1490,P1376,c(Q15617994))
action filter_type
action find
entity Q1490
relation P1376
type Q15617994
['Q1490', 'P1376', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { resource:Q1490 property:P1376 ?x . ?x rdf:type ontology:Q15617994 }
Tokyo
action filter_type
action find
entity Tokyo
relation capital of
type designation for an administrative territorial entity
['Tokyo', 'capital of', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { resource:Tokyo property:capital_of ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q17
SYSTEM
Japan
Q17
(Q1490,P1376,c(Q15617994))
action filter_type
action find
entity Q1490
relation P1376
type Q15617994
[ANSWER]
['Q1490', 'P1376', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { resource:Q1490 property:P1376 ?x . ?x rdf:type ontology:Q15617994 }
Japan
Japan
action filter_type
action find
entity Tokyo
relation capital of
type designation for an administrative territorial entity
['Tokyo', 'capital of', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { resource:Tokyo property:capital_of ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q213
P530
Q15617994 Q15617994
USER
How many administrative territories have diplomatic relationships with greater number of administrative territories than Czech Republic ?
(c(Q15617994),P530,c(Q15617994))
action count
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q213
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?u ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?r ) AS ?b ) WHERE { ?s rdf:type ontology:Q15617994 . ?r rdf:type ontology:Q15617994 . ?s property:P530 ?r } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?y ) WHERE { resource:Q213 property:P530 ?d . ?d rdf:type ontology:Q15617994 } } . FILTER ( ?b > ?y ) }
Czech Republic
action count
action greater
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 Czech Republic
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 ( COUNT ( ?s ) AS ?u ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?r ) AS ?b ) WHERE { ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . ?s property:diplomatic_relation ?r } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?y ) WHERE { resource:Czech_Republic property:diplomatic_relation ?d . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?b > ?y ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
SYSTEM
21
Q801 Q805 Q668 Q414 Q142 Q145 Q148 Q403 Q159 Q43 Q155 Q796 Q794 Q30 Q38 Q347 Q17 Q79 Q1016 Q1011 Q953
(c(Q15617994),P530,c(Q15617994))
action count
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q213
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?u ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?r ) AS ?b ) WHERE { ?s rdf:type ontology:Q15617994 . ?r rdf:type ontology:Q15617994 . ?s property:P530 ?r } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?y ) WHERE { resource:Q213 property:P530 ?d . ?d rdf:type ontology:Q15617994 } } . FILTER ( ?b > ?y ) }
Israel Yemen India Argentina France United Kingdom People's Republic of China Serbia Russia Turkey Brazil Iraq Iran United States of America Italy Liechtenstein Japan Egypt Libya Cape Verde Zambia
21
action count
action greater
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 Czech Republic
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 ( COUNT ( ?s ) AS ?u ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?r ) AS ?b ) WHERE { ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . ?s property:diplomatic_relation ?r } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?y ) WHERE { resource:Czech_Republic property:diplomatic_relation ?d . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?b > ?y ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q43
P530
Q15617994 Q15617994
USER
And how about Turkey?
(c(Q15617994),P530,c(Q15617994))
action count
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q43
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?j ) WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?p ) WHERE { resource:Q43 property:P530 ?d . ?d rdf:type ontology:Q15617994 } } . FILTER ( ?f > ?p ) . { SELECT DISTINCT ?l ( COUNT ( ?t ) AS ?f ) WHERE { ?l property:P530 ?t . ?l rdf:type ontology:Q15617994 . ?t rdf:type ontology:Q15617994 } GROUP BY ?l } }
Turkey
action count
action greater
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 Turkey
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 ( COUNT ( ?l ) AS ?j ) WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?p ) WHERE { resource:Turkey property:diplomatic_relation ?d . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?f > ?p ) . { SELECT DISTINCT ?l ( COUNT ( ?t ) AS ?f ) WHERE { ?l property:diplomatic_relation ?t . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?l } }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
SYSTEM
12
Q801 Q805 Q142 Q145 Q148 Q403 Q159 Q155 Q30 Q38 Q17 Q1011
(c(Q15617994),P530,c(Q15617994))
action count
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q43
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?j ) WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?p ) WHERE { resource:Q43 property:P530 ?d . ?d rdf:type ontology:Q15617994 } } . FILTER ( ?f > ?p ) . { SELECT DISTINCT ?l ( COUNT ( ?t ) AS ?f ) WHERE { ?l property:P530 ?t . ?l rdf:type ontology:Q15617994 . ?t rdf:type ontology:Q15617994 } GROUP BY ?l } }
Israel Yemen France United Kingdom People's Republic of China Serbia Russia Brazil United States of America Italy Japan Cape Verde
12
action count
action greater
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 Turkey
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 ( COUNT ( ?l ) AS ?j ) WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?p ) WHERE { resource:Turkey property:diplomatic_relation ?d . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?f > ?p ) . { SELECT DISTINCT ?l ( COUNT ( ?t ) AS ?f ) WHERE { ?l property:diplomatic_relation ?t . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?l } }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q956 Q1490
P190
Q56061
USER
Which administrative territories are the sister cities of Tokyo and Beijing ?
AND((Q1490,P190,c(Q56061)), (Q956,P190,c(Q56061)))
action filter_type
action intersection
action find
entity Q1490
relation P190
action find
entity Q956
relation P190
type Q56061
{'AND': [['Q1490', 'P190', {'concept': 'Q56061'}], ['Q956', 'P190', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?b WHERE { resource:Q1490 property:P190 ?b . resource:Q956 property:P190 ?b . ?b rdf:type ontology:Q56061 }
Beijing Tokyo
action filter_type
action intersection
action find
entity Tokyo
relation sister city
action find
entity Beijing
relation sister city
type administrative territorial entity
{'AND': [['Tokyo', 'sister city', {'concept': 'administrative territorial entity'}], ['Beijing', 'sister city', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?b WHERE { resource:Tokyo property:sister_city ?b . resource:Beijing property:sister_city ?b . ?b rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q64 Q649 Q60 Q3630 Q84
SYSTEM
Berlin, Moscow, New York City, Jakarta, London
Q64 Q649 Q60 Q3630 Q84
AND((Q1490,P190,c(Q56061)), (Q956,P190,c(Q56061)))
action filter_type
action intersection
action find
entity Q1490
relation P190
action find
entity Q956
relation P190
type Q56061
[ANSWERS] are the sister cities of Tokyo and Beijing
{'AND': [['Q1490', 'P190', {'concept': 'Q56061'}], ['Q956', 'P190', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?b WHERE { resource:Q1490 property:P190 ?b . resource:Q956 property:P190 ?b . ?b rdf:type ontology:Q56061 }
Berlin Moscow New York City Jakarta London
Berlin, Moscow, New York City, Jakarta and London are the sister cities of Tokyo and Beijing
Berlin Moscow New York City Jakarta London
action filter_type
action intersection
action find
entity Tokyo
relation sister city
action find
entity Beijing
relation sister city
type administrative territorial entity
{'AND': [['Tokyo', 'sister city', {'concept': 'administrative territorial entity'}], ['Beijing', 'sister city', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?b WHERE { resource:Tokyo property:sister_city ?b . resource:Beijing property:sister_city ?b . ?b rdf:type ontology:administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q5820869
P190
Q56061
USER
Are Aznavleh, Isfahan sister town of those ones ?
(Q5820869,P190,Q64) (Q5820869,P190,Q649) (Q5820869,P190,Q60) (Q5820869,P190,Q3630) (Q5820869,P190,Q84)
action is_in
entity prev_answer
action find
entity Q5820869
relation P190
['Q5820869', 'P190', 'Q64'] ['Q5820869', 'P190', 'Q649'] ['Q5820869', 'P190', 'Q60'] ['Q5820869', 'P190', 'Q3630'] ['Q5820869', 'P190', 'Q84']
ASK WHERE { resource:Q5820869 property:P190 ?v . VALUES ( ?v ) { ( resource:Q64 ) ( resource:Q649 ) ( resource:Q60 ) } }
Aznavleh, Isfahan
action is_in
entity prev_answer
action find
entity Aznavleh, Isfahan
relation sister city
['Aznavleh, Isfahan', 'sister city', 'Berlin'] ['Aznavleh, Isfahan', 'sister city', 'Moscow'] ['Aznavleh, Isfahan', 'sister city', 'New York City'] ['Aznavleh, Isfahan', 'sister city', 'Jakarta'] ['Aznavleh, Isfahan', 'sister city', 'London']
ASK WHERE { resource:Aznavleh,_Isfahan property:sister_city ?v . VALUES ( ?v ) { ( resource:Berlin ) ( resource:Moscow ) ( resource:New_York_City ) } }
[]
administrative territorial entity
SYSTEM
NO
(Q5820869,P190,Q64) (Q5820869,P190,Q649) (Q5820869,P190,Q60) (Q5820869,P190,Q3630) (Q5820869,P190,Q84)
action is_in
entity prev_answer
action find
entity Q5820869
relation P190
[ANSWER]
['Q5820869', 'P190', 'Q64'] ['Q5820869', 'P190', 'Q649'] ['Q5820869', 'P190', 'Q60'] ['Q5820869', 'P190', 'Q3630'] ['Q5820869', 'P190', 'Q84']
ASK WHERE { resource:Q5820869 property:P190 ?v . VALUES ( ?v ) { ( resource:Q64 ) ( resource:Q649 ) ( resource:Q60 ) } }
No
action is_in
entity prev_answer
action find
entity Aznavleh, Isfahan
relation sister city
['Aznavleh, Isfahan', 'sister city', 'Berlin'] ['Aznavleh, Isfahan', 'sister city', 'Moscow'] ['Aznavleh, Isfahan', 'sister city', 'New York City'] ['Aznavleh, Isfahan', 'sister city', 'Jakarta'] ['Aznavleh, Isfahan', 'sister city', 'London']
ASK WHERE { resource:Aznavleh,_Isfahan property:sister_city ?v . VALUES ( ?v ) { ( resource:Berlin ) ( resource:Moscow ) ( resource:New_York_City ) } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P291
Q56061 Q571 Q11032
USER
How many administrative territories were atmost 54 books and newspapers published ?
(c(Q571)|c(Q11032),P291,c(Q56061))
action count
action atmost
action union
action find_reverse_tuple_counts
relation P291
type Q56061
type Q571
action find_reverse_tuple_counts
relation P291
type Q56061
type Q11032
value 54
[[{'concept': 'Q571'}, {'concept': 'Q11032'}], 'P291', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?q ) WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?k ) ?v WHERE { { ?m property:P291 ?v . ?m rdf:type ontology:Q11032 . ?v rdf:type ontology:Q56061 } UNION { ?m rdf:type ontology:Q571 . ?v rdf:type ontology:Q56061 . ?m property:P291 ?v } } GROUP BY ?v } . FILTER ( ?k <= 54 ) }
action count
action atmost
action union
action find_reverse_tuple_counts
relation place of publication
type administrative territorial entity
type book
action find_reverse_tuple_counts
relation place of publication
type administrative territorial entity
type newspaper
value 54
[[{'concept': 'book'}, {'concept': 'newspaper'}], 'place of publication', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?q ) WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?k ) ?v WHERE { { ?m property:place_of_publication ?v . ?m rdf:type ontology:newspaper . ?v rdf:type ontology:administrative_territorial_entity } UNION { ?m rdf:type ontology:book . ?v rdf:type ontology:administrative_territorial_entity . ?m property:place_of_publication ?v } } GROUP BY ?v } . FILTER ( ?k <= 54 ) }
[]
administrative territorial entity book newspaper
SYSTEM
347
Q807 Q909146 Q2536016 Q2512312 Q190583 Q27918 Q736775 Q2035368 Q3897 Q38511 Q3711 Q130191 Q203619 Q393 Q80670 Q25286 Q1544563 Q490595 Q3808 Q501661 Q982367 Q3150 Q484678 Q11974 Q151920 Q13375 Q36378 Q4093 Q2560090 Q10305 Q3404679 Q23337 Q33959 Q987 Q8692 Q23051 Q586 Q2656 Q1289 Q4581188 Q8851 Q10690 Q25748 Q9920 Q15688 Q12155 Q323801 Q15682 Q15684 Q170497 Q1757 Q41876 Q1754 Q749 Q99151 Q39561 Q48329 Q3992 Q2132 Q7880 Q1930 Q949651 Q3846 Q81046 Q597 Q5831 Q22889 Q12892 Q365 Q5836 Q132572 Q6157 Q12411 Q1718 Q43631 Q8818 Q11125 Q8810 Q15283655 Q4713350 Q428829 Q1335 Q1895 Q1034159 Q1155 Q103717 Q28911 Q3400328 Q14323 Q186237 Q14325 Q180233 Q484799 Q14328 Q576110 Q5083 Q1524 Q1489 Q209055 Q2020203 Q3561 Q40347 Q406 Q234178 Q739452 Q8678 Q15468 Q490 Q6346 Q495 Q2044 Q887 Q576165 Q5465 Q2141 Q54217 Q23436 Q1679567 Q2814 Q15093 Q2280 Q162279 Q3141 Q671288 Q72 Q17151 Q1490 Q1191195 Q102217 Q237 Q334 Q239 Q16559 Q16554 Q16555 Q16557 Q486306 Q621 Q8686 Q994 Q1513 Q3130 Q192517 Q1296 Q1297 Q3033 Q936183 Q1563 Q170263 Q35381 Q1748 Q45412 Q87 Q40269 Q2081145 Q1024911 Q193478 Q5112 Q2103 Q1741 Q178093 Q191133 Q11959 Q35493 Q538915 Q78 Q49111 Q71 Q2617448 Q37100 Q38022 Q36405 Q270 Q286048 Q1235510 Q15678 Q1931927 Q49241 Q3183 Q172157 Q1781 Q33935 Q582121 Q16567 Q1861 Q14318 Q14314 Q5092 Q15090 Q134620 Q956 Q15095 Q15098 Q1492 Q437 Q8745 Q1479 Q13580 Q2766547 Q18419 Q2941325 Q12258 Q202158 Q1017331 Q2090 Q2807 Q49145 Q42735 Q242478 Q327022 Q12225 Q23154 Q220 Q340 Q342 Q10282 Q26421 Q429676 Q672545 Q188304 Q617 Q634054 Q472 Q37995 Q6576 Q6761 Q28249 Q13666 Q761 Q9580 Q569661 Q2634 Q8356 Q3584 Q49179 Q735583 Q1726 Q1724 Q11967 Q1729 Q8717 Q3519 Q64 Q65 Q159232 Q207891 Q2028 Q61 Q62 Q3395358 Q683512 Q18125 Q3889 Q9125 Q5818 Q1867 Q204382 Q12439 Q269 Q27393 Q470445 Q126148 Q1352 Q771986 Q49229 Q33405 Q79990 Q8385 Q493794 Q6537 Q6106 Q2391194 Q10313 Q72259 Q1295 Q19785 Q647 Q641 Q193367 Q727 Q649 Q59169 Q669171 Q204720 Q206988 Q3012 Q24826 Q15699 Q485329 Q15696 Q15695 Q985271 Q28848 Q128306 Q15088 Q3366952 Q997170 Q203263 Q580 Q213898 Q193180 Q585 Q8757 Q34370 Q47048 Q178277 Q192155 Q883 Q207639 Q41262 Q6441 Q125080 Q2066 Q12303 Q100 Q156990 Q3834 Q81137 Q40840 Q955640 Q281839 Q485172 Q26793 Q3426 Q10686 Q211020 Q181854 Q648 Q487786 Q12233 Q172 Q216 Q646620 Q350 Q720627 Q13972 Q215277 Q8826 Q129610 Q179385 Q1348 Q29303 Q628667 Q127159 Q14336 Q34647 Q1085
(c(Q571)|c(Q11032),P291,c(Q56061))
action count
action atmost
action union
action find_reverse_tuple_counts
relation P291
type Q56061
type Q571
action find_reverse_tuple_counts
relation P291
type Q56061
type Q11032
value 54
[ANSWER]
[[{'concept': 'Q571'}, {'concept': 'Q11032'}], 'P291', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?q ) WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?k ) ?v WHERE { { ?m property:P291 ?v . ?m rdf:type ontology:Q11032 . ?v rdf:type ontology:Q56061 } UNION { ?m rdf:type ontology:Q571 . ?v rdf:type ontology:Q56061 . ?m property:P291 ?v } } GROUP BY ?v } . FILTER ( ?k <= 54 ) }
Lausanne Godalming Crickhowell Eppegem Mikkeli Bad Rappenau Toronto Tremadog Luanda Turku Belgrade Norwich Kemi Szczecin Mühlacker Uppsala Hellerup Daytona Beach Yaoundé Schleswig Mineola Jena Berkeley Las Palmas de Gran Canaria Tiberias Pisa Fribourg Glasgow Athol Zaragoza Crumlin Salt Lake City Nice New Delhi Bilbao Swansea Bonn Palermo Grenoble Straume Málaga Cardiff Gävle Haarlem Ávila Soria Nampula Cádiz Segovia Gloucester Helsinki Reims Stockholm Groningen Ourense Burbank Mariehamn Liège Victoria Toulouse Ottawa Wilmington Minden Charleroi Lisbon Melilla Bath Antwerp Cologne Toledo Tiraspol Seinäjoki Pontevedra Düsseldorf Leiden Valencia Lugo Granada Elverum Alcones Caernarfon Montevideo Petrozavodsk Harstad Busto Arsizio Rovaniemi Lahti St Athan Mérida Joensuu Logroño Pori Marbella Santa Cruz de Tenerife Nauvoo Seattle Athens Mexico City Torquay Rhyl Algiers Norman Istanbul Bangor Garden City Rio de Janeiro Badalona Milan Indianapolis Turin Florence Yekaterinburg Warsaw Cape Town Halifax Norwalk Edinburgh Jakobstad Halle (Saale) Ciudad Real Minsk Kuopio Melbourne Bend Zürich Thessaloniki Tokyo Mold Vitebsk Vatican City Singapore Brussels Austin Denver Houston Dallas Pensacola Versailles Shanghai Tbilisi Nagpur Sydney Boulder Ghent Chicago Göttingen Tonbridge Havana Chester Colombo Copenhagen Coimbra Alexandria Porto Alegre Milborne Port Welshpool Buda Adelaide Bochum Vienna Poughkeepsie Fátima Alicante Almaty Mjölby Basel Cambridge Geneva Edinburgh Auckland St. Louis Aberdeen Warsaw New Glasgow, Nova Scotia Dolgellau Cáceres Bracon Ash Lexington Perth Winchester Budapest Tel Aviv Bradenton Columbus Bangkok Vitoria-Gasteiz Santiago de Compostela Baltimore Lleida Jyväskylä Beijing Albacete Cuenca Barcelona Ljubljana Vigo Bordeaux Metro Manila 's-Hertogenbosch Brooklyn Corbin Sabadell Hämeenlinna Westport, County Mayo Nuremberg Madrid New Haven Olympia Levoča Rockville Murcia Bristol Rome Montreal Quimper Pamplona Dordrecht Sereď Barmouth Sunderland Padua Conwy Sofia Yangon Irkutsk Livorno Concord Messina Białystok Burgos Königstein im Taunus Naples Valladolid Nový Jičín Worcester Ylivieska Munich Saarbrücken Huesca Erfurt Seville Bari Berlin Los Angeles Santa Cruz Kokkola Verona Washington, D.C. San Francisco Kidwelly Savonlinna Manchester Maputo Winterthur Córdoba Taipei Kouvola Detroit Tashkent Herning Prostějov Tangier Chennai Chepstow Durham Little Rock Christchurch Ostrava Dubuque Vicenza Portland Saint-Idesbald Donostia/San Sebastián Portsmouth Dortmund Harpenden Rennes Venice Porvoo Amsterdam Moscow Mo i Rana Newtown Hereford Cheltenham Ulm Liverpool León Ferrol Zamora Salamanca The Dalles Saint Paul Denton Tarragona Alta Waterville Athens Łódź Preveza Kajaani Oslo A Coruña Rotterdam Oulu Montvale Kotka Novosibirsk Chichester Nottingham Montpellier Vaasa Essen Jerez de la Frontera Boston Monmouth Konstanz Olomouc Tampere Glasgow Englewood Cliffs, New Jersey Ann Arbor Bergen Voronezh Belfast Imatra Lappeenranta Lille Orihuela Santander Toronto Vilnius Estella-Lizarra Cambridge Kanhangad Tartu Jaffna Palma Galway Greenwich Kolkata Canterbury Spangenberg Bletchley Teruel Johannesburg Prague
347
action count
action atmost
action union
action find_reverse_tuple_counts
relation place of publication
type administrative territorial entity
type book
action find_reverse_tuple_counts
relation place of publication
type administrative territorial entity
type newspaper
value 54
[[{'concept': 'book'}, {'concept': 'newspaper'}], 'place of publication', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?q ) WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?k ) ?v WHERE { { ?m property:place_of_publication ?v . ?m rdf:type ontology:newspaper . ?v rdf:type ontology:administrative_territorial_entity } UNION { ?m rdf:type ontology:book . ?v rdf:type ontology:administrative_territorial_entity . ?m property:place_of_publication ?v } } GROUP BY ?v } . FILTER ( ?k <= 54 ) }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P532
Q56061 Q2235308
USER
Which ship types are the registry port of max number of administrative territories ?
(c(Q2235308),P532,c(Q56061))
action argmax
action find_tuple_counts
relation P532
type Q2235308
type Q56061
[{'concept': 'Q2235308'}, 'P532', {'concept': 'Q56061'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( MAX ( ?g ) AS ?j ) { SELECT DISTINCT ?u ( COUNT ( ?v ) AS ?g ) WHERE { ?u property:P532 ?v . ?u rdf:type ontology:Q2235308 . ?v rdf:type ontology:Q56061 } GROUP BY ?u } } . FILTER ( ?p = ?j ) . { SELECT DISTINCT ?h ( COUNT ( ?w ) AS ?p ) WHERE { ?h property:P532 ?w . ?w rdf:type ontology:Q56061 . ?h rdf:type ontology:Q2235308 } GROUP BY ?h } }
action argmax
action find_tuple_counts
relation port of registry
type ship type
type administrative territorial entity
[{'concept': 'ship type'}, 'port of registry', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( MAX ( ?g ) AS ?j ) { SELECT DISTINCT ?u ( COUNT ( ?v ) AS ?g ) WHERE { ?u property:port_of_registry ?v . ?u rdf:type ontology:ship_type . ?v rdf:type ontology:administrative_territorial_entity } GROUP BY ?u } } . FILTER ( ?p = ?j ) . { SELECT DISTINCT ?h ( COUNT ( ?w ) AS ?p ) WHERE { ?h property:port_of_registry ?w . ?w rdf:type ontology:administrative_territorial_entity . ?h rdf:type ontology:ship_type } GROUP BY ?h } }
[]
administrative territorial entity ship type
Q11707059
SYSTEM
MS Arrow
Q11707059
(c(Q2235308),P532,c(Q56061))
action argmax
action find_tuple_counts
relation P532
type Q2235308
type Q56061
[ANSWER] is the registry port of max number of administrative territories
[{'concept': 'Q2235308'}, 'P532', {'concept': 'Q56061'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( MAX ( ?g ) AS ?j ) { SELECT DISTINCT ?u ( COUNT ( ?v ) AS ?g ) WHERE { ?u property:P532 ?v . ?u rdf:type ontology:Q2235308 . ?v rdf:type ontology:Q56061 } GROUP BY ?u } } . FILTER ( ?p = ?j ) . { SELECT DISTINCT ?h ( COUNT ( ?w ) AS ?p ) WHERE { ?h property:P532 ?w . ?w rdf:type ontology:Q56061 . ?h rdf:type ontology:Q2235308 } GROUP BY ?h } }
MS Arrow
MS Arrow is the registry port of max number of administrative territories
MS Arrow
action argmax
action find_tuple_counts
relation port of registry
type ship type
type administrative territorial entity
[{'concept': 'ship type'}, 'port of registry', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( MAX ( ?g ) AS ?j ) { SELECT DISTINCT ?u ( COUNT ( ?v ) AS ?g ) WHERE { ?u property:port_of_registry ?v . ?u rdf:type ontology:ship_type . ?v rdf:type ontology:administrative_territorial_entity } GROUP BY ?u } } . FILTER ( ?p = ?j ) . { SELECT DISTINCT ?h ( COUNT ( ?w ) AS ?p ) WHERE { ?h property:port_of_registry ?w . ?w rdf:type ontology:administrative_territorial_entity . ?h rdf:type ontology:ship_type } GROUP BY ?h } }
[]