Simple Question (Direct)
Simple Question
Q2832401
P21
Q290
USER
Which sex does Aled de Malmanche have ?
(Q2832401,P21,c(Q290))
action filter_type
action find
entity Q2832401
relation P21
type Q290
['Q2832401', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?b WHERE { resource:Q2832401 property:P21 ?b . ?b rdf:type ontology:Q290 }
Aled de Malmanche
action filter_type
action find
entity Aled de Malmanche
relation gender
type sex
['Aled de Malmanche', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?b WHERE { resource:Aled_de_Malmanche property:gender ?b . ?b rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q2832401,P21,c(Q290))
action filter_type
action find
entity Q2832401
relation P21
type Q290
Aled de Malmanche has 1 [ANSWER]
['Q2832401', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?b WHERE { resource:Q2832401 property:P21 ?b . ?b rdf:type ontology:Q290 }
male
Aled de Malmanche has 1 male
male
action filter_type
action find
entity Aled de Malmanche
relation gender
type sex
['Aled de Malmanche', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?b WHERE { resource:Aled_de_Malmanche property:gender ?b . ?b rdf:type ontology:sex }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2832401
P19
Q56061
USER
Which administrative territory is the place of birth of that person ?
(Q6581097,P19,c(Q56061))
action filter_type
action find
entity Q2832401
relation P19
type Q56061
['Q6581097', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?p WHERE { resource:Q2832401 property:P19 ?p . ?p rdf:type ontology:Q56061 }
Aled de Malmanche
action filter_type
action find
entity Aled de Malmanche
relation place of birth
type administrative territorial entity
['male', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { resource:Aled_de_Malmanche property:place_of_birth ?p . ?p rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q212289
SYSTEM
Palmerston North
Q212289
(Q6581097,P19,c(Q56061))
action filter_type
action find
entity Q2832401
relation P19
type Q56061
[ANSWER] is the place of birth of that person
['Q6581097', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?p WHERE { resource:Q2832401 property:P19 ?p . ?p rdf:type ontology:Q56061 }
Palmerston North
Palmerston North is the place of birth of that person
Palmerston North
action filter_type
action find
entity Aled de Malmanche
relation place of birth
type administrative territorial entity
['male', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { resource:Aled_de_Malmanche property:place_of_birth ?p . ?p rdf:type ontology:administrative_territorial_entity }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q28260
P138
Q82799 Q2472587 Q56061
USER
Which administrative territories are the eponym of greater number of names and peoples than Lincoln ?
(c(Q56061),P138,c(Q82799)|c(Q2472587))
action greater
action union
action find_tuple_counts
relation P138
type Q56061
type Q82799
action find_tuple_counts
relation P138
type Q56061
type Q2472587
action count
action filter_multi_types
action find
entity Q28260
relation P138
type Q82799
type Q2472587
[{'concept': 'Q56061'}, 'P138', [{'concept': 'Q82799'}, {'concept': 'Q2472587'}]]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?s ) WHERE { resource:Q28260 property:P138 ?h . { VALUES ( ?c ) { ( ontology:Q82799 ) ( ontology:Q2472587 ) } . ?h rdf:type ?c } } } . FILTER ( ?y > ?s ) . { SELECT DISTINCT ?w ( COUNT ( ?p ) AS ?y ) WHERE { { ?w property:P138 ?p . ?w rdf:type ontology:Q56061 . ?p rdf:type ontology:Q82799 } UNION { ?w property:P138 ?p . ?w rdf:type ontology:Q56061 . ?p rdf:type ontology:Q2472587 } } GROUP BY ?w } }
Lincoln
action greater
action union
action find_tuple_counts
relation named after
type administrative territorial entity
type name
action find_tuple_counts
relation named after
type administrative territorial entity
type people
action count
action filter_multi_types
action find
entity Lincoln
relation named after
type name
type people
[{'concept': 'administrative territorial entity'}, 'named after', [{'concept': 'name'}, {'concept': 'people'}]]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?s ) WHERE { resource:Lincoln property:named_after ?h . { VALUES ( ?c ) { ( ontology:name ) ( ontology:people ) } . ?h rdf:type ?c } } } . FILTER ( ?y > ?s ) . { SELECT DISTINCT ?w ( COUNT ( ?p ) AS ?y ) WHERE { { ?w property:named_after ?p . ?w rdf:type ontology:administrative_territorial_entity . ?p rdf:type ontology:name } UNION { ?w property:named_after ?p . ?w rdf:type ontology:administrative_territorial_entity . ?p rdf:type ontology:people } } GROUP BY ?w } }
[]
name people administrative territorial entity
Q2621007 Q167895 Q970482
SYSTEM
Kreva, Kalamata, Nacogdoches
Q167895 Q131335 Q970482 Q1620075 Q2294628 Q666165 Q50816 Q2621007
(c(Q56061),P138,c(Q82799)|c(Q2472587))
action greater
action union
action find_tuple_counts
relation P138
type Q56061
type Q82799
action find_tuple_counts
relation P138
type Q56061
type Q2472587
action count
action filter_multi_types
action find
entity Q28260
relation P138
type Q82799
type Q2472587
[ANSWERS] are the eponym of greater number of names and peoples than Lincoln
[{'concept': 'Q56061'}, 'P138', [{'concept': 'Q82799'}, {'concept': 'Q2472587'}]]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?s ) WHERE { resource:Q28260 property:P138 ?h . { VALUES ( ?c ) { ( ontology:Q82799 ) ( ontology:Q2472587 ) } . ?h rdf:type ?c } } } . FILTER ( ?y > ?s ) . { SELECT DISTINCT ?w ( COUNT ( ?p ) AS ?y ) WHERE { { ?w property:P138 ?p . ?w rdf:type ontology:Q56061 . ?p rdf:type ontology:Q82799 } UNION { ?w property:P138 ?p . ?w rdf:type ontology:Q56061 . ?p rdf:type ontology:Q2472587 } } GROUP BY ?w } }
Kalamata Sioux Falls Nacogdoches Hippos Oneida Augusta Treverorum Mississauga Kreva
Kreva, Kalamata and Nacogdoches are the eponym of greater number of names and peoples than Lincoln
Kreva Kalamata Nacogdoches
action greater
action union
action find_tuple_counts
relation named after
type administrative territorial entity
type name
action find_tuple_counts
relation named after
type administrative territorial entity
type people
action count
action filter_multi_types
action find
entity Lincoln
relation named after
type name
type people
[{'concept': 'administrative territorial entity'}, 'named after', [{'concept': 'name'}, {'concept': 'people'}]]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?s ) WHERE { resource:Lincoln property:named_after ?h . { VALUES ( ?c ) { ( ontology:name ) ( ontology:people ) } . ?h rdf:type ?c } } } . FILTER ( ?y > ?s ) . { SELECT DISTINCT ?w ( COUNT ( ?p ) AS ?y ) WHERE { { ?w property:named_after ?p . ?w rdf:type ontology:administrative_territorial_entity . ?p rdf:type ontology:name } UNION { ?w property:named_after ?p . ?w rdf:type ontology:administrative_territorial_entity . ?p rdf:type ontology:people } } GROUP BY ?w } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q157469
P138
Q82799 Q2472587 Q56061
USER
And also tell me about Leninsk?
(c(Q56061),P138,c(Q82799)|c(Q2472587))
action greater
action union
action find_tuple_counts
relation P138
type Q56061
type Q82799
action find_tuple_counts
relation P138
type Q56061
type Q2472587
action count
action filter_multi_types
action find
entity Q157469
relation P138
type Q82799
type Q2472587
[{'concept': 'Q56061'}, 'P138', [{'concept': 'Q82799'}, {'concept': 'Q2472587'}]]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( COUNT ( ?r ) AS ?t ) ?a WHERE { { ?a property:P138 ?r . ?r rdf:type ontology:Q82799 . ?a rdf:type ontology:Q56061 } UNION { ?a property:P138 ?r . ?r rdf:type ontology:Q2472587 . ?a rdf:type ontology:Q56061 } } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?n ) WHERE { resource:Q157469 property:P138 ?o . { VALUES ( ?e ) { ( ontology:Q82799 ) ( ontology:Q2472587 ) } . ?o rdf:type ?e } } } . FILTER ( ?t > ?n ) }
Leninsk
action greater
action union
action find_tuple_counts
relation named after
type administrative territorial entity
type name
action find_tuple_counts
relation named after
type administrative territorial entity
type people
action count
action filter_multi_types
action find
entity Leninsk
relation named after
type name
type people
[{'concept': 'administrative territorial entity'}, 'named after', [{'concept': 'name'}, {'concept': 'people'}]]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( COUNT ( ?r ) AS ?t ) ?a WHERE { { ?a property:named_after ?r . ?r rdf:type ontology:name . ?a rdf:type ontology:administrative_territorial_entity } UNION { ?a property:named_after ?r . ?r rdf:type ontology:people . ?a rdf:type ontology:administrative_territorial_entity } } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?n ) WHERE { resource:Leninsk property:named_after ?o . { VALUES ( ?e ) { ( ontology:name ) ( ontology:people ) } . ?o rdf:type ?e } } } . FILTER ( ?t > ?n ) }
[]
name people administrative territorial entity
Q2621007 Q167895 Q970482
SYSTEM
Kreva, Kalamata, Nacogdoches
Q167895 Q131335 Q970482 Q1620075 Q2294628 Q666165 Q50816 Q2621007
(c(Q56061),P138,c(Q82799)|c(Q2472587))
action greater
action union
action find_tuple_counts
relation P138
type Q56061
type Q82799
action find_tuple_counts
relation P138
type Q56061
type Q2472587
action count
action filter_multi_types
action find
entity Q157469
relation P138
type Q82799
type Q2472587
[ANSWERS]
[{'concept': 'Q56061'}, 'P138', [{'concept': 'Q82799'}, {'concept': 'Q2472587'}]]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( COUNT ( ?r ) AS ?t ) ?a WHERE { { ?a property:P138 ?r . ?r rdf:type ontology:Q82799 . ?a rdf:type ontology:Q56061 } UNION { ?a property:P138 ?r . ?r rdf:type ontology:Q2472587 . ?a rdf:type ontology:Q56061 } } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?n ) WHERE { resource:Q157469 property:P138 ?o . { VALUES ( ?e ) { ( ontology:Q82799 ) ( ontology:Q2472587 ) } . ?o rdf:type ?e } } } . FILTER ( ?t > ?n ) }
Kalamata Sioux Falls Nacogdoches Hippos Oneida Augusta Treverorum Mississauga Kreva
Kreva Kalamata Nacogdoches
action greater
action union
action find_tuple_counts
relation named after
type administrative territorial entity
type name
action find_tuple_counts
relation named after
type administrative territorial entity
type people
action count
action filter_multi_types
action find
entity Leninsk
relation named after
type name
type people
[{'concept': 'administrative territorial entity'}, 'named after', [{'concept': 'name'}, {'concept': 'people'}]]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( COUNT ( ?r ) AS ?t ) ?a WHERE { { ?a property:named_after ?r . ?r rdf:type ontology:name . ?a rdf:type ontology:administrative_territorial_entity } UNION { ?a property:named_after ?r . ?r rdf:type ontology:people . ?a rdf:type ontology:administrative_territorial_entity } } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?n ) WHERE { resource:Leninsk property:named_after ?o . { VALUES ( ?e ) { ( ontology:name ) ( ontology:people ) } . ?o rdf:type ?e } } } . FILTER ( ?t > ?n ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q11751
P127
Q811979 Q1076486
USER
How many architectural structures and sports venues are owned by Nagoya ?
(c(Q811979),P127,Q11751) (c(Q1076486),P127,Q11751)
action count
action union
action filter_type
action find_reverse
entity Q11751
relation P127
type Q811979
action filter_type
action find_reverse
entity Q11751
relation P127
type Q1076486
[{'concept': 'Q811979'}, 'P127', 'Q11751'] [{'concept': 'Q1076486'}, 'P127', 'Q11751']
SELECT DISTINCT ( COUNT ( ?g ) AS ?v ) WHERE { VALUES ( ?k ) { ( ontology:Q811979 ) ( ontology:Q1076486 ) } . ?g rdf:type ?k }
Nagoya
action count
action union
action filter_type
action find_reverse
entity Nagoya
relation owned by
type architectural structure
action filter_type
action find_reverse
entity Nagoya
relation owned by
type sports venue
[{'concept': 'architectural structure'}, 'owned by', 'Nagoya'] [{'concept': 'sports venue'}, 'owned by', 'Nagoya']
SELECT DISTINCT ( COUNT ( ?g ) AS ?v ) WHERE { VALUES ( ?k ) { ( ontology:architectural_structure ) ( ontology:sports_venue ) } . ?g rdf:type ?k }
[]
architectural structure sports venue
SYSTEM
1 architectural structures and 3 sports venues
Q1963630 Q6958949 Q11415013 Q1190418
(c(Q811979),P127,Q11751) (c(Q1076486),P127,Q11751)
action count
action union
action filter_type
action find_reverse
entity Q11751
relation P127
type Q811979
action filter_type
action find_reverse
entity Q11751
relation P127
type Q1076486
[ANSWER]
[{'concept': 'Q811979'}, 'P127', 'Q11751'] [{'concept': 'Q1076486'}, 'P127', 'Q11751']
SELECT DISTINCT ( COUNT ( ?g ) AS ?v ) WHERE { VALUES ( ?k ) { ( ontology:Q811979 ) ( ontology:Q1076486 ) } . ?g rdf:type ?k }
Nippon Gaishi Hall Nagoya City Minato Soccer Stadium Mizuho Rugby Stadium Mizuho Athletic Stadium
1 architectural structures and 3 sports venues
action count
action union
action filter_type
action find_reverse
entity Nagoya
relation owned by
type architectural structure
action filter_type
action find_reverse
entity Nagoya
relation owned by
type sports venue
[{'concept': 'architectural structure'}, 'owned by', 'Nagoya'] [{'concept': 'sports venue'}, 'owned by', 'Nagoya']
SELECT DISTINCT ( COUNT ( ?g ) AS ?v ) WHERE { VALUES ( ?k ) { ( ontology:architectural_structure ) ( ontology:sports_venue ) } . ?g rdf:type ?k }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q6355757 Q167895
P17
Q15617994
USER
Which administrative territories are Kalamata or Kamalpur, Nepal a part of ?
OR((Q167895,P17,c(Q15617994)), (Q6355757,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q167895
relation P17
action find
entity Q6355757
relation P17
type Q15617994
{'OR': [['Q167895', 'P17', {'concept': 'Q15617994'}], ['Q6355757', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?c WHERE { { VALUES ( ?h ) { ( resource:Q6355757 ) ( resource:Q167895 ) } . ?h property:P17 ?c } . ?c rdf:type ontology:Q15617994 }
Kamalpur, Nepal Kalamata
action filter_type
action union
action find
entity Kalamata
relation country
action find
entity Kamalpur, Nepal
relation country
type designation for an administrative territorial entity
{'OR': [['Kalamata', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Kamalpur, Nepal', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?c WHERE { { VALUES ( ?h ) { ( resource:Kamalpur,_Nepal ) ( resource:Kalamata ) } . ?h property:country ?c } . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q837 Q41
SYSTEM
Nepal, Greece
Q837 Q41
OR((Q167895,P17,c(Q15617994)), (Q6355757,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q167895
relation P17
action find
entity Q6355757
relation P17
type Q15617994
[ANSWERS] are Kalamata or Kamalpur, Nepal a part of
{'OR': [['Q167895', 'P17', {'concept': 'Q15617994'}], ['Q6355757', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?c WHERE { { VALUES ( ?h ) { ( resource:Q6355757 ) ( resource:Q167895 ) } . ?h property:P17 ?c } . ?c rdf:type ontology:Q15617994 }
Nepal Greece
Nepal and Greece are Kalamata or Kamalpur, Nepal a part of
Nepal Greece
action filter_type
action union
action find
entity Kalamata
relation country
action find
entity Kamalpur, Nepal
relation country
type designation for an administrative territorial entity
{'OR': [['Kalamata', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Kamalpur, Nepal', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?c WHERE { { VALUES ( ?h ) { ( resource:Kamalpur,_Nepal ) ( resource:Kalamata ) } . ?h property:country ?c } . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q408
P530
Q1048835
USER
Are Australia known to have diplomatic connections with those administrative territories ?
(Q408,P530,Q837) (Q408,P530,Q41)
action is_in
entity prev_answer
action find
entity Q408
relation P530
['Q408', 'P530', 'Q837'] ['Q408', 'P530', 'Q41']
ASK WHERE { resource:Q408 property:P530 ?j . VALUES ( ?j ) { ( resource:Q837 ) ( resource:Q41 ) } }
Australia
action is_in
entity prev_answer
action find
entity Australia
relation diplomatic relation
['Australia', 'diplomatic relation', 'Nepal'] ['Australia', 'diplomatic relation', 'Greece']
ASK WHERE { resource:Australia property:diplomatic_relation ?j . VALUES ( ?j ) { ( resource:Nepal ) ( resource:Greece ) } }
[]
political territorial entity
SYSTEM
YES
(Q408,P530,Q837) (Q408,P530,Q41)
action is_in
entity prev_answer
action find
entity Q408
relation P530
[ANSWER]
['Q408', 'P530', 'Q837'] ['Q408', 'P530', 'Q41']
ASK WHERE { resource:Q408 property:P530 ?j . VALUES ( ?j ) { ( resource:Q837 ) ( resource:Q41 ) } }
Yes
action is_in
entity prev_answer
action find
entity Australia
relation diplomatic relation
['Australia', 'diplomatic relation', 'Nepal'] ['Australia', 'diplomatic relation', 'Greece']
ASK WHERE { resource:Australia property:diplomatic_relation ?j . VALUES ( ?j ) { ( resource:Nepal ) ( resource:Greece ) } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q408
P530
Q15617994 Q1048835
USER
How many political territories have diplomatic relations with approximately the same number of administrative territories as Australia ?
(c(Q1048835),P530,c(Q15617994))
action count
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q408
relation P530
type Q1048835
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?y ) WHERE { { SELECT DISTINCT ?l ( COUNT ( ?c ) AS ?g ) WHERE { ?c rdf:type ontology:Q15617994 . ?l rdf:type ontology:Q1048835 . ?l property:P530 ?c } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?w ) WHERE { resource:Q408 property:P530 ?j . ?j rdf:type ontology:Q1048835 } } . FILTER ( ?g = ?w ) }
Australia
action count
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Australia
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?y ) WHERE { { SELECT DISTINCT ?l ( COUNT ( ?c ) AS ?g ) WHERE { ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . ?l rdf:type ontology:political_territorial_entity . ?l property:diplomatic_relation ?c } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?w ) WHERE { resource:Australia property:diplomatic_relation ?j . ?j rdf:type ontology:political_territorial_entity } } . FILTER ( ?g = ?w ) }
[]
designation for an administrative territorial entity political territorial entity
SYSTEM
2
Q183 Q408
(c(Q1048835),P530,c(Q15617994))
action count
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q408
relation P530
type Q1048835
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?y ) WHERE { { SELECT DISTINCT ?l ( COUNT ( ?c ) AS ?g ) WHERE { ?c rdf:type ontology:Q15617994 . ?l rdf:type ontology:Q1048835 . ?l property:P530 ?c } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?w ) WHERE { resource:Q408 property:P530 ?j . ?j rdf:type ontology:Q1048835 } } . FILTER ( ?g = ?w ) }
Germany Australia
2
action count
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Australia
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?y ) WHERE { { SELECT DISTINCT ?l ( COUNT ( ?c ) AS ?g ) WHERE { ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . ?l rdf:type ontology:political_territorial_entity . ?l property:diplomatic_relation ?c } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?w ) WHERE { resource:Australia property:diplomatic_relation ?j . ?j rdf:type ontology:political_territorial_entity } } . FILTER ( ?g = ?w ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q664
P530
Q15617994 Q1048835
USER
And how about New Zealand?
(c(Q1048835),P530,c(Q15617994))
action count
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q664
relation P530
type Q1048835
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?x ) WHERE { { SELECT DISTINCT ?a ( COUNT ( ?p ) AS ?r ) WHERE { ?a property:P530 ?p . ?p rdf:type ontology:Q15617994 . ?a rdf:type ontology:Q1048835 } GROUP BY ?a } . FILTER ( ?r = ?u ) . { SELECT DISTINCT ( COUNT ( ?y ) AS ?u ) WHERE { resource:Q664 property:P530 ?y . ?y rdf:type ontology:Q1048835 } } }
New Zealand
action count
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity New Zealand
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?x ) WHERE { { SELECT DISTINCT ?a ( COUNT ( ?p ) AS ?r ) WHERE { ?a property:diplomatic_relation ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . ?a rdf:type ontology:political_territorial_entity } GROUP BY ?a } . FILTER ( ?r = ?u ) . { SELECT DISTINCT ( COUNT ( ?y ) AS ?u ) WHERE { resource:New_Zealand property:diplomatic_relation ?y . ?y rdf:type ontology: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(Q15617994))
action count
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q664
relation P530
type Q1048835
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?x ) WHERE { { SELECT DISTINCT ?a ( COUNT ( ?p ) AS ?r ) WHERE { ?a property:P530 ?p . ?p rdf:type ontology:Q15617994 . ?a rdf:type ontology:Q1048835 } GROUP BY ?a } . FILTER ( ?r = ?u ) . { SELECT DISTINCT ( COUNT ( ?y ) AS ?u ) WHERE { resource:Q664 property:P530 ?y . ?y rdf:type ontology:Q1048835 } } }
Gabon Austria Antigua and Barbuda The Bahamas Grenada Solomon Islands Denmark Papua New Guinea Canada New Zealand Jamaica
11
action count
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity New Zealand
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?x ) WHERE { { SELECT DISTINCT ?a ( COUNT ( ?p ) AS ?r ) WHERE { ?a property:diplomatic_relation ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . ?a rdf:type ontology:political_territorial_entity } GROUP BY ?a } . FILTER ( ?r = ?u ) . { SELECT DISTINCT ( COUNT ( ?y ) AS ?u ) WHERE { resource:New_Zealand property:diplomatic_relation ?y . ?y rdf:type ontology:political_territorial_entity } } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q167895
P276
Q1190554
USER
Which event has its location as Kalamata ?
(c(Q1190554),P276,Q167895)
action filter_type
action find_reverse
entity Q167895
relation P276
type Q1190554
[{'concept': 'Q1190554'}, 'P276', 'Q167895']
SELECT DISTINCT ?w WHERE { ?w property:P276 resource:Q167895 . ?w rdf:type ontology:Q1190554 }
Kalamata
action filter_type
action find_reverse
entity Kalamata
relation location
type event
[{'concept': 'event'}, 'location', 'Kalamata']
SELECT DISTINCT ?w WHERE { ?w property:location resource:Kalamata . ?w rdf:type ontology:event }
[]
event
Q13628984
SYSTEM
Battle of Kalamata
Q13628984
(c(Q1190554),P276,Q167895)
action filter_type
action find_reverse
entity Q167895
relation P276
type Q1190554
The [ANSWER] has its location as Kalamata
[{'concept': 'Q1190554'}, 'P276', 'Q167895']
SELECT DISTINCT ?w WHERE { ?w property:P276 resource:Q167895 . ?w rdf:type ontology:Q1190554 }
Battle of Kalamata
The Battle of Kalamata has its location as Kalamata
Battle of Kalamata
action filter_type
action find_reverse
entity Kalamata
relation location
type event
[{'concept': 'event'}, 'location', 'Kalamata']
SELECT DISTINCT ?w WHERE { ?w property:location resource:Kalamata . ?w rdf:type ontology:event }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q13628984
P607
Q502895
USER
Which person was that event a part of ?
(c(Q502895),P607,Q13628984)
action filter_type
action find_reverse
entity Q13628984
relation P607
type Q502895
[{'concept': 'Q502895'}, 'P607', 'Q13628984']
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q502895 . ?y property:P607 resource:Q13628984 }
Battle of Kalamata
action filter_type
action find_reverse
entity Battle of Kalamata
relation conflict
type common name
[{'concept': 'common name'}, 'conflict', 'Battle of Kalamata']
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:common_name . ?y property:conflict resource:Battle_of_Kalamata }
[]
common name
Q19116288
SYSTEM
Pieros Voidis
Q19116288
(c(Q502895),P607,Q13628984)
action filter_type
action find_reverse
entity Q13628984
relation P607
type Q502895
[ANSWER] was that event a part of
[{'concept': 'Q502895'}, 'P607', 'Q13628984']
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q502895 . ?y property:P607 resource:Q13628984 }
Pieros Voidis
Pieros Voidis was that event a part of
Pieros Voidis
action filter_type
action find_reverse
entity Battle of Kalamata
relation conflict
type common name
[{'concept': 'common name'}, 'conflict', 'Battle of Kalamata']
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:common_name . ?y property:conflict resource:Battle_of_Kalamata }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1303
Q34379 Q502895
USER
Which musical instruments are played by atleast 2523 people ?
(c(Q502895),P1303,c(Q34379))
action atleast
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 2523
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?u ) AS ?y ) WHERE { ?u property:P1303 ?h . ?h rdf:type ontology:Q34379 . ?u rdf:type ontology:Q502895 } GROUP BY ?h } . FILTER ( ?y >= 2523 ) }
action atleast
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 2523
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?u ) AS ?y ) WHERE { ?u property:instrument ?h . ?h rdf:type ontology:musical_instrument . ?u rdf:type ontology:common_name } GROUP BY ?h } . FILTER ( ?y >= 2523 ) }
[]
musical instrument common name
Q5994 Q8355
SYSTEM
piano, violin
Q5994 Q8355
(c(Q502895),P1303,c(Q34379))
action atleast
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 2523
[ANSWERS] are played by atleast 2523 people
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?u ) AS ?y ) WHERE { ?u property:P1303 ?h . ?h rdf:type ontology:Q34379 . ?u rdf:type ontology:Q502895 } GROUP BY ?h } . FILTER ( ?y >= 2523 ) }
piano violin
Piano and violin are played by atleast 2523 people
piano violin
action atleast
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 2523
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?u ) AS ?y ) WHERE { ?u property:instrument ?h . ?h rdf:type ontology:musical_instrument . ?u rdf:type ontology:common_name } GROUP BY ?h } . FILTER ( ?y >= 2523 ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q41 Q205047
P85
Q484692
USER
How many hymns are the national anthems of Greece or Iraqi Kurdistan ?
(Q41,P85,c(Q484692)) (Q205047,P85,c(Q484692))
action count
action union
action filter_type
action find
entity Q41
relation P85
type Q484692
action filter_type
action find
entity Q205047
relation P85
type Q484692
['Q41', 'P85', {'concept': 'Q484692'}] ['Q205047', 'P85', {'concept': 'Q484692'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?b ) WHERE { VALUES ( ?z ) { ( resource:Q41 ) ( resource:Q205047 ) } . ?z property:P85 ?h }
Greece Iraqi Kurdistan
action count
action union
action filter_type
action find
entity Greece
relation anthem
type hymn
action filter_type
action find
entity Iraqi Kurdistan
relation anthem
type hymn
['Greece', 'anthem', {'concept': 'hymn'}] ['Iraqi Kurdistan', 'anthem', {'concept': 'hymn'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?b ) WHERE { VALUES ( ?z ) { ( resource:Greece ) ( resource:Iraqi_Kurdistan ) } . ?z property:anthem ?h }
[]
hymn
SYSTEM
2
Q771255 Q176665
(Q41,P85,c(Q484692)) (Q205047,P85,c(Q484692))
action count
action union
action filter_type
action find
entity Q41
relation P85
type Q484692
action filter_type
action find
entity Q205047
relation P85
type Q484692
[ANSWER]
['Q41', 'P85', {'concept': 'Q484692'}] ['Q205047', 'P85', {'concept': 'Q484692'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?b ) WHERE { VALUES ( ?z ) { ( resource:Q41 ) ( resource:Q205047 ) } . ?z property:P85 ?h }
Ey Reqîb Hymn to Liberty
2
action count
action union
action filter_type
action find
entity Greece
relation anthem
type hymn
action filter_type
action find
entity Iraqi Kurdistan
relation anthem
type hymn
['Greece', 'anthem', {'concept': 'hymn'}] ['Iraqi Kurdistan', 'anthem', {'concept': 'hymn'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?b ) WHERE { VALUES ( ?z ) { ( resource:Greece ) ( resource:Iraqi_Kurdistan ) } . ?z property:anthem ?h }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q1002124 Q167895
P19
Q502895
USER
Which people were born at Kalamata or Lanark ?
OR((c(Q502895),P19,Q167895), (c(Q502895),P19,Q1002124))
action filter_type
action union
action find_reverse
entity Q167895
relation P19
action find_reverse
entity Q1002124
relation P19
type Q502895
{'OR': [[{'concept': 'Q502895'}, 'P19', 'Q167895'], [{'concept': 'Q502895'}, 'P19', 'Q1002124']]}
SELECT DISTINCT ?k WHERE { { { ?k property:P19 resource:Q1002124 } UNION { ?k property:P19 resource:Q167895 } } . ?k rdf:type ontology:Q502895 }
Lanark Kalamata
action filter_type
action union
action find_reverse
entity Kalamata
relation place of birth
action find_reverse
entity Lanark
relation place of birth
type common name
{'OR': [[{'concept': 'common name'}, 'place of birth', 'Kalamata'], [{'concept': 'common name'}, 'place of birth', 'Lanark']]}
SELECT DISTINCT ?k WHERE { { { ?k property:place_of_birth resource:Lanark } UNION { ?k property:place_of_birth resource:Kalamata } } . ?k rdf:type ontology:common_name }
[]
common name
Q361446 Q1367117 Q223312 Q16192839 Q5262052 Q1389713 Q201291 Q655289 Q4707170 Q15407958
SYSTEM
Some of them are Lee Miller, Kenny Stamatopoulos, Georgios Fotakis, Chic McSherry, Derek Holmes, Nikos Chatzis, Colin McRae, John Iliopoulos, Alan Love, Yorgos Moutsios
Q3714618 Q3563281 Q1820531 Q7129832 Q3341831 Q1677291 Q5237339 Q192923 Q5262052 Q4755363 Q1389713 Q451156 Q633149 Q6135748 Q6430202 Q6825101 Q201291 Q8006075 Q4707170 Q7964761 Q1651424 Q14158533 Q6755552 Q5312462 Q1388415 Q6939277 Q7615803 Q16329257 Q1689391 Q1367117 Q7297389 Q7436069 Q16210446 Q6836913 Q12879656 Q3876966 Q5262183 Q5301128 Q4730595 Q18921912 Q1750520 Q3110931 Q973712 Q16200426 Q6513930 Q12881557 Q234716 Q3407316 Q18019556 Q1288191 Q5145015 Q12873921 Q4913242 Q18737030 Q16194012 Q370953 Q7028468 Q655289 Q3108226 Q5525507 Q9262058 Q3562118 Q1647272 Q5540541 Q5930180 Q5982118 Q20731772 Q16512510 Q16512517 Q13518215 Q6397557 Q12875299 Q19882771 Q16236483 Q222524 Q2481040 Q4763011 Q2903065 Q15407958 Q359387 Q6767745 Q6536856 Q5232627 Q3476251 Q16063079 Q223312 Q3559918 Q18640343 Q7155964 Q7349658 Q7710139 Q7129829 Q24060886 Q361446 Q4963460 Q4155285 Q5225160 Q7131554 Q5371886 Q6267561 Q16194919 Q16192839
OR((c(Q502895),P19,Q167895), (c(Q502895),P19,Q1002124))
action filter_type
action union
action find_reverse
entity Q167895
relation P19
action find_reverse
entity Q1002124
relation P19
type Q502895
[ANSWERS] were born at Kalamata or Lanark
{'OR': [[{'concept': 'Q502895'}, 'P19', 'Q167895'], [{'concept': 'Q502895'}, 'P19', 'Q1002124']]}
SELECT DISTINCT ?k WHERE { { { ?k property:P19 resource:Q1002124 } UNION { ?k property:P19 resource:Q167895 } } . ?k rdf:type ontology:Q502895 }
Dougie Arnott Mihalis Papagiannakis Nikolaos Georgeas Panagiotis Benakis Nikos Economopoulos Jackie Lockhart David McEwan Sokratis Papastathopoulos Derek Holmes Andreas Apostolopoulos Nikos Chatzis William II of Villehardouin Archibald Douglas, 6th Earl of Angus James Hay Konstantinos Ventiris Metropolitan Gerasimos (Michaleas) of San Francisco Colin McRae William Bryce Alan Love Walter Elliot Nikolaos Doxaras Giannis Christopoulos Marc Fitzpatrick Dugald McCarrison Stephen Pearson Murray Henderson Stewart Greacen Miltos Paschalidis Jimmy McRae Kenny Stamatopoulos Ray Deans Scott Bulloch Sarah Crilly Michelle Barr Konstantinos Koumoundouros Nikolaos Papanikolopoulos Derek McGill Dougie Imrie Allan Ferguson Keith Hogg Vassilis Photopoulos Gordon Wallace Maria Polydouri Fraser Brown Lee Hollis Nikos Moulatsiotis Yanni Prokopis Pavlopoulos Nikolaos Otoneos William Smellie Colin Cramb Apostolos Georgiadis Billy Ritchie Billy McGhie Sammy Conn Stephen McManus Nicki Paterson John Iliopoulos Giórgos Petréas Gary MacKenzie Frances Murray Christos Kalantzis Robert Douglas George Herd Hugh Burns Ian MacFarlane Colin Cameron Andreas Skias Stavros Kostopoulos Yannis Livadas Kevin Storrie Youlika Skafida Alison Thewliss Spyros Risvanis Alister McRae Ali Crawford Angelos Skafidas Aris San Yorgos Moutsios Walter Smith Mark Gilhaney Lewis McDonald David Cox Scott Lawson Margaret Agnes Bunn Georgios Fotakis Aris Galanopoulos Andy Donnelly Pavlos Kouroupis Robert Scott Thanasis Sentementes Panagiotis Bachramis Margo Buchanan Lee Miller Brian Crawford John Downie Darren Smith Panos Mihalopoulos Emilio Jaconelli Johnny Reid Dimitrios Stefanakos Chic McSherry
Lee Miller, Kenny Stamatopoulos, Georgios Fotakis, Chic McSherry, Derek Holmes, Nikos Chatzis, Colin McRae, John Iliopoulos, Alan Love and Yorgos Moutsios were born at Kalamata or Lanark
Lee Miller Kenny Stamatopoulos Georgios Fotakis Chic McSherry Derek Holmes Nikos Chatzis Colin McRae John Iliopoulos Alan Love Yorgos Moutsios
action filter_type
action union
action find_reverse
entity Kalamata
relation place of birth
action find_reverse
entity Lanark
relation place of birth
type common name
{'OR': [[{'concept': 'common name'}, 'place of birth', 'Kalamata'], [{'concept': 'common name'}, 'place of birth', 'Lanark']]}
SELECT DISTINCT ?k WHERE { { { ?k property:place_of_birth resource:Lanark } UNION { ?k property:place_of_birth resource:Kalamata } } . ?k rdf:type ontology:common_name }
[]