Simple Question (Direct)
Simple Question
Q1797231
P40
Q502895
USER
Who is an offspring of Orígenes Lessa ?
(Q1797231,P40,c(Q502895))
action filter_type
action find
entity Q1797231
relation P40
type Q502895
['Q1797231', 'P40', {'concept': 'Q502895'}]
SELECT DISTINCT ?i WHERE { resource:Q1797231 property:P40 ?i . ?i rdf:type ontology:Q502895 }
Orígenes Lessa
action filter_type
action find
entity Orígenes Lessa
relation child
type common name
['Orígenes Lessa', 'child', {'concept': 'common name'}]
SELECT DISTINCT ?i WHERE { resource:Orígenes_Lessa property:child ?i . ?i rdf:type ontology:common_name }
[]
common name
Q6096808
SYSTEM
Ivan Lessa
Q6096808
(Q1797231,P40,c(Q502895))
action filter_type
action find
entity Q1797231
relation P40
type Q502895
An offspring of Orígenes Lessa is the [ANSWER]
['Q1797231', 'P40', {'concept': 'Q502895'}]
SELECT DISTINCT ?i WHERE { resource:Q1797231 property:P40 ?i . ?i rdf:type ontology:Q502895 }
Ivan Lessa
An offspring of Orígenes Lessa is the Ivan Lessa
Ivan Lessa
action filter_type
action find
entity Orígenes Lessa
relation child
type common name
['Orígenes Lessa', 'child', {'concept': 'common name'}]
SELECT DISTINCT ?i WHERE { resource:Orígenes_Lessa property:child ?i . ?i rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q6096808
P22
Q502895
USER
Which person was the father of that one ?
(Q6096808,P22,c(Q502895))
action filter_type
action find
entity Q6096808
relation P22
type Q502895
['Q6096808', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?i WHERE { resource:Q6096808 property:P22 ?i . ?i rdf:type ontology:Q502895 }
Ivan Lessa
action filter_type
action find
entity Ivan Lessa
relation father
type common name
['Ivan Lessa', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?i WHERE { resource:Ivan_Lessa property:father ?i . ?i rdf:type ontology:common_name }
[]
common name
Q1797231
SYSTEM
Orígenes Lessa
Q1797231
(Q6096808,P22,c(Q502895))
action filter_type
action find
entity Q6096808
relation P22
type Q502895
[ANSWER] was the father of that one
['Q6096808', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?i WHERE { resource:Q6096808 property:P22 ?i . ?i rdf:type ontology:Q502895 }
Orígenes Lessa
Orígenes Lessa was the father of that one
Orígenes Lessa
action filter_type
action find
entity Ivan Lessa
relation father
type common name
['Ivan Lessa', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?i WHERE { resource:Ivan_Lessa property:father ?i . ?i rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q14712766 Q6096808
P27 P17
Q15617994
USER
Which administrative territories are the countries of citizenship of Ivan Lessa or are Macedonia Methodist Church a part of ?
OR((Q6096808,P27,c(Q15617994)), (Q14712766,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q6096808
relation P27
action find
entity Q14712766
relation P17
type Q15617994
{'OR': [['Q6096808', 'P27', {'concept': 'Q15617994'}], ['Q14712766', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Q6096808 property:P27 ?v } UNION { resource:Q14712766 property:P17 ?v } } . ?v rdf:type ontology:Q15617994 }
Macedonia Methodist Church Ivan Lessa
action filter_type
action union
action find
entity Ivan Lessa
relation country of citizenship
action find
entity Macedonia Methodist Church
relation country
type designation for an administrative territorial entity
{'OR': [['Ivan Lessa', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Macedonia Methodist Church', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Ivan_Lessa property:country_of_citizenship ?v } UNION { resource:Macedonia_Methodist_Church property:country ?v } } . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q155 Q30
SYSTEM
Brazil, United States of America
Q155 Q30
OR((Q6096808,P27,c(Q15617994)), (Q14712766,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q6096808
relation P27
action find
entity Q14712766
relation P17
type Q15617994
[ANSWERS] are the countries of citizenship of Ivan Lessa or are Macedonia Methodist Church a part of
{'OR': [['Q6096808', 'P27', {'concept': 'Q15617994'}], ['Q14712766', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Q6096808 property:P27 ?v } UNION { resource:Q14712766 property:P17 ?v } } . ?v rdf:type ontology:Q15617994 }
Brazil United States of America
Brazil and United States of America are the countries of citizenship of Ivan Lessa or are Macedonia Methodist Church a part of
Brazil United States of America
action filter_type
action union
action find
entity Ivan Lessa
relation country of citizenship
action find
entity Macedonia Methodist Church
relation country
type designation for an administrative territorial entity
{'OR': [['Ivan Lessa', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Macedonia Methodist Church', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Ivan_Lessa property:country_of_citizenship ?v } UNION { resource:Macedonia_Methodist_Church property:country ?v } } . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q155
P17
Q16466010 Q15416
USER
How many association football matches or television programs are present in Brazil ?
(c(Q16466010),P17,Q155) (c(Q15416),P17,Q155)
action count
action union
action filter_type
action find_reverse
entity Q155
relation P17
type Q16466010
action filter_type
action find_reverse
entity Q155
relation P17
type Q15416
[{'concept': 'Q16466010'}, 'P17', 'Q155'] [{'concept': 'Q15416'}, 'P17', 'Q155']
SELECT DISTINCT ( COUNT ( ?c ) AS ?o ) WHERE { { ?c property:P17 resource:Q155 . ?c rdf:type ontology:Q16466010 } UNION { ?c rdf:type ontology:Q15416 . ?c property:P17 resource:Q155 } }
Brazil
action count
action union
action filter_type
action find_reverse
entity Brazil
relation country
type association football match
action filter_type
action find_reverse
entity Brazil
relation country
type television program
[{'concept': 'association football match'}, 'country', 'Brazil'] [{'concept': 'television program'}, 'country', 'Brazil']
SELECT DISTINCT ( COUNT ( ?c ) AS ?o ) WHERE { { ?c property:country resource:Brazil . ?c rdf:type ontology:association_football_match } UNION { ?c rdf:type ontology:television_program . ?c property:country resource:Brazil } }
[]
association football match television program
SYSTEM
2
Q6095 Q15926885
(c(Q16466010),P17,Q155) (c(Q15416),P17,Q155)
action count
action union
action filter_type
action find_reverse
entity Q155
relation P17
type Q16466010
action filter_type
action find_reverse
entity Q155
relation P17
type Q15416
[ANSWER]
[{'concept': 'Q16466010'}, 'P17', 'Q155'] [{'concept': 'Q15416'}, 'P17', 'Q155']
SELECT DISTINCT ( COUNT ( ?c ) AS ?o ) WHERE { { ?c property:P17 resource:Q155 . ?c rdf:type ontology:Q16466010 } UNION { ?c rdf:type ontology:Q15416 . ?c property:P17 resource:Q155 } }
Big Brother Brasil 13 2014 FIFA World Cup Final
2
action count
action union
action filter_type
action find_reverse
entity Brazil
relation country
type association football match
action filter_type
action find_reverse
entity Brazil
relation country
type television program
[{'concept': 'association football match'}, 'country', 'Brazil'] [{'concept': 'television program'}, 'country', 'Brazil']
SELECT DISTINCT ( COUNT ( ?c ) AS ?o ) WHERE { { ?c property:country resource:Brazil . ?c rdf:type ontology:association_football_match } UNION { ?c rdf:type ontology:television_program . ?c property:country resource:Brazil } }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q1048835 Q15617994
USER
Which political territories have diplomatic relations with atleast 93 administrative territories ?
(c(Q15617994),P530,c(Q1048835))
action atleast
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 93
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ?z ( COUNT ( ?q ) AS ?b ) WHERE { ?z rdf:type ontology:Q1048835 . ?q rdf:type ontology:Q15617994 . ?z property:P530 ?q } GROUP BY ?z } . FILTER ( ?b >= 93 ) }
action atleast
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 93
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ?z ( COUNT ( ?q ) AS ?b ) WHERE { ?z rdf:type ontology:political_territorial_entity . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . ?z property:diplomatic_relation ?q } GROUP BY ?z } . FILTER ( ?b >= 93 ) }
[]
political territorial entity designation for an administrative territorial entity
Q183 Q408
SYSTEM
Germany, Australia
Q183 Q408
(c(Q15617994),P530,c(Q1048835))
action atleast
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 93
[ANSWERS] have diplomatic relations with atleast 93 administrative territories
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ?z ( COUNT ( ?q ) AS ?b ) WHERE { ?z rdf:type ontology:Q1048835 . ?q rdf:type ontology:Q15617994 . ?z property:P530 ?q } GROUP BY ?z } . FILTER ( ?b >= 93 ) }
Germany Australia
Germany and Australia have diplomatic relations with atleast 93 administrative territories
Germany Australia
action atleast
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 93
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ?z ( COUNT ( ?q ) AS ?b ) WHERE { ?z rdf:type ontology:political_territorial_entity . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . ?z property:diplomatic_relation ?q } GROUP BY ?z } . FILTER ( ?b >= 93 ) }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q14949843
P495
Q838948
USER
Did Danger by My Side originate in those political territories ?
(Q14949843,P495,Q183) (Q14949843,P495,Q408)
action is_in
entity prev_answer
action find
entity Q14949843
relation P495
['Q14949843', 'P495', 'Q183'] ['Q14949843', 'P495', 'Q408']
ASK WHERE { VALUES ( ?f ) { ( resource:Q183 ) ( resource:Q408 ) } . resource:Q14949843 property:P495 ?f }
Danger by My Side
action is_in
entity prev_answer
action find
entity Danger by My Side
relation country of origin
['Danger by My Side', 'country of origin', 'Germany'] ['Danger by My Side', 'country of origin', 'Australia']
ASK WHERE { VALUES ( ?f ) { ( resource:Germany ) ( resource:Australia ) } . resource:Danger_by_My_Side property:country_of_origin ?f }
[]
work of art
SYSTEM
NO
(Q14949843,P495,Q183) (Q14949843,P495,Q408)
action is_in
entity prev_answer
action find
entity Q14949843
relation P495
[ANSWER]
['Q14949843', 'P495', 'Q183'] ['Q14949843', 'P495', 'Q408']
ASK WHERE { VALUES ( ?f ) { ( resource:Q183 ) ( resource:Q408 ) } . resource:Q14949843 property:P495 ?f }
No
action is_in
entity prev_answer
action find
entity Danger by My Side
relation country of origin
['Danger by My Side', 'country of origin', 'Germany'] ['Danger by My Side', 'country of origin', 'Australia']
ASK WHERE { VALUES ( ?f ) { ( resource:Germany ) ( resource:Australia ) } . resource:Danger_by_My_Side property:country_of_origin ?f }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q21622329 Q1797231
P27
Q15617994
USER
Which administrative territories do Orígenes Lessa or Hardik Patel belong to ?
OR((Q1797231,P27,c(Q15617994)), (Q21622329,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q1797231
relation P27
action find
entity Q21622329
relation P27
type Q15617994
{'OR': [['Q1797231', 'P27', {'concept': 'Q15617994'}], ['Q21622329', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Q1797231 property:P27 ?g } UNION { resource:Q21622329 property:P27 ?g } } . ?g rdf:type ontology:Q15617994 }
Hardik Patel Orígenes Lessa
action filter_type
action union
action find
entity Orígenes Lessa
relation country of citizenship
action find
entity Hardik Patel
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Orígenes Lessa', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Hardik Patel', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Orígenes_Lessa property:country_of_citizenship ?g } UNION { resource:Hardik_Patel property:country_of_citizenship ?g } } . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q155 Q668
SYSTEM
Brazil, India
Q155 Q668
OR((Q1797231,P27,c(Q15617994)), (Q21622329,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q1797231
relation P27
action find
entity Q21622329
relation P27
type Q15617994
Orígenes Lessa or Hardik Patel belong to the [ANSWERS]
{'OR': [['Q1797231', 'P27', {'concept': 'Q15617994'}], ['Q21622329', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Q1797231 property:P27 ?g } UNION { resource:Q21622329 property:P27 ?g } } . ?g rdf:type ontology:Q15617994 }
Brazil India
Orígenes Lessa or Hardik Patel belong to the Brazil and India
Brazil India
action filter_type
action union
action find
entity Orígenes Lessa
relation country of citizenship
action find
entity Hardik Patel
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Orígenes Lessa', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Hardik Patel', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Orígenes_Lessa property:country_of_citizenship ?g } UNION { resource:Hardik_Patel property:country_of_citizenship ?g } } . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q155 Q668
P1001
Q192350
USER
Which ministries preside the jurisdiction over Brazil and India ?
(c(Q192350),P1001,Q155) (c(Q192350),P1001,Q668)
action union
action filter_type
action find_reverse
entity Q155
relation P1001
type Q192350
action filter_type
action find_reverse
entity Q668
relation P1001
type Q192350
[{'concept': 'Q192350'}, 'P1001', 'Q155'] [{'concept': 'Q192350'}, 'P1001', 'Q668']
SELECT DISTINCT ?m WHERE { { ?m property:P1001 resource:Q155 . ?m rdf:type ontology:Q192350 } UNION { ?m property:P1001 resource:Q668 . ?m rdf:type ontology:Q192350 } }
Brazil India
action union
action filter_type
action find_reverse
entity Brazil
relation applies to jurisdiction
type ministry
action filter_type
action find_reverse
entity India
relation applies to jurisdiction
type ministry
[{'concept': 'ministry'}, 'applies to jurisdiction', 'Brazil'] [{'concept': 'ministry'}, 'applies to jurisdiction', 'India']
SELECT DISTINCT ?m WHERE { { ?m property:applies_to_jurisdiction resource:Brazil . ?m rdf:type ontology:ministry } UNION { ?m property:applies_to_jurisdiction resource:India . ?m rdf:type ontology:ministry } }
[]
ministry
Q4294676 Q2641068 Q2641653
SYSTEM
Ministry of Agriculture of Brazil, Ministry of Finance, Ministry of Defence
Q4294676 Q2641068 Q2641653 Q3634069 Q7032562 Q3624238 Q6867517
(c(Q192350),P1001,Q155) (c(Q192350),P1001,Q668)
action union
action filter_type
action find_reverse
entity Q155
relation P1001
type Q192350
action filter_type
action find_reverse
entity Q668
relation P1001
type Q192350
[ANSWERS] preside the jurisdiction over Brazil and India
[{'concept': 'Q192350'}, 'P1001', 'Q155'] [{'concept': 'Q192350'}, 'P1001', 'Q668']
SELECT DISTINCT ?m WHERE { { ?m property:P1001 resource:Q155 . ?m rdf:type ontology:Q192350 } UNION { ?m property:P1001 resource:Q668 . ?m rdf:type ontology:Q192350 } }
Ministry of Agriculture of Brazil Ministry of Finance Ministry of Defence Ministry of Agriculture of India Ministry of Law and Justice Ministry of Communications and Information Technology Ministry of Rural Development
Ministry of Agriculture of Brazil, Ministry of Finance and Ministry of Defence preside the jurisdiction over Brazil and India
Ministry of Agriculture of Brazil Ministry of Finance Ministry of Defence
action union
action filter_type
action find_reverse
entity Brazil
relation applies to jurisdiction
type ministry
action filter_type
action find_reverse
entity India
relation applies to jurisdiction
type ministry
[{'concept': 'ministry'}, 'applies to jurisdiction', 'Brazil'] [{'concept': 'ministry'}, 'applies to jurisdiction', 'India']
SELECT DISTINCT ?m WHERE { { ?m property:applies_to_jurisdiction resource:Brazil . ?m rdf:type ontology:ministry } UNION { ?m property:applies_to_jurisdiction resource:India . ?m rdf:type ontology:ministry } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q4294676
P159
Q515
USER
Where is the head office for that ministry located ?
(Q4294676,P159,c(Q515))
action filter_type
action find
entity Q4294676
relation P159
type Q515
['Q4294676', 'P159', {'concept': 'Q515'}]
SELECT DISTINCT ?x WHERE { resource:Q4294676 property:P159 ?x . ?x rdf:type ontology:Q515 }
Ministry of Agriculture of Brazil
action filter_type
action find
entity Ministry of Agriculture of Brazil
relation headquarters location
type city
['Ministry of Agriculture of Brazil', 'headquarters location', {'concept': 'city'}]
SELECT DISTINCT ?x WHERE { resource:Ministry_of_Agriculture_of_Brazil property:headquarters_location ?x . ?x rdf:type ontology:city }
[]
city
Clarification for simple ques.
Q4294676
SYSTEM
Did you mean Ministry of Agriculture of Brazil ?
Q4294676 Q2641068 Q2641653
(Q4294676,P159,c(Q515)) (Q2641068,P159,c(Q515)) (Q2641653,P159,c(Q515))
[ANSWER]
['Q4294676', 'P159', {'concept': 'Q515'}] ['Q2641068', 'P159', {'concept': 'Q515'}] ['Q2641653', 'P159', {'concept': 'Q515'}]
SELECT DISTINCT ?x WHERE { resource:Q4294676 property:P159 ?x . ?x rdf:type ontology:Q515 }
Ministry of Agriculture of Brazil Ministry of Finance Ministry of Defence
Did you mean Ministry of Agriculture of Brazil ?
Ministry of Agriculture of Brazil
['Ministry of Agriculture of Brazil', 'headquarters location', {'concept': 'city'}] ['Ministry of Finance', 'headquarters location', {'concept': 'city'}] ['Ministry of Defence', 'headquarters location', {'concept': 'city'}]
SELECT DISTINCT ?x WHERE { resource:Ministry_of_Agriculture_of_Brazil property:headquarters_location ?x . ?x rdf:type ontology:city }
[]
Simple Question (Coreferenced)
USER
Yes
(Q4294676,P159,c(Q515))
['Q4294676', 'P159', {'concept': 'Q515'}]
['Ministry of Agriculture of Brazil', 'headquarters location', {'concept': 'city'}]
[]
Q2844
SYSTEM
Brasília
Q2844
(Q4294676,P159,c(Q515))
action filter_type
action find
entity Q4294676
relation P159
type Q515
The head office for that ministry is located in [ANSWER]
['Q4294676', 'P159', {'concept': 'Q515'}]
SELECT DISTINCT ?x WHERE { resource:Q4294676 property:P159 ?x . ?x rdf:type ontology:Q515 }
Brasília
The head office for that ministry is located in Brasília
Brasília
action filter_type
action find
entity Ministry of Agriculture of Brazil
relation headquarters location
type city
['Ministry of Agriculture of Brazil', 'headquarters location', {'concept': 'city'}]
SELECT DISTINCT ?x WHERE { resource:Ministry_of_Agriculture_of_Brazil property:headquarters_location ?x . ?x rdf:type ontology:city }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Indirect
P36
Q515 Q486972 Q20667921
USER
Which cities are the capitals of more number of human settlements and french administrative divisions than that city ?
(c(Q486972)|c(Q20667921),P36,c(Q515))
action greater
action union
action find_reverse_tuple_counts
relation P36
type Q515
type Q486972
action find_reverse_tuple_counts
relation P36
type Q515
type Q20667921
action count
action filter_multi_types
action find_reverse
entity Q2844
relation P36
type Q486972
type Q20667921
[[{'concept': 'Q486972'}, {'concept': 'Q20667921'}], 'P36', {'concept': 'Q515'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?g ) ?p WHERE { { ?p rdf:type ontology:Q515 . ?d rdf:type ontology:Q486972 . ?d property:P36 ?p } UNION { ?d property:P36 ?p . ?p rdf:type ontology:Q515 . ?d rdf:type ontology:Q20667921 } } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?u ) WHERE { ?x property:P36 resource:Q2844 . { { ?x rdf:type ontology:Q486972 } UNION { ?x rdf:type ontology:Q20667921 } } } } . FILTER ( ?g > ?u ) }
action greater
action union
action find_reverse_tuple_counts
relation capital
type city
type human settlement
action find_reverse_tuple_counts
relation capital
type city
type type of french administrative division
action count
action filter_multi_types
action find_reverse
entity Brasília
relation capital
type human settlement
type type of french administrative division
[[{'concept': 'human settlement'}, {'concept': 'type of french administrative division'}], 'capital', {'concept': 'city'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?g ) ?p WHERE { { ?p rdf:type ontology:city . ?d rdf:type ontology:human_settlement . ?d property:capital ?p } UNION { ?d property:capital ?p . ?p rdf:type ontology:city . ?d rdf:type ontology:type_of_french_administrative_division } } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?u ) WHERE { ?x property:capital resource:Brasília . { { ?x rdf:type ontology:human_settlement } UNION { ?x rdf:type ontology:type_of_french_administrative_division } } } } . FILTER ( ?g > ?u ) }
[]
city human settlement type of french administrative division
Q23482 Q456 Q7003
SYSTEM
Marseille, Lyon, Dijon
Q23482 Q6602 Q52564 Q42750 Q6582 Q456 Q7003 Q25475
(c(Q486972)|c(Q20667921),P36,c(Q515))
action greater
action union
action find_reverse_tuple_counts
relation P36
type Q515
type Q486972
action find_reverse_tuple_counts
relation P36
type Q515
type Q20667921
action count
action filter_multi_types
action find_reverse
entity Q2844
relation P36
type Q486972
type Q20667921
[ANSWERS] are the capitals of more number of human settlements and french administrative divisions than that city
[[{'concept': 'Q486972'}, {'concept': 'Q20667921'}], 'P36', {'concept': 'Q515'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?g ) ?p WHERE { { ?p rdf:type ontology:Q515 . ?d rdf:type ontology:Q486972 . ?d property:P36 ?p } UNION { ?d property:P36 ?p . ?p rdf:type ontology:Q515 . ?d rdf:type ontology:Q20667921 } } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?u ) WHERE { ?x property:P36 resource:Q2844 . { { ?x rdf:type ontology:Q486972 } UNION { ?x rdf:type ontology:Q20667921 } } } } . FILTER ( ?g > ?u ) }
Marseille Strasbourg Maloe Verevo Vojskovitsy Carcassonne Lyon Dijon Batumi
Marseille, Lyon and Dijon are the capitals of more number of human settlements and french administrative divisions than that city
Marseille Lyon Dijon
action greater
action union
action find_reverse_tuple_counts
relation capital
type city
type human settlement
action find_reverse_tuple_counts
relation capital
type city
type type of french administrative division
action count
action filter_multi_types
action find_reverse
entity Brasília
relation capital
type human settlement
type type of french administrative division
[[{'concept': 'human settlement'}, {'concept': 'type of french administrative division'}], 'capital', {'concept': 'city'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?g ) ?p WHERE { { ?p rdf:type ontology:city . ?d rdf:type ontology:human_settlement . ?d property:capital ?p } UNION { ?d property:capital ?p . ?p rdf:type ontology:city . ?d rdf:type ontology:type_of_french_administrative_division } } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?u ) WHERE { ?x property:capital resource:Brasília . { { ?x rdf:type ontology:human_settlement } UNION { ?x rdf:type ontology:type_of_french_administrative_division } } } } . FILTER ( ?g > ?u ) }
[]