Simple Question (Direct)
Simple Question
Q16234084
P641
Q349
USER
What was the sport that Nor Hakim Hassan was a part of ?
(Q16234084,P641,c(Q349))
action filter_type
action find
entity Q16234084
relation P641
type Q349
['Q16234084', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?l WHERE { resource:Q16234084 property:P641 ?l . ?l rdf:type ontology:Q349 }
Nor Hakim Hassan
action filter_type
action find
entity Nor Hakim Hassan
relation sport
type sport
['Nor Hakim Hassan', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?l WHERE { resource:Nor_Hakim_Hassan property:sport ?l . ?l rdf:type ontology:sport }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q16234084,P641,c(Q349))
action filter_type
action find
entity Q16234084
relation P641
type Q349
The sport that Nor Hakim Hassan was a part of was h [ANSWER]
['Q16234084', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?l WHERE { resource:Q16234084 property:P641 ?l . ?l rdf:type ontology:Q349 }
association football
The sport that Nor Hakim Hassan was a part of was h association football
association football
action filter_type
action find
entity Nor Hakim Hassan
relation sport
type sport
['Nor Hakim Hassan', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?l WHERE { resource:Nor_Hakim_Hassan property:sport ?l . ?l rdf:type ontology:sport }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q16234084
P19
Q56061
USER
Which administrative territory is the birthplace of Nor Hakim Hassan ?
(Q16234084,P19,c(Q56061))
action filter_type
action find
entity Q16234084
relation P19
type Q56061
['Q16234084', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?x WHERE { resource:Q16234084 property:P19 ?x . ?x rdf:type ontology:Q56061 }
Nor Hakim Hassan
action filter_type
action find
entity Nor Hakim Hassan
relation place of birth
type administrative territorial entity
['Nor Hakim Hassan', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { resource:Nor_Hakim_Hassan property:place_of_birth ?x . ?x rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q846502
SYSTEM
Kuala Terengganu
Q846502
(Q16234084,P19,c(Q56061))
action filter_type
action find
entity Q16234084
relation P19
type Q56061
[ANSWER] is the birthplace of Nor Hakim Hassan
['Q16234084', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?x WHERE { resource:Q16234084 property:P19 ?x . ?x rdf:type ontology:Q56061 }
Kuala Terengganu
Kuala Terengganu is the birthplace of Nor Hakim Hassan
Kuala Terengganu
action filter_type
action find
entity Nor Hakim Hassan
relation place of birth
type administrative territorial entity
['Nor Hakim Hassan', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { resource:Nor_Hakim_Hassan property:place_of_birth ?x . ?x rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q846502
P17
Q15617994
USER
Which administrative territory is that administrative territory located in ?
(Q846502,P17,c(Q15617994))
action filter_type
action find
entity Q846502
relation P17
type Q15617994
['Q846502', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?g WHERE { resource:Q846502 property:P17 ?g . ?g rdf:type ontology:Q15617994 }
Kuala Terengganu
action filter_type
action find
entity Kuala Terengganu
relation country
type designation for an administrative territorial entity
['Kuala Terengganu', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { resource:Kuala_Terengganu property:country ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q833
SYSTEM
Malaysia
Q833
(Q846502,P17,c(Q15617994))
action filter_type
action find
entity Q846502
relation P17
type Q15617994
That administrative territory is located in [ANSWER]
['Q846502', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?g WHERE { resource:Q846502 property:P17 ?g . ?g rdf:type ontology:Q15617994 }
Malaysia
That administrative territory is located in Malaysia
Malaysia
action filter_type
action find
entity Kuala Terengganu
relation country
type designation for an administrative territorial entity
['Kuala Terengganu', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { resource:Kuala_Terengganu property:country ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q833
P36
Q515
USER
Which city is known as the capital of that administrative territory ?
(Q833,P36,c(Q515))
action filter_type
action find
entity Q833
relation P36
type Q515
['Q833', 'P36', {'concept': 'Q515'}]
SELECT DISTINCT ?y WHERE { resource:Q833 property:P36 ?y . ?y rdf:type ontology:Q515 }
Malaysia
action filter_type
action find
entity Malaysia
relation capital
type city
['Malaysia', 'capital', {'concept': 'city'}]
SELECT DISTINCT ?y WHERE { resource:Malaysia property:capital ?y . ?y rdf:type ontology:city }
[]
city
Q1865
SYSTEM
Kuala Lumpur
Q1865
(Q833,P36,c(Q515))
action filter_type
action find
entity Q833
relation P36
type Q515
[ANSWER] is known as the capital of that administrative territory
['Q833', 'P36', {'concept': 'Q515'}]
SELECT DISTINCT ?y WHERE { resource:Q833 property:P36 ?y . ?y rdf:type ontology:Q515 }
Kuala Lumpur
Kuala Lumpur is known as the capital of that administrative territory
Kuala Lumpur
action filter_type
action find
entity Malaysia
relation capital
type city
['Malaysia', 'capital', {'concept': 'city'}]
SELECT DISTINCT ?y WHERE { resource:Malaysia property:capital ?y . ?y rdf:type ontology:city }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q833 Q27798388
P17
Q15617994
USER
How many administrative territories are Malaysia or 2015 Japan Super Series – Men's singles situated in ?
(Q833,P17,c(Q15617994)) (Q27798388,P17,c(Q15617994))
action count
action union
action filter_type
action find
entity Q833
relation P17
type Q15617994
action filter_type
action find
entity Q27798388
relation P17
type Q15617994
['Q833', 'P17', {'concept': 'Q15617994'}] ['Q27798388', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?w ) WHERE { { resource:Q833 property:P17 ?m . ?m rdf:type ontology:Q15617994 } UNION { resource:Q27798388 property:P17 ?m . ?m rdf:type ontology:Q15617994 } }
Malaysia 2015 Japan Super Series – Men's singles
action count
action union
action filter_type
action find
entity Malaysia
relation country
type designation for an administrative territorial entity
action filter_type
action find
entity 2015 Japan Super Series – Men's singles
relation country
type designation for an administrative territorial entity
['Malaysia', 'country', {'concept': 'designation for an administrative territorial entity'}] ["2015 Japan Super Series – Men's singles", 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?w ) WHERE { { resource:Malaysia property:country ?m . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { resource:2015_Japan_Super_Series_–_Men's_singles property:country ?m . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity } }
[]
designation for an administrative territorial entity
SYSTEM
2
Q833 Q17
(Q833,P17,c(Q15617994)) (Q27798388,P17,c(Q15617994))
action count
action union
action filter_type
action find
entity Q833
relation P17
type Q15617994
action filter_type
action find
entity Q27798388
relation P17
type Q15617994
[ANSWER]
['Q833', 'P17', {'concept': 'Q15617994'}] ['Q27798388', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?w ) WHERE { { resource:Q833 property:P17 ?m . ?m rdf:type ontology:Q15617994 } UNION { resource:Q27798388 property:P17 ?m . ?m rdf:type ontology:Q15617994 } }
Malaysia Japan
2
action count
action union
action filter_type
action find
entity Malaysia
relation country
type designation for an administrative territorial entity
action filter_type
action find
entity 2015 Japan Super Series – Men's singles
relation country
type designation for an administrative territorial entity
['Malaysia', 'country', {'concept': 'designation for an administrative territorial entity'}] ["2015 Japan Super Series – Men's singles", 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?w ) WHERE { { resource:Malaysia property:country ?m . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { resource:2015_Japan_Super_Series_–_Men's_singles property:country ?m . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity } }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q55486 Q833
P47 P530
Q1048835
USER
Which political territories have diplomatic relationships with Malaysia or are bordered by Navalafuente ?
OR((Q833,P530,c(Q1048835)), (Q55486,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q833
relation P530
action find
entity Q55486
relation P47
type Q1048835
{'OR': [['Q833', 'P530', {'concept': 'Q1048835'}], ['Q55486', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q1048835 . { { resource:Q833 property:P530 ?b } UNION { resource:Q55486 property:P47 ?b } } }
Navalafuente Malaysia
action filter_type
action union
action find
entity Malaysia
relation diplomatic relation
action find
entity Navalafuente
relation shares border with
type political territorial entity
{'OR': [['Malaysia', 'diplomatic relation', {'concept': 'political territorial entity'}], ['Navalafuente', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:political_territorial_entity . { { resource:Malaysia property:diplomatic_relation ?b } UNION { resource:Navalafuente property:shares_border_with ?b } } }
[]
political territorial entity
Q1772200 Q55487 Q55482 Q1915163 Q183 Q408 Q16
SYSTEM
Cabanillas de la Sierra, Bustarviejo, Guadalix de la Sierra, Valdemanco, Germany, Australia, Canada
Q1772200 Q55487 Q55482 Q1915163 Q183 Q408 Q16
OR((Q833,P530,c(Q1048835)), (Q55486,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q833
relation P530
action find
entity Q55486
relation P47
type Q1048835
[ANSWERS] have diplomatic relationships with Malaysia or are bordered by Navalafuente
{'OR': [['Q833', 'P530', {'concept': 'Q1048835'}], ['Q55486', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q1048835 . { { resource:Q833 property:P530 ?b } UNION { resource:Q55486 property:P47 ?b } } }
Cabanillas de la Sierra Bustarviejo Guadalix de la Sierra Valdemanco Germany Australia Canada
Cabanillas de la Sierra, Bustarviejo, Guadalix de la Sierra, Valdemanco, Germany, Australia and Canada have diplomatic relationships with Malaysia or are bordered by Navalafuente
Cabanillas de la Sierra Bustarviejo Guadalix de la Sierra Valdemanco Germany Australia Canada
action filter_type
action union
action find
entity Malaysia
relation diplomatic relation
action find
entity Navalafuente
relation shares border with
type political territorial entity
{'OR': [['Malaysia', 'diplomatic relation', {'concept': 'political territorial entity'}], ['Navalafuente', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:political_territorial_entity . { { resource:Malaysia property:diplomatic_relation ?b } UNION { resource:Navalafuente property:shares_border_with ?b } } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q183
P530
Q1048835 Q15617994 Q1048835
USER
How many political territories have tactful political relations with approximately the same number of political territories or administrative territories as Germany ?
(c(Q1048835),P530,c(Q1048835)|c(Q15617994))
action count
action approx
action union
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_multi_types
action find
entity Q183
relation P530
type Q1048835
type Q15617994
[{'concept': 'Q1048835'}, 'P530', [{'concept': 'Q1048835'}, {'concept': 'Q15617994'}]]
SELECT DISTINCT ( COUNT ( ?b ) AS ?c ) WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?o ) ?b WHERE { VALUES ( ?f ) { ( ontology:Q1048835 ) ( ontology:Q15617994 ) } . ?w rdf:type ?f } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?k ) WHERE { resource:Q183 property:P530 ?j . { VALUES ( ?z ) { ( ontology:Q1048835 ) ( ontology:Q15617994 ) } . ?j rdf:type ?z } } } . FILTER ( ?o = ?k ) }
Germany
action count
action approx
action union
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_multi_types
action find
entity Germany
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', [{'concept': 'political territorial entity'}, {'concept': 'designation for an administrative territorial entity'}]]
SELECT DISTINCT ( COUNT ( ?b ) AS ?c ) WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?o ) ?b WHERE { VALUES ( ?f ) { ( ontology:political_territorial_entity ) ( ontology:designation_for_an_administrative_territorial_entity ) } . ?w rdf:type ?f } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?k ) WHERE { resource:Germany property:diplomatic_relation ?j . { VALUES ( ?z ) { ( ontology:political_territorial_entity ) ( ontology:designation_for_an_administrative_territorial_entity ) } . ?j rdf:type ?z } } } . FILTER ( ?o = ?k ) }
[]
political territorial entity designation for an administrative territorial entity political territorial entity
SYSTEM
2
Q183 Q408
(c(Q1048835),P530,c(Q1048835)|c(Q15617994))
action count
action approx
action union
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_multi_types
action find
entity Q183
relation P530
type Q1048835
type Q15617994
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', [{'concept': 'Q1048835'}, {'concept': 'Q15617994'}]]
SELECT DISTINCT ( COUNT ( ?b ) AS ?c ) WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?o ) ?b WHERE { VALUES ( ?f ) { ( ontology:Q1048835 ) ( ontology:Q15617994 ) } . ?w rdf:type ?f } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?k ) WHERE { resource:Q183 property:P530 ?j . { VALUES ( ?z ) { ( ontology:Q1048835 ) ( ontology:Q15617994 ) } . ?j rdf:type ?z } } } . FILTER ( ?o = ?k ) }
Germany Australia
2
action count
action approx
action union
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_multi_types
action find
entity Germany
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', [{'concept': 'political territorial entity'}, {'concept': 'designation for an administrative territorial entity'}]]
SELECT DISTINCT ( COUNT ( ?b ) AS ?c ) WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?o ) ?b WHERE { VALUES ( ?f ) { ( ontology:political_territorial_entity ) ( ontology:designation_for_an_administrative_territorial_entity ) } . ?w rdf:type ?f } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?k ) WHERE { resource:Germany property:diplomatic_relation ?j . { VALUES ( ?z ) { ( ontology:political_territorial_entity ) ( ontology:designation_for_an_administrative_territorial_entity ) } . ?j rdf:type ?z } } } . FILTER ( ?o = ?k ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q769
P530
Q1048835 Q15617994 Q1048835
USER
And what about Grenada?
(c(Q1048835),P530,c(Q1048835)|c(Q15617994))
action count
action approx
action union
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_multi_types
action find
entity Q769
relation P530
type Q1048835
type Q15617994
[{'concept': 'Q1048835'}, 'P530', [{'concept': 'Q1048835'}, {'concept': 'Q15617994'}]]
SELECT DISTINCT ( COUNT ( ?p ) AS ?g ) WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?a ) ?p WHERE { { ?p property:P530 ?i . ?p rdf:type ontology:Q1048835 . ?i rdf:type ontology:Q1048835 } UNION { ?p property:P530 ?i . ?p rdf:type ontology:Q1048835 . ?i rdf:type ontology:Q15617994 } } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?q ) WHERE { resource:Q769 property:P530 ?m . { { ?m rdf:type ontology:Q1048835 } UNION { ?m rdf:type ontology:Q15617994 } } } } . FILTER ( ?a = ?q ) }
Grenada
action count
action approx
action union
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_multi_types
action find
entity Grenada
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', [{'concept': 'political territorial entity'}, {'concept': 'designation for an administrative territorial entity'}]]
SELECT DISTINCT ( COUNT ( ?p ) AS ?g ) WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?a ) ?p WHERE { { ?p property:diplomatic_relation ?i . ?p rdf:type ontology:political_territorial_entity . ?i rdf:type ontology:political_territorial_entity } UNION { ?p property:diplomatic_relation ?i . ?p rdf:type ontology:political_territorial_entity . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?q ) WHERE { resource:Grenada property:diplomatic_relation ?m . { { ?m rdf:type ontology:political_territorial_entity } UNION { ?m rdf:type ontology:designation_for_an_administrative_territorial_entity } } } } . FILTER ( ?a = ?q ) }
[]
political territorial entity designation for an administrative territorial entity political territorial entity
SYSTEM
11
Q1000 Q40 Q781 Q778 Q769 Q685 Q35 Q691 Q16 Q664 Q766
(c(Q1048835),P530,c(Q1048835)|c(Q15617994))
action count
action approx
action union
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_multi_types
action find
entity Q769
relation P530
type Q1048835
type Q15617994
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', [{'concept': 'Q1048835'}, {'concept': 'Q15617994'}]]
SELECT DISTINCT ( COUNT ( ?p ) AS ?g ) WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?a ) ?p WHERE { { ?p property:P530 ?i . ?p rdf:type ontology:Q1048835 . ?i rdf:type ontology:Q1048835 } UNION { ?p property:P530 ?i . ?p rdf:type ontology:Q1048835 . ?i rdf:type ontology:Q15617994 } } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?q ) WHERE { resource:Q769 property:P530 ?m . { { ?m rdf:type ontology:Q1048835 } UNION { ?m rdf:type ontology:Q15617994 } } } } . FILTER ( ?a = ?q ) }
Gabon Austria Antigua and Barbuda The Bahamas Grenada Solomon Islands Denmark Papua New Guinea Canada New Zealand Jamaica
11
action count
action approx
action union
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_multi_types
action find
entity Grenada
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', [{'concept': 'political territorial entity'}, {'concept': 'designation for an administrative territorial entity'}]]
SELECT DISTINCT ( COUNT ( ?p ) AS ?g ) WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?a ) ?p WHERE { { ?p property:diplomatic_relation ?i . ?p rdf:type ontology:political_territorial_entity . ?i rdf:type ontology:political_territorial_entity } UNION { ?p property:diplomatic_relation ?i . ?p rdf:type ontology:political_territorial_entity . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?q ) WHERE { resource:Grenada property:diplomatic_relation ?m . { { ?m rdf:type ontology:political_territorial_entity } UNION { ?m rdf:type ontology:designation_for_an_administrative_territorial_entity } } } } . FILTER ( ?a = ?q ) }
[]