Simple Question (Direct)
Simple Question
Q14905835
P136
Q151885
USER
What can be considered as category for Harry Fraud ?
(Q14905835,P136,c(Q151885))
action filter_type
action find
entity Q14905835
relation P136
type Q151885
['Q14905835', 'P136', {'concept': 'Q151885'}]
SELECT DISTINCT ?o WHERE { resource:Q14905835 property:P136 ?o . ?o rdf:type ontology:Q151885 }
Harry Fraud
action filter_type
action find
entity Harry Fraud
relation genre
type concept
['Harry Fraud', 'genre', {'concept': 'concept'}]
SELECT DISTINCT ?o WHERE { resource:Harry_Fraud property:genre ?o . ?o rdf:type ontology:concept }
[]
concept
Q11401
SYSTEM
hip hop
Q11401
(Q14905835,P136,c(Q151885))
action filter_type
action find
entity Q14905835
relation P136
type Q151885
[ANSWER] can be considered as category for Harry Fraud
['Q14905835', 'P136', {'concept': 'Q151885'}]
SELECT DISTINCT ?o WHERE { resource:Q14905835 property:P136 ?o . ?o rdf:type ontology:Q151885 }
hip hop
Hip hop can be considered as category for Harry Fraud
hip hop
action filter_type
action find
entity Harry Fraud
relation genre
type concept
['Harry Fraud', 'genre', {'concept': 'concept'}]
SELECT DISTINCT ?o WHERE { resource:Harry_Fraud property:genre ?o . ?o rdf:type ontology:concept }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q14905835
P19
Q56061
USER
Which administrative territory was that person born in ?
(Q11401,P19,c(Q56061))
action filter_type
action find
entity Q14905835
relation P19
type Q56061
['Q11401', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?h WHERE { resource:Q14905835 property:P19 ?h . ?h rdf:type ontology:Q56061 }
Harry Fraud
action filter_type
action find
entity Harry Fraud
relation place of birth
type administrative territorial entity
['hip hop', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:Harry_Fraud property:place_of_birth ?h . ?h rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q18419
SYSTEM
Brooklyn
Q18419
(Q11401,P19,c(Q56061))
action filter_type
action find
entity Q14905835
relation P19
type Q56061
That person was born in [ANSWER]
['Q11401', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?h WHERE { resource:Q14905835 property:P19 ?h . ?h rdf:type ontology:Q56061 }
Brooklyn
That person was born in Brooklyn
Brooklyn
action filter_type
action find
entity Harry Fraud
relation place of birth
type administrative territorial entity
['hip hop', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:Harry_Fraud property:place_of_birth ?h . ?h rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q18419
P206
Q1267889 Q15324
USER
How many waterways or bodies of water are located in the neighbourhood of Brooklyn ?
(Q18419,P206,c(Q1267889)) (Q18419,P206,c(Q15324))
action count
action union
action filter_type
action find
entity Q18419
relation P206
type Q1267889
action filter_type
action find
entity Q18419
relation P206
type Q15324
['Q18419', 'P206', {'concept': 'Q1267889'}] ['Q18419', 'P206', {'concept': 'Q15324'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?t ) WHERE { VALUES ( ?z ) { ( ontology:Q1267889 ) ( ontology:Q15324 ) } . ?d rdf:type ?z }
Brooklyn
action count
action union
action filter_type
action find
entity Brooklyn
relation located next to body of water
type waterway
action filter_type
action find
entity Brooklyn
relation located next to body of water
type body of water
['Brooklyn', 'located next to body of water', {'concept': 'waterway'}] ['Brooklyn', 'located next to body of water', {'concept': 'body of water'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?t ) WHERE { VALUES ( ?z ) { ( ontology:waterway ) ( ontology:body_of_water ) } . ?d rdf:type ?z }
[]
waterway body of water
SYSTEM
4
Q1064776 Q212862 Q1294277 Q1679819
(Q18419,P206,c(Q1267889)) (Q18419,P206,c(Q15324))
action count
action union
action filter_type
action find
entity Q18419
relation P206
type Q1267889
action filter_type
action find
entity Q18419
relation P206
type Q15324
[ANSWER]
['Q18419', 'P206', {'concept': 'Q1267889'}] ['Q18419', 'P206', {'concept': 'Q15324'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?t ) WHERE { VALUES ( ?z ) { ( ontology:Q1267889 ) ( ontology:Q15324 ) } . ?d rdf:type ?z }
Upper New York Bay East River Lower New York Bay Jamaica Bay
4
action count
action union
action filter_type
action find
entity Brooklyn
relation located next to body of water
type waterway
action filter_type
action find
entity Brooklyn
relation located next to body of water
type body of water
['Brooklyn', 'located next to body of water', {'concept': 'waterway'}] ['Brooklyn', 'located next to body of water', {'concept': 'body of water'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?t ) WHERE { VALUES ( ?z ) { ( ontology:waterway ) ( ontology:body_of_water ) } . ?d rdf:type ?z }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q3379029 Q18419
P27 P190
Q15617994
USER
Which administrative territories are the sister cities of Brooklyn or are the countries of citizenship of Philip Le Roy ?
OR((Q18419,P190,c(Q15617994)), (Q3379029,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q18419
relation P190
action find
entity Q3379029
relation P27
type Q15617994
{'OR': [['Q18419', 'P190', {'concept': 'Q15617994'}], ['Q3379029', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Q18419 property:P190 ?u } UNION { resource:Q3379029 property:P27 ?u } } . ?u rdf:type ontology:Q15617994 }
Philip Le Roy Brooklyn
action filter_type
action union
action find
entity Brooklyn
relation sister city
action find
entity Philip Le Roy
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Brooklyn', 'sister city', {'concept': 'designation for an administrative territorial entity'}], ['Philip Le Roy', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Brooklyn property:sister_city ?u } UNION { resource:Philip_Le_Roy property:country_of_citizenship ?u } } . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q241717 Q259120 Q394701 Q142
SYSTEM
Anzio, Leopoldstadt, Chaoyang District, France
Q241717 Q259120 Q394701 Q142
OR((Q18419,P190,c(Q15617994)), (Q3379029,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q18419
relation P190
action find
entity Q3379029
relation P27
type Q15617994
[ANSWERS] are the sister cities of Brooklyn or are the countries of citizenship of Philip Le Roy
{'OR': [['Q18419', 'P190', {'concept': 'Q15617994'}], ['Q3379029', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Q18419 property:P190 ?u } UNION { resource:Q3379029 property:P27 ?u } } . ?u rdf:type ontology:Q15617994 }
Anzio Leopoldstadt Chaoyang District France
Anzio, Leopoldstadt, Chaoyang District and France are the sister cities of Brooklyn or are the countries of citizenship of Philip Le Roy
Anzio Leopoldstadt Chaoyang District France
action filter_type
action union
action find
entity Brooklyn
relation sister city
action find
entity Philip Le Roy
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Brooklyn', 'sister city', {'concept': 'designation for an administrative territorial entity'}], ['Philip Le Roy', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Brooklyn property:sister_city ?u } UNION { resource:Philip_Le_Roy property:country_of_citizenship ?u } } . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Clarification
Comparative|Count over More/Less|Mult. entity type|Indirect
P495
Q15617994 Q838948 Q2342494
USER
How many administrative territories are the origin of greater number of works of art and collectables than that administrative territory ?
(c(Q838948)|c(Q2342494),P495,c(Q15617994))
[[{'concept': 'Q838948'}, {'concept': 'Q2342494'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:P495 ?y } UNION { ?x property:P495 ?y } } . ?z rdf:type ontology:Q838948 . ?y rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q2342494 }
[[{'concept': 'work of art'}, {'concept': 'collectable'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:country_of_origin ?y } UNION { ?x property:country_of_origin ?y } } . ?z rdf:type ontology:work_of_art . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:collectable }
[]
designation for an administrative territorial entity work of art collectable
Comparative|Count over More/Less|Mult. entity type|Clarification
Q259120
SYSTEM
Did you mean Leopoldstadt ?
(c(Q838948)|c(Q2342494),P495,c(Q15617994))
[ANSWER]
[[{'concept': 'Q838948'}, {'concept': 'Q2342494'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:P495 ?y } UNION { ?x property:P495 ?y } } . ?z rdf:type ontology:Q838948 . ?y rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q2342494 }
Did you mean Leopoldstadt ?
Leopoldstadt
[[{'concept': 'work of art'}, {'concept': 'collectable'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:country_of_origin ?y } UNION { ?x property:country_of_origin ?y } } . ?z rdf:type ontology:work_of_art . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:collectable }
[]
Comparative Reasoning (Count) (All)
USER
No, I meant France. Could you tell me the answer for that?
(c(Q838948)|c(Q2342494),P495,c(Q15617994))
Q142
[[{'concept': 'Q838948'}, {'concept': 'Q2342494'}], 'P495', {'concept': 'Q15617994'}]
[[{'concept': 'work of art'}, {'concept': 'collectable'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
[]
SYSTEM
3
Q668 Q145 Q30
(c(Q838948)|c(Q2342494),P495,c(Q15617994))
[ANSWER]
[[{'concept': 'Q838948'}, {'concept': 'Q2342494'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:P495 ?y } UNION { ?x property:P495 ?y } } . ?z rdf:type ontology:Q838948 . ?y rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q2342494 }
India United Kingdom United States of America
3
[[{'concept': 'work of art'}, {'concept': 'collectable'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:country_of_origin ?y } UNION { ?x property:country_of_origin ?y } } . ?z rdf:type ontology:work_of_art . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:collectable }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q1048835 Q15617994
USER
How many political territories have diplomatic relationships with exactly 1 administrative territory ?
(c(Q15617994),P530,c(Q1048835))
action count
action equal
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 1
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?s ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?o ) AS ?x ) WHERE { ?c property:P530 ?o . ?c rdf:type ontology:Q1048835 . ?o rdf:type ontology:Q15617994 } GROUP BY ?c } . FILTER ( ?x = 1 ) }
action count
action equal
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 1
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?s ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?o ) AS ?x ) WHERE { ?c property:diplomatic_relation ?o . ?c rdf:type ontology:political_territorial_entity . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?c } . FILTER ( ?x = 1 ) }
[]
political territorial entity designation for an administrative territorial entity
SYSTEM
4
Q1000 Q781 Q778 Q769
(c(Q15617994),P530,c(Q1048835))
action count
action equal
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 1
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?s ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?o ) AS ?x ) WHERE { ?c property:P530 ?o . ?c rdf:type ontology:Q1048835 . ?o rdf:type ontology:Q15617994 } GROUP BY ?c } . FILTER ( ?x = 1 ) }
Gabon Antigua and Barbuda The Bahamas Grenada
4
action count
action equal
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 1
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?s ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?o ) AS ?x ) WHERE { ?c property:diplomatic_relation ?o . ?c rdf:type ontology:political_territorial_entity . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?c } . FILTER ( ?x = 1 ) }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q937857 Q241717
P19 P106
Q502895
USER
Which people have birthplace at Anzio and have a job as association football player ?
AND((c(Q502895),P19,Q241717), (c(Q502895),P106,Q937857))
action filter_type
action intersection
action find_reverse
entity Q241717
relation P19
action find_reverse
entity Q937857
relation P106
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P19', 'Q241717'], [{'concept': 'Q502895'}, 'P106', 'Q937857']]}
SELECT DISTINCT ?d WHERE { ?d property:P19 resource:Q241717 . ?d property:P106 resource:Q937857 . ?d rdf:type ontology:Q502895 }
association football player Anzio
action filter_type
action intersection
action find_reverse
entity Anzio
relation place of birth
action find_reverse
entity association football player
relation occupation
type common name
{'AND': [[{'concept': 'common name'}, 'place of birth', 'Anzio'], [{'concept': 'common name'}, 'occupation', 'association football player']]}
SELECT DISTINCT ?d WHERE { ?d property:place_of_birth resource:Anzio . ?d property:occupation resource:association_football_player . ?d rdf:type ontology:common_name }
[]
common name
Q795017 Q16597542 Q3743212 Q3629246 Q5222816 Q3605212 Q6752834
SYSTEM
Alessio Romagnoli, Rocco Giannone, Ferro Tontini, Attilio Galassini, Dario Alberto Polverini, Adelmo Eufemi, Manuel Ricci
Q795017 Q16597542 Q3743212 Q3629246 Q5222816 Q3605212 Q6752834
AND((c(Q502895),P19,Q241717), (c(Q502895),P106,Q937857))
action filter_type
action intersection
action find_reverse
entity Q241717
relation P19
action find_reverse
entity Q937857
relation P106
type Q502895
[ANSWERS] have birthplace at Anzio and have a job as association football player
{'AND': [[{'concept': 'Q502895'}, 'P19', 'Q241717'], [{'concept': 'Q502895'}, 'P106', 'Q937857']]}
SELECT DISTINCT ?d WHERE { ?d property:P19 resource:Q241717 . ?d property:P106 resource:Q937857 . ?d rdf:type ontology:Q502895 }
Alessio Romagnoli Rocco Giannone Ferro Tontini Attilio Galassini Dario Alberto Polverini Adelmo Eufemi Manuel Ricci
Alessio Romagnoli, Rocco Giannone, Ferro Tontini, Attilio Galassini, Dario Alberto Polverini, Adelmo Eufemi and Manuel Ricci have birthplace at Anzio and have a job as association football player
Alessio Romagnoli Rocco Giannone Ferro Tontini Attilio Galassini Dario Alberto Polverini Adelmo Eufemi Manuel Ricci
action filter_type
action intersection
action find_reverse
entity Anzio
relation place of birth
action find_reverse
entity association football player
relation occupation
type common name
{'AND': [[{'concept': 'common name'}, 'place of birth', 'Anzio'], [{'concept': 'common name'}, 'occupation', 'association football player']]}
SELECT DISTINCT ?d WHERE { ?d property:place_of_birth resource:Anzio . ?d property:occupation resource:association_football_player . ?d rdf:type ontology:common_name }
[]