Simple Question (Direct)
Simple Question
Q233966
P7
Q502895
USER
Who is the brother of Caroline, Princess of Hanover ?
(Q233966,P7,c(Q502895))
action filter_type
action find
entity Q233966
relation P7
type Q502895
['Q233966', 'P7', {'concept': 'Q502895'}]
SELECT DISTINCT ?y WHERE { resource:Q233966 property:P7 ?y . ?y rdf:type ontology:Q502895 }
Caroline, Princess of Hanover
action filter_type
action find
entity Caroline, Princess of Hanover
relation brother
type common name
['Caroline, Princess of Hanover', 'brother', {'concept': 'common name'}]
SELECT DISTINCT ?y WHERE { resource:Caroline,_Princess_of_Hanover property:brother ?y . ?y rdf:type ontology:common_name }
[]
common name
Q3910
SYSTEM
Albert II
Q3910
(Q233966,P7,c(Q502895))
action filter_type
action find
entity Q233966
relation P7
type Q502895
The brother of Caroline , Princess of Hanover is born [ANSWER]
['Q233966', 'P7', {'concept': 'Q502895'}]
SELECT DISTINCT ?y WHERE { resource:Q233966 property:P7 ?y . ?y rdf:type ontology:Q502895 }
Albert II
The brother of Caroline , Princess of Hanover is born Albert II
Albert II
action filter_type
action find
entity Caroline, Princess of Hanover
relation brother
type common name
['Caroline, Princess of Hanover', 'brother', {'concept': 'common name'}]
SELECT DISTINCT ?y WHERE { resource:Caroline,_Princess_of_Hanover property:brother ?y . ?y rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q233966
P25
Q502895
USER
Who was the mother of Caroline, Princess of Hanover ?
(Q233966,P25,c(Q502895))
action filter_type
action find
entity Q233966
relation P25
type Q502895
['Q233966', 'P25', {'concept': 'Q502895'}]
SELECT DISTINCT ?v WHERE { resource:Q233966 property:P25 ?v . ?v rdf:type ontology:Q502895 }
Caroline, Princess of Hanover
action filter_type
action find
entity Caroline, Princess of Hanover
relation mother
type common name
['Caroline, Princess of Hanover', 'mother', {'concept': 'common name'}]
SELECT DISTINCT ?v WHERE { resource:Caroline,_Princess_of_Hanover property:mother ?v . ?v rdf:type ontology:common_name }
[]
common name
Q3925
SYSTEM
Grace Kelly
Q3925
(Q233966,P25,c(Q502895))
action filter_type
action find
entity Q233966
relation P25
type Q502895
The mother of Caroline , Princess of Hanover was born [ANSWER]
['Q233966', 'P25', {'concept': 'Q502895'}]
SELECT DISTINCT ?v WHERE { resource:Q233966 property:P25 ?v . ?v rdf:type ontology:Q502895 }
Grace Kelly
The mother of Caroline , Princess of Hanover was born Grace Kelly
Grace Kelly
action filter_type
action find
entity Caroline, Princess of Hanover
relation mother
type common name
['Caroline, Princess of Hanover', 'mother', {'concept': 'common name'}]
SELECT DISTINCT ?v WHERE { resource:Caroline,_Princess_of_Hanover property:mother ?v . ?v rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3925
P941
Q95074
USER
Which fictional character has that person as source of inspiration ?
(c(Q95074),P941,Q3925)
action filter_type
action find_reverse
entity Q3925
relation P941
type Q95074
[{'concept': 'Q95074'}, 'P941', 'Q3925']
SELECT DISTINCT ?c WHERE { ?c property:P941 resource:Q3925 . ?c rdf:type ontology:Q95074 }
Grace Kelly
action filter_type
action find_reverse
entity Grace Kelly
relation inspired by
type fictional character
[{'concept': 'fictional character'}, 'inspired by', 'Grace Kelly']
SELECT DISTINCT ?c WHERE { ?c property:inspired_by resource:Grace_Kelly . ?c rdf:type ontology:fictional_character }
[]
fictional character
Q2502489
SYSTEM
Belle
Q2502489
(c(Q95074),P941,Q3925)
action filter_type
action find_reverse
entity Q3925
relation P941
type Q95074
[ANSWER] has that person as source of inspiration
[{'concept': 'Q95074'}, 'P941', 'Q3925']
SELECT DISTINCT ?c WHERE { ?c property:P941 resource:Q3925 . ?c rdf:type ontology:Q95074 }
Belle
Belle has that person as source of inspiration
Belle
action filter_type
action find_reverse
entity Grace Kelly
relation inspired by
type fictional character
[{'concept': 'fictional character'}, 'inspired by', 'Grace Kelly']
SELECT DISTINCT ?c WHERE { ?c property:inspired_by resource:Grace_Kelly . ?c rdf:type ontology:fictional_character }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3925
P26
Q502895
USER
Who is the spouse of Grace Kelly ?
(c(Q502895),P26,Q3925)
action filter_type
action find
entity Q3925
relation P26
type Q502895
[{'concept': 'Q502895'}, 'P26', 'Q3925']
SELECT DISTINCT ?e WHERE { resource:Q3925 property:P26 ?e . ?e rdf:type ontology:Q502895 }
Grace Kelly
action filter_type
action find
entity Grace Kelly
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Grace Kelly']
SELECT DISTINCT ?e WHERE { resource:Grace_Kelly property:spouse ?e . ?e rdf:type ontology:common_name }
[]
common name
Q185025
SYSTEM
Rainier III, Prince of Monaco
Q185025
(c(Q502895),P26,Q3925)
action filter_type
action find
entity Q3925
relation P26
type Q502895
The spouse of Grace Kelly is Monaco [ANSWER]
[{'concept': 'Q502895'}, 'P26', 'Q3925']
SELECT DISTINCT ?e WHERE { resource:Q3925 property:P26 ?e . ?e rdf:type ontology:Q502895 }
Rainier III, Prince of Monaco
The spouse of Grace Kelly is Monaco Rainier III, Prince of Monaco
Rainier III, Prince of Monaco
action filter_type
action find
entity Grace Kelly
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Grace Kelly']
SELECT DISTINCT ?e WHERE { resource:Grace_Kelly property:spouse ?e . ?e rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3925
P1346
Q4220917
USER
Where was Grace Kelly decalred as a champion ?
(c(Q4220917),P1346,Q3925)
action filter_type
action find_reverse
entity Q3925
relation P1346
type Q4220917
[{'concept': 'Q4220917'}, 'P1346', 'Q3925']
SELECT DISTINCT ?q WHERE { ?q property:P1346 resource:Q3925 . ?q rdf:type ontology:Q4220917 }
Grace Kelly
action filter_type
action find_reverse
entity Grace Kelly
relation winner
type film award
[{'concept': 'film award'}, 'winner', 'Grace Kelly']
SELECT DISTINCT ?q WHERE { ?q property:winner resource:Grace_Kelly . ?q rdf:type ontology:film_award }
[]
film award
Q1419495
SYSTEM
National Board of Review Award for Best Actress
Q1419495
(c(Q4220917),P1346,Q3925)
action filter_type
action find_reverse
entity Q3925
relation P1346
type Q4220917
As a champion the [ANSWER] Grace Kelly was decalred
[{'concept': 'Q4220917'}, 'P1346', 'Q3925']
SELECT DISTINCT ?q WHERE { ?q property:P1346 resource:Q3925 . ?q rdf:type ontology:Q4220917 }
National Board of Review Award for Best Actress
As a champion the National Board of Review Award for Best Actress Grace Kelly was decalred
National Board of Review Award for Best Actress
action filter_type
action find_reverse
entity Grace Kelly
relation winner
type film award
[{'concept': 'film award'}, 'winner', 'Grace Kelly']
SELECT DISTINCT ?q WHERE { ?q property:winner resource:Grace_Kelly . ?q rdf:type ontology:film_award }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q185025
P9
Q502895
USER
Who is the sister of Rainier III, Prince of Monaco ?
(Q185025,P9,c(Q502895))
action filter_type
action find
entity Q185025
relation P9
type Q502895
['Q185025', 'P9', {'concept': 'Q502895'}]
SELECT DISTINCT ?j WHERE { resource:Q185025 property:P9 ?j . ?j rdf:type ontology:Q502895 }
Rainier III, Prince of Monaco
action filter_type
action find
entity Rainier III, Prince of Monaco
relation sister
type common name
['Rainier III, Prince of Monaco', 'sister', {'concept': 'common name'}]
SELECT DISTINCT ?j WHERE { resource:Rainier_III,_Prince_of_Monaco property:sister ?j . ?j rdf:type ontology:common_name }
[]
common name
Q1111673
SYSTEM
Princess Antoinette, Baroness of Massy
Q1111673
(Q185025,P9,c(Q502895))
action filter_type
action find
entity Q185025
relation P9
type Q502895
The sister of Rainier III , Prince of Monaco is [ANSWER]
['Q185025', 'P9', {'concept': 'Q502895'}]
SELECT DISTINCT ?j WHERE { resource:Q185025 property:P9 ?j . ?j rdf:type ontology:Q502895 }
Princess Antoinette, Baroness of Massy
The sister of Rainier III , Prince of Monaco is Princess Antoinette, Baroness of Massy
Princess Antoinette, Baroness of Massy
action filter_type
action find
entity Rainier III, Prince of Monaco
relation sister
type common name
['Rainier III, Prince of Monaco', 'sister', {'concept': 'common name'}]
SELECT DISTINCT ?j WHERE { resource:Rainier_III,_Prince_of_Monaco property:sister ?j . ?j rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1111673
P27
Q15617994
USER
Which administrative territory is the country of citizenship of that person ?
(Q1111673,P27,c(Q15617994))
action filter_type
action find
entity Q1111673
relation P27
type Q15617994
['Q1111673', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?u WHERE { resource:Q1111673 property:P27 ?u . ?u rdf:type ontology:Q15617994 }
Princess Antoinette, Baroness of Massy
action filter_type
action find
entity Princess Antoinette, Baroness of Massy
relation country of citizenship
type designation for an administrative territorial entity
['Princess Antoinette, Baroness of Massy', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { resource:Princess_Antoinette,_Baroness_of_Massy property:country_of_citizenship ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142
SYSTEM
France
Q142
(Q1111673,P27,c(Q15617994))
action filter_type
action find
entity Q1111673
relation P27
type Q15617994
The [ANSWER] is the country of citizenship of that person
['Q1111673', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?u WHERE { resource:Q1111673 property:P27 ?u . ?u rdf:type ontology:Q15617994 }
France
The France is the country of citizenship of that person
France
action filter_type
action find
entity Princess Antoinette, Baroness of Massy
relation country of citizenship
type designation for an administrative territorial entity
['Princess Antoinette, Baroness of Massy', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { resource:Princess_Antoinette,_Baroness_of_Massy property:country_of_citizenship ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q142
P463
Q180516 Q35749
USER
How many rooms and parliaments were France a member of ?
(Q142,P463,c(Q180516)) (Q142,P463,c(Q35749))
action count
action union
action filter_type
action find
entity Q142
relation P463
type Q180516
action filter_type
action find
entity Q142
relation P463
type Q35749
['Q142', 'P463', {'concept': 'Q180516'}] ['Q142', 'P463', {'concept': 'Q35749'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?z ) WHERE { { resource:Q142 property:P463 ?i . ?i rdf:type ontology:Q35749 } UNION { resource:Q142 property:P463 ?i . ?i rdf:type ontology:Q180516 } }
France
action count
action union
action filter_type
action find
entity France
relation member of
type room
action filter_type
action find
entity France
relation member of
type parliament
['France', 'member of', {'concept': 'room'}] ['France', 'member of', {'concept': 'parliament'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?z ) WHERE { { resource:France property:member_of ?i . ?i rdf:type ontology:parliament } UNION { resource:France property:member_of ?i . ?i rdf:type ontology:room } }
[]
room parliament
SYSTEM
1 rooms and 1 parliaments
Q37470 Q141720
(Q142,P463,c(Q180516)) (Q142,P463,c(Q35749))
action count
action union
action filter_type
action find
entity Q142
relation P463
type Q180516
action filter_type
action find
entity Q142
relation P463
type Q35749
[ANSWER]
['Q142', 'P463', {'concept': 'Q180516'}] ['Q142', 'P463', {'concept': 'Q35749'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?z ) WHERE { { resource:Q142 property:P463 ?i . ?i rdf:type ontology:Q35749 } UNION { resource:Q142 property:P463 ?i . ?i rdf:type ontology:Q180516 } }
United Nations Security Council European Air Transport Command
1 rooms and 1 parliaments
action count
action union
action filter_type
action find
entity France
relation member of
type room
action filter_type
action find
entity France
relation member of
type parliament
['France', 'member of', {'concept': 'room'}] ['France', 'member of', {'concept': 'parliament'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?z ) WHERE { { resource:France property:member_of ?i . ?i rdf:type ontology:parliament } UNION { resource:France property:member_of ?i . ?i rdf:type ontology:room } }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P530
Q15617994 Q1048835 Q15617994
USER
Which administrative territories have diplomatic relationships with max number of political territories or administrative territories ?
(c(Q1048835)|c(Q15617994),P530,c(Q15617994))
action argmax
action union
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q1048835
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
[[{'concept': 'Q1048835'}, {'concept': 'Q15617994'}], 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( MAX ( ?y ) AS ?n ) { SELECT DISTINCT ( COUNT ( ?i ) AS ?y ) ?k WHERE { ?i rdf:type ?c . VALUES ( ?c ) { ( ontology:Q1048835 ) ( ontology:Q15617994 ) } } GROUP BY ?k } } . FILTER ( ?u = ?n ) . { SELECT DISTINCT ( COUNT ( ?h ) AS ?u ) ?o WHERE { { ?h property:P530 ?o . ?h rdf:type ontology:Q1048835 . ?o rdf:type ontology:Q15617994 } UNION { ?h property:P530 ?o . ?o rdf:type ontology:Q15617994 . ?h rdf:type ontology:Q15617994 } } GROUP BY ?o } }
action argmax
action union
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
[[{'concept': 'political territorial entity'}, {'concept': 'designation for an administrative territorial entity'}], 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( MAX ( ?y ) AS ?n ) { SELECT DISTINCT ( COUNT ( ?i ) AS ?y ) ?k WHERE { ?i rdf:type ?c . VALUES ( ?c ) { ( ontology:political_territorial_entity ) ( ontology:designation_for_an_administrative_territorial_entity ) } } GROUP BY ?k } } . FILTER ( ?u = ?n ) . { SELECT DISTINCT ( COUNT ( ?h ) AS ?u ) ?o WHERE { { ?h property:diplomatic_relation ?o . ?h rdf:type ontology:political_territorial_entity . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?h property:diplomatic_relation ?o . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?o } }
[]
designation for an administrative territorial entity political territorial entity designation for an administrative territorial entity
Q38
SYSTEM
Italy
Q38
(c(Q1048835)|c(Q15617994),P530,c(Q15617994))
action argmax
action union
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q1048835
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
[ANSWER] have diplomatic relationships with max number of political territories or administrative territories
[[{'concept': 'Q1048835'}, {'concept': 'Q15617994'}], 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( MAX ( ?y ) AS ?n ) { SELECT DISTINCT ( COUNT ( ?i ) AS ?y ) ?k WHERE { ?i rdf:type ?c . VALUES ( ?c ) { ( ontology:Q1048835 ) ( ontology:Q15617994 ) } } GROUP BY ?k } } . FILTER ( ?u = ?n ) . { SELECT DISTINCT ( COUNT ( ?h ) AS ?u ) ?o WHERE { { ?h property:P530 ?o . ?h rdf:type ontology:Q1048835 . ?o rdf:type ontology:Q15617994 } UNION { ?h property:P530 ?o . ?o rdf:type ontology:Q15617994 . ?h rdf:type ontology:Q15617994 } } GROUP BY ?o } }
Italy
Italy have diplomatic relationships with max number of political territories or administrative territories
Italy
action argmax
action union
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
[[{'concept': 'political territorial entity'}, {'concept': 'designation for an administrative territorial entity'}], 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( MAX ( ?y ) AS ?n ) { SELECT DISTINCT ( COUNT ( ?i ) AS ?y ) ?k WHERE { ?i rdf:type ?c . VALUES ( ?c ) { ( ontology:political_territorial_entity ) ( ontology:designation_for_an_administrative_territorial_entity ) } } GROUP BY ?k } } . FILTER ( ?u = ?n ) . { SELECT DISTINCT ( COUNT ( ?h ) AS ?u ) ?o WHERE { { ?h property:diplomatic_relation ?o . ?h rdf:type ontology:political_territorial_entity . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?h property:diplomatic_relation ?o . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?o } }
[]